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
* 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 a 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, e.g.
343
+
```
344
+
def gitopsConfig = [
345
+
k8sVersion: env.K8S_VERSION_TEAM_A
346
+
]
347
+
```
340
348
341
349
---
342
350
@@ -348,12 +356,13 @@ All of these have set default images, but you can change them if you wish to.
348
356
def gitopsConfig = [
349
357
buildImages: [
350
358
// These are used to run helm and kubectl commands in the core logic
351
-
helm: 'ghcr.io/cloudogu/helm:3.5.4-1',
352
-
kubectl: 'lachlanevenson/k8s-kubectl:v1.19.3',
359
+
helm: 'ghcr.io/cloudogu/helm:3.11.1-2',
360
+
// if you specify k8sVersion parameter, then by default bitnami/kubectl:${k8sVersion} will be used
361
+
kubectl: 'bitnami/kubectl:1.24.8',
353
362
// These are used for each specific validator via an imageRef property inside the validators config. See [Validators] for examples.
354
-
kubeval: 'ghcr.io/cloudogu/helm:3.5.4-1',
355
-
helmKubeval: 'ghcr.io/cloudogu/helm:3.5.4-1',
356
-
yamllint: 'cytopia/yamllint:1.25-0.7'
363
+
kubeval: 'ghcr.io/cloudogu/helm:3.11.1-2',
364
+
helmKubeval: 'ghcr.io/cloudogu/helm:3.11.1-2',
365
+
yamllint: 'cytopia/yamllint:1.25-0.9'
357
366
]
358
367
]
359
368
```
@@ -613,6 +622,7 @@ We decided to generate plain k8s Resources from Helm applications before we push
613
622
614
623
- 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`).
615
624
- 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.
625
+
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.
0 commit comments