Skip to content

Commit

Permalink
Ensure helm release build consistently handles deployOLM toggle. Fix …
Browse files Browse the repository at this point in the history
…bug caused by separating out csv-deleter Job

Signed-off-by: Dom Del Nano <[email protected]>
  • Loading branch information
ddelnano committed Dec 19, 2024
1 parent 5c5e9dc commit 5ed9b8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/operator_helm_build_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ cp "${repo_path}/k8s/operator/crd/base/px.dev_viziers.yaml" "${helm_path}/crds/v

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

# Fetch all of the current charts in GCS, because generating the index needs all pre-existing tar versions present.
Expand Down
2 changes: 1 addition & 1 deletion k8s/operator/helm/templates/00_olm.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{if .Values.deployOLM}}
{{if .Values.deployOLM}}{{- /* HELM_DEPLOY_OLM_PLACEHOLDER */ -}}
{{ if not (eq .Values.olmNamespace .Release.Namespace) }}
---
apiVersion: v1
Expand Down
2 changes: 1 addition & 1 deletion k8s/operator/helm/templates/csv-deleter.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{if .Values.deployOLM}}
{{if .Values.deployOLM}}{{- /* HELM_DEPLOY_OLM_PLACEHOLDER */ -}}
---
apiVersion: batch/v1
kind: Job
Expand Down

0 comments on commit 5ed9b8b

Please sign in to comment.