Skip to content

Commit

Permalink
Enable seccompProfile RuntimeDefault for CI (#317)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha authored Sep 6, 2023
1 parent 7449709 commit ee35301
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ ct: $(BUILD_DIRS)
@docker run \
-i \
--rm \
-u $$(id -u):$$(id -g) \
-v $$(pwd):/src \
-w /src \
--net=host \
Expand All @@ -372,14 +371,15 @@ ct: $(BUILD_DIRS)
-v $$(pwd)/.go/bin/$(OS)_$(ARCH):/go/bin \
-v $$(pwd)/.go/bin/$(OS)_$(ARCH):/go/bin/$(OS)_$(ARCH) \
-v $$(pwd)/.go/cache:/.cache \
-v $$(which helm):/usr/local/bin/helm \
--env HTTP_PROXY=$(HTTP_PROXY) \
--env HTTPS_PROXY=$(HTTPS_PROXY) \
--env KUBECONFIG=$(subst $(HOME),,$(KUBECONFIG)) \
$(CHART_TEST_IMAGE) \
/bin/sh -c " \
kubectl delete crds --selector=app.kubernetes.io/name=stash; \
ct $(CT_COMMAND) --debug --validate-maintainers=false $(CT_ARGS) \
set -x; \
kubectl delete crds --all; \
./hack/scripts/update-chart-dependencies.sh; \
ct $(CT_COMMAND) --debug --validate-maintainers=false $(CT_ARGS) \
"

ADDTL_LINTERS := goconst,gofmt,goimports,unparam
Expand Down
15 changes: 15 additions & 0 deletions charts/stash-community/ci/ci-values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# https://github.com/helm/charts/blob/master/test/README.md#providing-custom-test-values
license: ""
operator:
securityContext:
seccompProfile:
type: RuntimeDefault
crdInstaller:
registry: appscodeci
tag: latest
securityContext:
seccompProfile:
type: RuntimeDefault
pushgateway:
securityContext:
seccompProfile:
type: RuntimeDefault
cleaner:
securityContext:
seccompProfile:
type: RuntimeDefault
15 changes: 15 additions & 0 deletions charts/stash-enterprise/ci/ci-values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# https://github.com/helm/charts/blob/master/test/README.md#providing-custom-test-values
license: ""
operator:
securityContext:
seccompProfile:
type: RuntimeDefault
crdInstaller:
registry: appscodeci
tag: latest
securityContext:
seccompProfile:
type: RuntimeDefault
pushgateway:
securityContext:
seccompProfile:
type: RuntimeDefault
cleaner:
securityContext:
seccompProfile:
type: RuntimeDefault
5 changes: 5 additions & 0 deletions charts/stash-ui-server/ci/ci-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://github.com/helm/charts/blob/master/test/README.md#providing-custom-test-values
image:
securityContext:
seccompProfile:
type: RuntimeDefault

0 comments on commit ee35301

Please sign in to comment.