Fix provider eos path #7
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
name: crossplane-argocd-external-secrets | |
on: [push] | |
env: | |
KIND_NODE_VERSION: v1.29.0 | |
# Doppler | |
DOPPLER_SERVICE_TOKEN: ${{ secrets.DOPPLER_SERVICE_TOKEN }} | |
jobs: | |
provision: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Spin up kind via brew | |
run: | | |
echo "--- Create kind cluster" | |
kind create cluster --image "kindest/node:$KIND_NODE_VERSION" --wait 5m | |
echo "--- Let's try to access our kind cluster via kubectl" | |
kubectl get nodes | |
- name: Install ArgoCD into kind | |
run: | | |
echo "--- Create argo namespace and install it" | |
kubectl create namespace argocd | |
echo " Install & configure ArgoCD via Kustomize - see https://stackoverflow.com/a/71692892/4964553" | |
kubectl apply -k argocd/install | |
echo "--- Wait for Argo to become ready" | |
kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=argocd-server --namespace argocd --timeout=300s | |
- name: Create Secret with the Doppler Service Token for External Secrets Operator | |
run: kubectl create secret generic doppler-token-auth-api --from-literal dopplerToken="$DOPPLER_SERVICE_TOKEN" | |
- name: Use ArgoCD's AppOfApps pattern to deploy all Crossplane components | |
run: | | |
echo "--- Let Argo do it's magic installing all Crossplane components" | |
kubectl apply -n argocd -f argocd/crossplane-eso-app-of-apps.yaml | |
- name: Check crossplane status | |
run: | | |
echo "--- Wait for crossplane to become ready (now prefaced with until as described in https://stackoverflow.com/questions/68226288/kubectl-wait-not-working-for-creation-of-resources)" | |
until kubectl wait --for=condition=PodScheduled pod -l app=crossplane --namespace crossplane-system --timeout=120s > /dev/null 2>&1; do : ; done | |
kubectl wait --for=condition=ready pod -l app=crossplane --namespace crossplane-system --timeout=120s | |
echo "--- Wait until AWS Provider is up and running (now prefaced with until to prevent Error from server (NotFound): providers.pkg.crossplane.io 'provider-aws-s3' not found)" | |
until kubectl get provider/provider-aws-s3 > /dev/null 2>&1; do : ; done | |
kubectl wait --for=condition=healthy --timeout=180s provider/provider-aws-s3 | |
kubectl get all -n crossplane-system |