From 9f1e3e48d3006bd3d84552fb3d344eb652ff1f87 Mon Sep 17 00:00:00 2001 From: Ryan Cook <rcook@redhat.com> Date: Thu, 21 Dec 2023 08:49:09 -0500 Subject: [PATCH] fix err and namespace wait --- .github/workflows/main.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75d9a4428..3783b0e41 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -75,5 +75,21 @@ jobs: run: | echo "${{ secrets.PULL_SECRET }}" > /tmp/pull-secret.txt + - name: wait for ctlog namespace to exist + run: kubectl wait --for=condition=ready namespace/ctlog-system --timeout=60s + + - name: wait for fulcio namespace to exist + run: kubectl wait --for=condition=ready namespace/fulcio-system --timeout=60s + + - name: wait for rekor namespace to exist + run: kubectl wait --for=condition=ready namespace/rekor-system --timeout=60s + + - name: wait for trillian namespace to exist + run: kubectl wait --for=condition=ready namespace/trillian-system --timeout=60s + + - name: wait for tuf namespace to exist + run: kubectl wait --for=condition=ready namespace/tuf-system --timeout=60s + - name: Lazily create secrets in all namespaces - run: kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n securesign-sample-ctlog-system ; kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n securesign-sample-fulcio-system ; kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n securesign-sample-rekor-system ; kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n securesign-sample-trillian-system ; kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n securesign-sample-trusted-artifact-signer-clientserver ; kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n securesign-sample-tuf-system \ No newline at end of file + run: kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n ctlog-system ; kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n fulcio-system ; kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n rekor-system ; kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n trillian-system ; kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n trusted-artifact-signer-clientserver ; kubectl create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.txt --type=kubernetes.io/dockerconfigjson -n tuf-system +