diff --git a/.github/workflows/provision.yml b/.github/workflows/provision.yml index f064688..b96b91a 100644 --- a/.github/workflows/provision.yml +++ b/.github/workflows/provision.yml @@ -7,7 +7,7 @@ env: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: 'eu-central-1' ROUTE53_DOMAIN_NAME: tekton-argocd.de - TEKTON_VERSION: '0.23.1' + TEKTON_CLI_VERSION: '0.23.1' jobs: provision-eks-with-pulumi: @@ -248,8 +248,8 @@ jobs: - name: Install Tekton CLI using curl instead of homebrew to speed up the pipeline run: | - curl -LO "https://github.com/tektoncd/cli/releases/download/v${TEKTON_VERSION}/tkn_${TEKTON_VERSION}_Linux_x86_64.tar.gz" \ - && tar xvzf "tkn_${TEKTON_VERSION}_Linux_x86_64.tar.gz" -C /usr/local/bin/ tkn + curl -LO "https://github.com/tektoncd/cli/releases/download/v${TEKTON_CLI_VERSION}/tkn_${TEKTON_CLI_VERSION}_Linux_x86_64.tar.gz" \ + && tar xvzf "tkn_${TEKTON_CLI_VERSION}_Linux_x86_64.tar.gz" -C /usr/local/bin/ tkn - name: Create Tekton Task & run it with a TaskRun run: | diff --git a/README.md b/README.md index 32f90f0..ef5410a 100644 --- a/README.md +++ b/README.md @@ -3628,18 +3628,6 @@ In order to enable Renovate to keep all our manifests up-to-date, we need a mech As we already use Kustomize to install and configure ArgoCD, we could use it to install all needed remote manifests for us. Kustomize is also supported by Renovate: https://docs.renovatebot.com/modules/manager/kustomize/ -Therefore the directory `installation` has been created and we have the following folder structure now: - -``` -├── argocd - here our ArgoCD instsallation and custom configuration is managed -│   ├── argocd-cmd-params-cm-patch.yml -│   └── kustomization.yaml -├── tekton - all Tekton related components -│   └── kustomization.yaml -└── tekton-tasks - all needed Tekton Tasks (Hubs or local) - └── kustomization.yaml -``` - Inside our GitHub Actions workflow [provision.yml](.github/workflows/provision.yml) Kustomize is used through `kubectl apply -k`: ``` @@ -3661,6 +3649,118 @@ Inside our GitHub Actions workflow [provision.yml](.github/workflows/provision.y ``` +## Renovate not picking up remote versions in kustomization.yamls + +Sadly Renovate doesn't seem to work out of the box with our `kustomization.yaml`s - right now it simply does nothing to update Tekton, ArgoCD etc. + + + +But Renovate should somehow support Kustomize: https://docs.renovatebot.com/modules/manager/kustomize/ (they link to Kustomize docs https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md) - it seems that git ref references are supported. + +So how does this work? For example, + +This url inside a `kustomization.yaml`: + +https://github.com/kubernetes-sigs/kustomize/tree/v1.0.6/examples/multibases/dev + +has to be rebuild to this + +https://github.com/kubernetes-sigs/kustomize//examples/multibases/dev/?ref=v1.0.6 + +which then only works inside a `kustomization.yaml`: + +```shell +cat > ./kustomization.yaml < ./kustomization.yaml <