diff --git a/.gitignore b/.gitignore index c611f2b795..d2cf0531b2 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,6 @@ manifests/ ## Kubebuilder **/kubebuilder /docs/tmp/ + +# Helm readme generator project +readme-generator-for-helm/ diff --git a/helm/chart/README.md b/helm/chart/README.md index be385900e9..35608df70d 100644 --- a/helm/chart/README.md +++ b/helm/chart/README.md @@ -5,7 +5,8 @@ KLT introduces a more cloud-native approach for pre- and post-deployment, as wel ### OpenTelemetry -| Name | Description | Value | -| ------------------- | --------------------------------------------- | --------------------- | -| `otelCollector.url` | Sets the URL for the open telemetry collector | `otel-collector:4317` | +| Name | Description | Value | +| ---------------------------- | ---------------------------------------------------- | --------------------- | +| `otelCollector.url` | Sets the URL for the open telemetry collector | `otel-collector:4317` | +| `deployment.imagePullPolicy` | Sets the image pull policy for kubernetes deployment | `Always` | diff --git a/helm/chart/values.yaml b/helm/chart/values.yaml index 0fc06dbf14..098bbe2a7e 100644 --- a/helm/chart/values.yaml +++ b/helm/chart/values.yaml @@ -2,3 +2,7 @@ otelCollector: ## @param otelCollector.url Sets the URL for the open telemetry collector url: "otel-collector:4317" + +deployment: + ## @param deployment.imagePullPolicy Sets the image pull policy for kubernetes deployment + imagePullPolicy: "Always" diff --git a/helm/overlay/patches/patch_deployment.yaml b/helm/overlay/patches/patch_deployment.yaml index c45b95a17d..cc74537b8c 100644 --- a/helm/overlay/patches/patch_deployment.yaml +++ b/helm/overlay/patches/patch_deployment.yaml @@ -9,23 +9,28 @@ spec: spec: containers: - name: manager + imagePullPolicy: "{{ .Values.deployment.imagePullPolicy | default Always }}" + env: - name: OTEL_COLLECTOR_URL value: "{{ .Values.otelCollector.url }}" -#--- -#apiVersion: apps/v1 #example patch for certmanager -#kind: Deployment -#metadata: -# name: cert-manager -# namespace: system -#spec: -# template: -# spec: -# containers: -# - name: manager -# env: + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cert-manager + namespace: system +spec: + template: + spec: + containers: + - name: manager + imagePullPolicy: "{{ .Values.deployment.imagePullPolicy | default Always }}" + + env: # - name: NEW_ENV_VAR # value: "{{ .Values.myNewEnvVar }}" @@ -40,6 +45,8 @@ spec: spec: containers: - name: keptn-scheduler + imagePullPolicy: "{{ .Values.deployment.imagePullPolicy | default Always }}" + env: - name: OTEL_COLLECTOR_URL value: "{{ .Values.otelCollector.url }}"