Skip to content

Commit d289613

Browse files
author
Matthew McDaniel
committed
Specify region in values.yaml instead of hardcoded in deployment.yaml
1 parent 43492c3 commit d289613

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ spec:
6969
- name: OCI_RESOURCE_PRINCIPAL_VERSION
7070
value: "2.2"
7171
- name: OCI_RESOURCE_PRINCIPAL_REGION
72-
value: "us-phoenix-1"
72+
value: {{ .Values.region }}
7373
- name: OCI_SDK_DEFAULT_RETRY_ENABLED
7474
value: "true"
7575
ports:

helm/oci-native-ingress-controller/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ webhookBindPort: 9443
9797
# Supported auths - instance(default), user
9898
authType: instance
9999
authSecretName: oci-config
100+
# Region where OKE cluster is deployed
101+
region: ""
100102

101103
# objectSelector for webhook
102104
objectSelector:
@@ -110,4 +112,4 @@ objectSelector:
110112

111113
metrics:
112114
backend: prometheus
113-
port: 2223
115+
port: 2223

0 commit comments

Comments
 (0)