Skip to content

Commit

Permalink
🔧 Rename PriorityClass names to contain namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Rintaro Okamura <[email protected]>
  • Loading branch information
rinx committed Dec 24, 2020
1 parent 923ef5a commit 47eab08
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion charts/vald/templates/agent/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ spec:
{{- end }}
{{- if .Values.agent.podPriority }}
{{- if .Values.agent.podPriority.enabled }}
priorityClassName: {{ .Values.agent.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.agent.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/agent/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ spec:
{{- end }}
{{- if .Values.agent.podPriority }}
{{- if .Values.agent.podPriority.enabled }}
priorityClassName: {{ .Values.agent.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.agent.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/agent/priorityclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ .Values.agent.name }}-priority
name: {{ .Release.Namespace }}-{{ .Values.agent.name }}-priority
labels:
app.kubernetes.io/name: {{ include "vald.name" . }}
helm.sh/chart: {{ include "vald.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/agent/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ spec:
{{- end }}
{{- if .Values.agent.podPriority }}
{{- if .Values.agent.podPriority.enabled }}
priorityClassName: {{ .Values.agent.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.agent.name }}-priority
{{- end }}
{{- end }}
{{- if not .Values.agent.ngt.enable_in_memory_mode }}
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/discoverer/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ spec:
{{- end }}
{{- if .Values.discoverer.podPriority }}
{{- if .Values.discoverer.podPriority.enabled }}
priorityClassName: {{ .Values.discoverer.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.discoverer.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/discoverer/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ spec:
{{- end }}
{{- if .Values.discoverer.podPriority }}
{{- if .Values.discoverer.podPriority.enabled }}
priorityClassName: {{ .Values.discoverer.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.discoverer.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/discoverer/priorityclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ .Values.discoverer.name }}-priority
name: {{ .Release.Namespace }}-{{ .Values.discoverer.name }}-priority
labels:
app.kubernetes.io/name: {{ include "vald.name" . }}
helm.sh/chart: {{ include "vald.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/gateway/vald/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
{{- end }}
{{- if .Values.gateway.podPriority }}
{{- if .Values.gateway.podPriority.enabled }}
priorityClassName: {{ .Values.gateway.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.gateway.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/gateway/vald/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ spec:
{{- end }}
{{- if .Values.gateway.podPriority }}
{{- if .Values.gateway.podPriority.enabled }}
priorityClassName: {{ .Values.gateway.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.gateway.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/gateway/vald/priorityclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ .Values.gateway.name }}-priority
name: {{ .Release.Namespace }}-{{ .Values.gateway.name }}-priority
labels:
app.kubernetes.io/name: {{ include "vald.name" . }}
helm.sh/chart: {{ include "vald.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/manager/backup/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
{{- end }}
{{- if .Values.backupManager.podPriority }}
{{- if .Values.backupManager.podPriority.enabled }}
priorityClassName: {{ .Values.backupManager.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.backupManager.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/manager/backup/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ spec:
{{- end }}
{{- if .Values.backupManager.podPriority }}
{{- if .Values.backupManager.podPriority.enabled }}
priorityClassName: {{ .Values.backupManager.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.backupManager.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/manager/backup/priorityclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ .Values.backupManager.name }}-priority
name: {{ .Release.Namespace }}-{{ .Values.backupManager.name }}-priority
labels:
app.kubernetes.io/name: {{ include "vald.name" . }}
helm.sh/chart: {{ include "vald.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/manager/compressor/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
{{- end }}
{{- if .Values.compressor.podPriority }}
{{- if .Values.compressor.podPriority.enabled }}
priorityClassName: {{ .Values.compressor.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.compressor.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/manager/compressor/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ spec:
{{- end }}
{{- if .Values.compressor.podPriority }}
{{- if .Values.compressor.podPriority.enabled }}
priorityClassName: {{ .Values.compressor.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.compressor.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ .Values.compressor.name }}-priority
name: {{ .Release.Namespace }}-{{ .Values.compressor.name }}-priority
labels:
app.kubernetes.io/name: {{ include "vald.name" . }}
helm.sh/chart: {{ include "vald.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/manager/index/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
{{- end }}
{{- if .Values.indexManager.podPriority }}
{{- if .Values.indexManager.podPriority.enabled }}
priorityClassName: {{ .Values.indexManager.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.indexManager.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/manager/index/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ spec:
{{- end }}
{{- if .Values.indexManager.podPriority }}
{{- if .Values.indexManager.podPriority.enabled }}
priorityClassName: {{ .Values.indexManager.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.indexManager.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/manager/index/priorityclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ .Values.indexManager.name }}-priority
name: {{ .Release.Namespace }}-{{ .Values.indexManager.name }}-priority
labels:
app.kubernetes.io/name: {{ include "vald.name" . }}
helm.sh/chart: {{ include "vald.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/meta/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
{{- end }}
{{- if .Values.meta.podPriority }}
{{- if .Values.meta.podPriority.enabled }}
priorityClassName: {{ .Values.meta.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.meta.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/meta/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ spec:
{{- end }}
{{- if .Values.meta.podPriority }}
{{- if .Values.meta.podPriority.enabled }}
priorityClassName: {{ .Values.meta.name }}-priority
priorityClassName: {{ .Release.Namespace }}-{{ .Values.meta.name }}-priority
{{- end }}
{{- end }}
status:
Expand Down
2 changes: 1 addition & 1 deletion charts/vald/templates/meta/priorityclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ .Values.meta.name }}-priority
name: {{ .Release.Namespace }}-{{ .Values.meta.name }}-priority
labels:
app.kubernetes.io/name: {{ include "vald.name" . }}
helm.sh/chart: {{ include "vald.chart" . }}
Expand Down

0 comments on commit 47eab08

Please sign in to comment.