From 84598ecb6d07bf598ffbfa7f17b5bd98e02197ab Mon Sep 17 00:00:00 2001 From: coutug Date: Wed, 20 Mar 2024 11:09:04 -0400 Subject: [PATCH] new name test --- charts/substreams-sink/Chart.yaml | 2 +- charts/substreams-sink/templates/_helpers.tpl | 4 ++-- charts/substreams-sink/templates/deployment.yaml | 10 +++++----- charts/substreams-sink/templates/env.yaml | 2 +- charts/substreams-sink/templates/pvc.yaml | 2 +- charts/substreams-sink/templates/service.yaml | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/charts/substreams-sink/Chart.yaml b/charts/substreams-sink/Chart.yaml index 667e5d9..6998209 100644 --- a/charts/substreams-sink/Chart.yaml +++ b/charts/substreams-sink/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: 1.0.6 +version: 1.0.7 # 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/charts/substreams-sink/templates/_helpers.tpl b/charts/substreams-sink/templates/_helpers.tpl index 9da2e53..7755343 100644 --- a/charts/substreams-sink/templates/_helpers.tpl +++ b/charts/substreams-sink/templates/_helpers.tpl @@ -34,7 +34,7 @@ Create chart name and version as used by the chart label. Create common lablels. */}} {{- define "substreams-sink.common-labels" -}} -app: {{ .Release.Name }} +app: sink {{- if .Values.sinkType }} sinkType: {{ .Values.sinkType }} {{- end }} @@ -60,7 +60,7 @@ Selector labels */}} {{- define "substreams-sink.selectorLabels" -}} app.kubernetes.io/name: {{ include "substreams-sink.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} +app.kubernetes.io/instance: sink {{- end }} {{/* diff --git a/charts/substreams-sink/templates/deployment.yaml b/charts/substreams-sink/templates/deployment.yaml index 1ba1ab9..629ba17 100644 --- a/charts/substreams-sink/templates/deployment.yaml +++ b/charts/substreams-sink/templates/deployment.yaml @@ -1,10 +1,10 @@ apiVersion: apps/v1 kind: {{ if .Values.cursorPvc.enabled }}StatefulSet{{ else }}Deployment{{ end }} metadata: - name: {{ .Release.Name }} + name: sink namespace: {{ .Release.Namespace }} labels: - release: {{ .Release.Name }} + release: sink chart: {{ .Chart.Name }} name: {{ include "substreams-sink.name" . }} fullName: {{ include "substreams-sink.fullname" . }} @@ -20,7 +20,7 @@ spec: {{- include "substreams-sink.common-labels" . | nindent 8 }} spec: containers: - - name: {{ .Release.Name }} + - name: sink image: {{ .Values.image -}} :{{ .Values.tag }} {{- if .Values.args }} args: {{ .Values.args }} @@ -29,7 +29,7 @@ spec: - containerPort: {{ .Values.env.port }} envFrom: - configMapRef: - name: env-{{ .Release.Name }} + name: env-sink {{- if .Values.secretName }} - secretRef: name: {{ .Values.secretName }} @@ -50,5 +50,5 @@ spec: volumes: - name: cursor-volume persistentVolumeClaim: - claimName: pvc-{{ .Release.Name }} + claimName: pvc-sink {{- end }} \ No newline at end of file diff --git a/charts/substreams-sink/templates/env.yaml b/charts/substreams-sink/templates/env.yaml index 1bd24e3..075303f 100644 --- a/charts/substreams-sink/templates/env.yaml +++ b/charts/substreams-sink/templates/env.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: ConfigMap metadata: - name: env-{{ .Release.Name }} + name: env-sink labels: {{- include "substreams-sink.common-labels" . | nindent 4 }} data: diff --git a/charts/substreams-sink/templates/pvc.yaml b/charts/substreams-sink/templates/pvc.yaml index 0a1e424..31884ad 100644 --- a/charts/substreams-sink/templates/pvc.yaml +++ b/charts/substreams-sink/templates/pvc.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: pvc-{{ .Release.Name }} + name: pvc-sink namespace: {{ .Release.Namespace }} labels: {{- include "substreams-sink.common-labels" . | nindent 4 }} diff --git a/charts/substreams-sink/templates/service.yaml b/charts/substreams-sink/templates/service.yaml index 58bf289..c8d0ac6 100644 --- a/charts/substreams-sink/templates/service.yaml +++ b/charts/substreams-sink/templates/service.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: {{ .Release.Name }} + name: sink namespace: {{ .Release.Namespace }} labels: {{- include "substreams-sink.common-labels" . | nindent 4 }}