From cc8881eea178b9193bcd8afa1e7fda74c325f4db Mon Sep 17 00:00:00 2001 From: mrjoelkamp Date: Mon, 10 Jun 2024 15:11:20 -0500 Subject: [PATCH] fix: postInstall error --- .github/workflows/workflow.yaml | 5 +++-- test/bats/test.bats | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index c5e1fd6..fed2908 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -104,9 +104,10 @@ jobs: helm repo add gatekeeper https://open-policy-agent.github.io/gatekeeper/charts helm install gatekeeper/gatekeeper \ --version ${GATEKEEPER_VERSION} \ - --set postInstall.probeWebhook.httpTimeout=300 \ - --set postInstall.probeWebhook.waitTimeout=300 \ + --set postInstall.probeWebhook.enabled=false \ + --set postInstall.labelNamespace.enabled=false \ --set validatingWebhookFailurePolicy=Fail \ + --set validatingWebhookTimeoutSeconds=15 \ --set enableExternalData=true \ --name-template=gatekeeper \ --namespace security \ diff --git a/test/bats/test.bats b/test/bats/test.bats index 178adf3..683e3f3 100644 --- a/test/bats/test.bats +++ b/test/bats/test.bats @@ -21,6 +21,7 @@ teardown_file() { @test "attest-provider is running" { wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl -n ${GATEKEEPER_NAMESPACE} wait --for=condition=Ready --timeout=60s pod -l run=attest-provider" + sleep 5 # we need a readiness probe https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes } @test "attest validation" {