Skip to content

Commit 5ed9b8b

Browse files
committed
Ensure helm release build consistently handles deployOLM toggle. Fix bug caused by separating out csv-deleter Job
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 5c5e9dc commit 5ed9b8b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ci/operator_helm_build_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cp "${repo_path}/k8s/operator/crd/base/px.dev_viziers.yaml" "${helm_path}/crds/v
5757

5858
# Updates templates with Helm-specific template functions.
5959
helm_tmpl_checks="$(cat "${repo_path}/k8s/operator/helm/olm_template_checks.tmpl")"
60-
sed -i "1c${helm_tmpl_checks}" "${repo_path}/k8s/operator/helm/templates/00_olm.yaml"
60+
find "${repo_path}/k8s/operator/helm/templates" -type f -exec sed -i "/HELM_DEPLOY_OLM_PLACEHOLDER/c\\${helm_tmpl_checks}" {} \;
6161
rm "${repo_path}/k8s/operator/helm/olm_template_checks.tmpl"
6262

6363
# Fetch all of the current charts in GCS, because generating the index needs all pre-existing tar versions present.

k8s/operator/helm/templates/00_olm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{if .Values.deployOLM}}
1+
{{if .Values.deployOLM}}{{- /* HELM_DEPLOY_OLM_PLACEHOLDER */ -}}
22
{{ if not (eq .Values.olmNamespace .Release.Namespace) }}
33
---
44
apiVersion: v1

k8s/operator/helm/templates/csv-deleter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{if .Values.deployOLM}}
1+
{{if .Values.deployOLM}}{{- /* HELM_DEPLOY_OLM_PLACEHOLDER */ -}}
22
---
33
apiVersion: batch/v1
44
kind: Job

0 commit comments

Comments
 (0)