From 40d8402d1c6311e7aa277ac46418e3b8eef3dae4 Mon Sep 17 00:00:00 2001 From: sutekar Date: Sat, 23 Jul 2022 22:52:52 +0530 Subject: [PATCH] removing labels from sa templates --- templates/docs/serviceAccount.yaml | 4 +--- templates/models/serviceAccount.yaml | 11 +---------- templates/monitor/serviceAccount.yaml | 4 +--- templates/web/serviceAccount.yaml | 4 +--- 4 files changed, 4 insertions(+), 19 deletions(-) diff --git a/templates/docs/serviceAccount.yaml b/templates/docs/serviceAccount.yaml index a74154b..7bdda6a 100644 --- a/templates/docs/serviceAccount.yaml +++ b/templates/docs/serviceAccount.yaml @@ -1,6 +1,4 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ include "pecan.fullname" . }}-docs - labels: - {{- include "pecan.labels" . | nindent 4 }} \ No newline at end of file + name: {{ include "pecan.fullname" . }}-docs \ No newline at end of file diff --git a/templates/models/serviceAccount.yaml b/templates/models/serviceAccount.yaml index a98bbc2..adef419 100644 --- a/templates/models/serviceAccount.yaml +++ b/templates/models/serviceAccount.yaml @@ -1,13 +1,4 @@ -{{- if .Values.models }} -{{- $fullname := include "pecan.fullname" . }} -{{- $labels := include "pecan.labels" . }} -{{- $rabbitmqEnv := include "pecan.env.rabbitmq" . }} -{{- range $key, $val := .Values.models }} -{{- if .enabled }} ---- apiVersion: v1 kind: ServiceAccount metadata: - name: {{ $fullname }}-model-{{ $key }} - labels: - {{ $labels | indent 4 }} \ No newline at end of file + name: {{ include "pecan.fullname" . }}-models \ No newline at end of file diff --git a/templates/monitor/serviceAccount.yaml b/templates/monitor/serviceAccount.yaml index 0a3c57e..1ae3825 100644 --- a/templates/monitor/serviceAccount.yaml +++ b/templates/monitor/serviceAccount.yaml @@ -1,6 +1,4 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ include "pecan.fullname" . }}-monitor - labels: - {{- include "pecan.labels" . | nindent 4 }} \ No newline at end of file + name: {{ include "pecan.fullname" . }}-monitor \ No newline at end of file diff --git a/templates/web/serviceAccount.yaml b/templates/web/serviceAccount.yaml index 5229aa2..6d137de 100644 --- a/templates/web/serviceAccount.yaml +++ b/templates/web/serviceAccount.yaml @@ -1,6 +1,4 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ include "pecan.fullname" . }}-web - labels: - {{- include "pecan.labels" . | nindent 4 }} \ No newline at end of file + name: {{ include "pecan.fullname" . }}-web \ No newline at end of file