Created
December 19, 2024 09:26
-
-
Save irizzant/b74391412cbf0aa8305c4eba72727d31 to your computer and use it in GitHub Desktop.
crossplane/issues/3423
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
kind create cluster | |
helm upgrade --install crossplane crossplane --repo https://charts.crossplane.io/stable --namespace crossplane-system --create-namespace --wait | |
cat << EOF | kubectl apply -f - | |
apiVersion: pkg.crossplane.io/v1 | |
kind: Provider | |
metadata: | |
name: upbound-provider-family-aws | |
spec: | |
package: xpkg.upbound.io/upbound/provider-family-aws:v1.17.0 | |
--- | |
apiVersion: pkg.crossplane.io/v1 | |
kind: Provider | |
metadata: | |
name: provider-aws-iam | |
spec: | |
package: xpkg.upbound.io/upbound/provider-aws-iam:v1.17.0 | |
EOF | |
kubectl wait --for=condition=Ready pods --all --namespace crossplane-system --timeout=300s | |
sleep 5 | |
kubectl -n crossplane-system create secret generic regcred \ | |
--from-file=.dockerconfigjson="$HOME/.docker/config.json" \ | |
--type=kubernetes.io/dockerconfigjson | |
kubectl patch serviceaccount crossplane -p "{\"imagePullSecrets\": [{\"name\": \"regcred\"}]}" -n crossplane-system | |
cat << EOF | kubectl apply -f - | |
apiVersion: pkg.crossplane.io/v1 | |
kind: Configuration | |
metadata: | |
name: crossplane-app | |
spec: | |
package: 'xxxxxx' | |
EOF | |
kubectl wait --for=condition=Ready pods --all --namespace crossplane-system --timeout=300s | |
kubectl wait --for=condition=Healthy providers --all --namespace crossplane-system --timeout=300s | |
kubectl get providers | |
echo "Setup complete. Press Enter to upgrade the providers." | |
read | |
cat << EOF | kubectl apply -f - | |
apiVersion: pkg.crossplane.io/v1 | |
kind: Provider | |
metadata: | |
name: upbound-provider-family-aws | |
spec: | |
package: xpkg.upbound.io/upbound/provider-family-aws:v1.18.0 | |
--- | |
apiVersion: pkg.crossplane.io/v1 | |
kind: Provider | |
metadata: | |
name: provider-aws-iam | |
spec: | |
package: xpkg.upbound.io/upbound/provider-aws-iam:v1.18.0 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment