From 4454993c8025194241af4e902439a0614c069593 Mon Sep 17 00:00:00 2001 From: Jessica G <14338270+JessicaGreben@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:37:26 -0700 Subject: [PATCH] Add namespace to the aerospike-proxy helm chart. (#28) --- aerospike-proxy/Chart.yaml | 2 +- aerospike-proxy/templates/_helpers.tpl | 7 ++++ aerospike-proxy/templates/configmap.yaml | 1 + aerospike-proxy/templates/deployment.yaml | 1 + aerospike-proxy/templates/hpa.yaml | 1 + aerospike-proxy/templates/ingress.yaml | 1 + aerospike-proxy/templates/service.yaml | 1 + aerospike-proxy/templates/serviceaccount.yaml | 1 + .../templates/tests/test-connection.yaml | 1 + aerospike-proxy/values.yaml | 3 ++ docs/aerospike-proxy-1.0.0.tgz | Bin 0 -> 9438 bytes docs/index.yaml | 38 +++++++++++------- 12 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 docs/aerospike-proxy-1.0.0.tgz diff --git a/aerospike-proxy/Chart.yaml b/aerospike-proxy/Chart.yaml index 123b127..32eb15b 100644 --- a/aerospike-proxy/Chart.yaml +++ b/aerospike-proxy/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/aerospike-proxy/templates/_helpers.tpl b/aerospike-proxy/templates/_helpers.tpl index f78eab8..6e04d1f 100644 --- a/aerospike-proxy/templates/_helpers.tpl +++ b/aerospike-proxy/templates/_helpers.tpl @@ -60,3 +60,10 @@ Create the name of the service account to use {{- default "default" .Values.serviceAccount.name }} {{- end }} {{- end }} + +{{/* +Define the namespace, defaults to the namespace of the helm release. +*/}} +{{- define "aerospike-proxy.namespace" -}} +{{- default .Release.Namespace .Values.namespaceOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} diff --git a/aerospike-proxy/templates/configmap.yaml b/aerospike-proxy/templates/configmap.yaml index 4da64c1..9e412ec 100644 --- a/aerospike-proxy/templates/configmap.yaml +++ b/aerospike-proxy/templates/configmap.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: {{ include "aerospike-proxy.fullname" . }}-cm + namespace: {{ include "aerospike-proxy.namespace" . }} labels: {{- include "aerospike-proxy.labels" . | nindent 4 }} data: diff --git a/aerospike-proxy/templates/deployment.yaml b/aerospike-proxy/templates/deployment.yaml index b8ac99b..3e07fd7 100644 --- a/aerospike-proxy/templates/deployment.yaml +++ b/aerospike-proxy/templates/deployment.yaml @@ -2,6 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "aerospike-proxy.fullname" . }} + namespace: {{ include "aerospike-proxy.namespace" . }} labels: app: {{ include "aerospike-proxy.fullname" . }} {{- include "aerospike-proxy.labels" . | nindent 4 }} diff --git a/aerospike-proxy/templates/hpa.yaml b/aerospike-proxy/templates/hpa.yaml index 1fdb37e..11e53b6 100644 --- a/aerospike-proxy/templates/hpa.yaml +++ b/aerospike-proxy/templates/hpa.yaml @@ -3,6 +3,7 @@ apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ include "aerospike-proxy.fullname" . }} + namespace: {{ include "aerospike-proxy.namespace" . }} labels: {{- include "aerospike-proxy.labels" . | nindent 4 }} spec: diff --git a/aerospike-proxy/templates/ingress.yaml b/aerospike-proxy/templates/ingress.yaml index c56d9a5..c746b1f 100644 --- a/aerospike-proxy/templates/ingress.yaml +++ b/aerospike-proxy/templates/ingress.yaml @@ -16,6 +16,7 @@ apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ $fullName }} + namespace: {{ include "aerospike-proxy.namespace" . }} labels: {{- include "aerospike-proxy.labels" . | nindent 4 }} {{- with .Values.ingress.annotations }} diff --git a/aerospike-proxy/templates/service.yaml b/aerospike-proxy/templates/service.yaml index e72f702..1e59ad3 100644 --- a/aerospike-proxy/templates/service.yaml +++ b/aerospike-proxy/templates/service.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: Service metadata: name: {{ include "aerospike-proxy.fullname" . }} + namespace: {{ include "aerospike-proxy.namespace" . }} labels: app: {{ include "aerospike-proxy.fullname" . }} {{- include "aerospike-proxy.labels" . | nindent 4 }} diff --git a/aerospike-proxy/templates/serviceaccount.yaml b/aerospike-proxy/templates/serviceaccount.yaml index 48d6020..df52edf 100644 --- a/aerospike-proxy/templates/serviceaccount.yaml +++ b/aerospike-proxy/templates/serviceaccount.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "aerospike-proxy.serviceAccountName" . }} + namespace: {{ include "aerospike-proxy.namespace" . }} labels: {{- include "aerospike-proxy.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }} diff --git a/aerospike-proxy/templates/tests/test-connection.yaml b/aerospike-proxy/templates/tests/test-connection.yaml index dc4631a..15d9efa 100644 --- a/aerospike-proxy/templates/tests/test-connection.yaml +++ b/aerospike-proxy/templates/tests/test-connection.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Pod metadata: name: "{{ include "aerospike-proxy.fullname" . }}-test-connection" + namespace: {{ include "aerospike-proxy.namespace" . }} labels: {{- include "aerospike-proxy.labels" . | nindent 4 }} annotations: diff --git a/aerospike-proxy/values.yaml b/aerospike-proxy/values.yaml index 37d32e6..bbd5bcf 100644 --- a/aerospike-proxy/values.yaml +++ b/aerospike-proxy/values.yaml @@ -14,6 +14,9 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +# namespaceOverride overrides the namespace, defaults to .Release.Namespace +namespaceOverride: "" + proxyConfig: {} serviceAccount: diff --git a/docs/aerospike-proxy-1.0.0.tgz b/docs/aerospike-proxy-1.0.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..c620d3848c72cb985d8ea837aa8b3f5f3bb2970c GIT binary patch literal 9438 zcmV<4Bq7@$iwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%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