From d289613540cb16d6ea1435b7efa3521a9dff6b4d Mon Sep 17 00:00:00 2001 From: Matthew McDaniel Date: Fri, 5 Apr 2024 15:47:03 -0400 Subject: [PATCH] Specify region in values.yaml instead of hardcoded in deployment.yaml --- helm/oci-native-ingress-controller/templates/deployment.yaml | 2 +- helm/oci-native-ingress-controller/values.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helm/oci-native-ingress-controller/templates/deployment.yaml b/helm/oci-native-ingress-controller/templates/deployment.yaml index 55eb692e..d1f4b1d8 100644 --- a/helm/oci-native-ingress-controller/templates/deployment.yaml +++ b/helm/oci-native-ingress-controller/templates/deployment.yaml @@ -69,7 +69,7 @@ spec: - name: OCI_RESOURCE_PRINCIPAL_VERSION value: "2.2" - name: OCI_RESOURCE_PRINCIPAL_REGION - value: "us-phoenix-1" + value: {{ .Values.region }} - name: OCI_SDK_DEFAULT_RETRY_ENABLED value: "true" ports: diff --git a/helm/oci-native-ingress-controller/values.yaml b/helm/oci-native-ingress-controller/values.yaml index a754bf4d..3045ff83 100644 --- a/helm/oci-native-ingress-controller/values.yaml +++ b/helm/oci-native-ingress-controller/values.yaml @@ -97,6 +97,8 @@ webhookBindPort: 9443 # Supported auths - instance(default), user authType: instance authSecretName: oci-config +# Region where OKE cluster is deployed +region: "" # objectSelector for webhook objectSelector: @@ -110,4 +112,4 @@ objectSelector: metrics: backend: prometheus - port: 2223 + port: 2223 \ No newline at end of file