mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-03 11:45:45 +00:00
Move all three deployment dirs under a new top-level deploy/ dir
This commit is contained in:
@@ -7,6 +7,20 @@ set -euo pipefail
|
||||
|
||||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
|
||||
|
||||
# Generate code.
|
||||
xargs "$ROOT/hack/lib/update-codegen.sh" < "${ROOT}/hack/lib/kube-versions.txt"
|
||||
cp "$ROOT/generated/1.19/crds/"*.yaml "$ROOT/deploy/"
|
||||
|
||||
# Copy each CRD yaml to the app which should cause it to be installed.
|
||||
cp "$ROOT"/generated/1.19/crds/*oidcproviderconfigs.yaml "$ROOT/deploy/supervisor"
|
||||
cp "$ROOT"/generated/1.19/crds/*credentialissuerconfigs.yaml "$ROOT/deploy/concierge"
|
||||
cp "$ROOT"/generated/1.19/crds/*webhookidentityproviders.yaml "$ROOT/deploy/concierge"
|
||||
|
||||
# Make sure we didn't miss any new CRDs.
|
||||
crdCount=$(find "$ROOT"/generated/1.19/crds/ -maxdepth 1 -type f -name '*.yaml' | wc -l | tr -d ' ')
|
||||
if [[ "$crdCount" != "3" ]]; then
|
||||
echo "Looks like you added a new CRD. Please update this update.sh script to decide where to copy it and then run it again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Tidy.
|
||||
"$ROOT/hack/module.sh" tidy
|
||||
|
||||
Reference in New Issue
Block a user