{{- if not .Values.multicluster.enabled -}} {{- $clusterInfo := lookup "v1" "Secret" .Release.Namespace "mc-cluster-info" -}} {{- if $clusterInfo -}} {{- fail "WARNING: Multi-cluster features must remain enabled as long as this cluster is connected to a multi-cluster system.\nEither disconnect this cluster from the multi-cluster system or use multicluster.enabled=true to enable multi-cluster features." -}} {{- end -}} {{- end -}}