You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remove env variable for k8s version and replace lachlanevenson/k8s-kubectl image with rancher/kubectl. Use k8sVersion parameter from config as kubectl version when it is not explicitly specified.
* Optional: `k8sVersion: '1.24.8'` Is used for target k8s version in helm template in Argo CD deployments with helm. Is also used to determine the kubectl version, when no specific buildImage is specified.
342
+
It is recommended to use an Jenkins environment variable to specify the version, so that you don't have to bump every pipeline after a k8s version upgrade in your cluster.
341
343
342
344
---
343
345
@@ -349,12 +351,13 @@ All of these have set default images, but you can change them if you wish to.
349
351
def gitopsConfig = [
350
352
buildImages: [
351
353
// These are used to run helm and kubectl commands in the core logic
352
-
helm: 'ghcr.io/cloudogu/helm:3.5.4-1',
353
-
kubectl: 'lachlanevenson/k8s-kubectl:v1.19.3',
354
+
helm: 'ghcr.io/cloudogu/helm:3.11.1-2',
355
+
// if you specify k8sVersion parameter, then by default rancher/kubectl:v${k8sVersion} will be used
356
+
kubectl: 'rancher/kubectl:v1.24.8',
354
357
// These are used for each specific validator via an imageRef property inside the validators config. See [Validators] for examples.
355
358
kubeval: 'ghcr.io/cloudogu/helm:3.5.4-1',
356
359
helmKubeval: 'ghcr.io/cloudogu/helm:3.5.4-1',
357
-
yamllint: 'cytopia/yamllint:1.25-0.7'
360
+
yamllint: 'cytopia/yamllint:1.25-0.9'
358
361
]
359
362
]
360
363
```
@@ -614,9 +617,7 @@ We decided to generate plain k8s Resources from Helm applications before we push
614
617
615
618
- With ArgoCD you can only set one source for your application. In case of helm it is common to have a source Repository for your chart and a scource Repository for your configuration files (values.yaml). In order to use two different sources for your helm application you will need some sort of workaround (e.g. Helm dependencies in `Chart.yaml`).
616
619
- ArgoCD itself uses `helm template` to apply plain k8s Resources to the cluster. By templating the helm application before pushing to the gitops repository, we have the same resources in our repository as in our cluster. Which leads to increased transparency.
617
-
618
620
The parameter `k8sVersion` from the gitops config is used as a parameter with `--kube-version` in order to template version-specific manifests such as changed api versions.
619
-
`k8sVersion` can also be specified through an env-variable called `GITOPS_BUILD_LIB_K8S_VERSION`.
0 commit comments