Skip to content

Commit

Permalink
ROX-26065: Uninstall observability CSV on uninstalling the helm chart (
Browse files Browse the repository at this point in the history
  • Loading branch information
kovayur authored Nov 18, 2024
1 parent b456aa8 commit 927dd4e
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{/* This template does not create a CSV (this should be done by OLM).
The existing CSV is deleted when disabling the subchart, with the help of helm hooks.*/}}
{{- if not .Values.observability.enabled }}
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
name: observability-operator.{{ .Values.observability.observabilityOperatorVersion }}
namespace: {{ .Release.Namespace }}-observability
annotations:
"helm.sh/hook": "post-upgrade"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
spec:
displayName: "dummy"
install:
strategy: ""
{{- end }}

0 comments on commit 927dd4e

Please sign in to comment.