diff --git a/examples/kind/kind-oidc.sh b/examples/kind/kind-oidc.sh index 67e56daa..0a26d161 100755 --- a/examples/kind/kind-oidc.sh +++ b/examples/kind/kind-oidc.sh @@ -189,8 +189,19 @@ COMMIT_HASH=$(git describe --always --tags --long) echo "Deploying zot-build:${COMMIT_HASH} image to local registry" skopeo copy --format=oci --dest-tls-verify=false oci:oci docker://localhost:5001/zot-build:${COMMIT_HASH} -# Create ConfigMap with zot OIDC configuration -kubectl --context kind-kind-oidc create configmap zot-oidc-config --from-literal=config.json=' +# Create a temporary directory for zot config and credentials +mkdir -p /tmp/kind-oidc/zot-config + +# Create the credentials file for zot +cat > /tmp/kind-oidc/zot-config/dex-credentials.json < /tmp/kind-oidc/zot-config/config.json <