Skip to content

Commit 438e11f

Browse files
authored
Merge pull request #55 from matthewmcdaniel/existing-namespace
only create namespace if it doesn't exist.
2 parents 43492c3 + e23ec88 commit 438e11f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
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)}}
78
apiVersion: v1
89
kind: Namespace
910
metadata:
1011
name: {{ .Values.deploymentNamespace }}
12+
{{- end }}
1113
---
1214
apiVersion: apps/v1
1315
kind: Deployment

0 commit comments

Comments
 (0)