Skip to content

Commit

Permalink
Fix securityContext linter issues with dirk and vouch
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiD2ta committed Jan 24, 2024
1 parent 587da93 commit ea47939
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
15 changes: 8 additions & 7 deletions charts/dirk/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,14 @@ podSecurityContext:
fsGroup: 1000
runAsUser: 1000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
fsGroup: 10000

service:
type: ClusterIP
Expand Down
16 changes: 8 additions & 8 deletions charts/vouch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ podSecurityContext:
fsGroup: 1000
runAsUser: 1000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
fsGroup: 10000
service:
type: ClusterIP
httpPort: 8881
Expand Down
3 changes: 2 additions & 1 deletion scripts/validate-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ set -o pipefail
: "${TARGET_BRANCH:?Environment variable must be set}"

main() {
export repo_root=$(git rev-parse --show-toplevel)
repo_root=$(git rev-parse --show-toplevel)
export repo_root

local changed
changed=$(ct list-changed --target-branch "$TARGET_BRANCH")
Expand Down

0 comments on commit ea47939

Please sign in to comment.