Skip to content

Commit 82693af

Browse files
piyush-tiwarinirpai
authored andcommitted
fix namespace deletion on helm upgrade
1 parent 34bef8a commit 82693af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

helm/oci-native-ingress-controller/templates/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# Copyright (c) 2023 Oracle America, Inc. and its affiliates.
55
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
66
#
7-
{{- if not (lookup "v1" "Namespace" "" .Values.deploymentNamespace)}}
7+
{{- $ns := lookup "v1" "Namespace" "" .Values.deploymentNamespace }}
8+
{{- if or (not $ns) (eq (get $ns.metadata.labels "app.kubernetes.io/managed-by") "Helm") }}
89
apiVersion: v1
910
kind: Namespace
1011
metadata:

0 commit comments

Comments
 (0)