Skip to content

Commit

Permalink
Add securityContext
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaSchwarze0 committed Nov 29, 2023
1 parent 511201f commit ce1b74c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/v1alpha1_samples/buildstrategy_samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ spec:
echo -n "${sum}" > '$(results.shp-image-size.path)'
- --
- $(params.args[*])
securityContext:
runAsUser: 1000
runAsGroup: 1000
`

// BuildStrategyWithoutPush is a strategy that writes an image tarball and pushes nothing
Expand Down
3 changes: 3 additions & 0 deletions test/v1beta1_samples/buildstrategy_samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ spec:
echo -n "${sum}" > '$(results.shp-image-size.path)'
- --
- $(params.args[*])
securityContext:
runAsUser: 1000
runAsGroup: 1000
`

// BuildStrategyWithoutPush is a strategy that writes an image tarball and pushes nothing
Expand Down

0 comments on commit ce1b74c

Please sign in to comment.