Skip to content

Commit

Permalink
removing labels from sa templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sutekar1597 committed Jul 23, 2022
1 parent d2d96ef commit 40d8402
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
4 changes: 1 addition & 3 deletions templates/docs/serviceAccount.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "pecan.fullname" . }}-docs
labels:
{{- include "pecan.labels" . | nindent 4 }}
name: {{ include "pecan.fullname" . }}-docs
11 changes: 1 addition & 10 deletions templates/models/serviceAccount.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
name: {{ include "pecan.fullname" . }}-models
4 changes: 1 addition & 3 deletions templates/monitor/serviceAccount.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "pecan.fullname" . }}-monitor
labels:
{{- include "pecan.labels" . | nindent 4 }}
name: {{ include "pecan.fullname" . }}-monitor
4 changes: 1 addition & 3 deletions templates/web/serviceAccount.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "pecan.fullname" . }}-web
labels:
{{- include "pecan.labels" . | nindent 4 }}
name: {{ include "pecan.fullname" . }}-web

0 comments on commit 40d8402

Please sign in to comment.