Add components to selectlabels
Signed-off-by: Hui Kang <hui.kang@salesforce.com>
This commit is contained in:
parent
f8d3f4dccc
commit
ee808b329b
9 changed files with 12 additions and 13121 deletions
|
@ -4,7 +4,6 @@ description: A Helm chart for Argo Rollouts
|
||||||
name: argo-rollouts
|
name: argo-rollouts
|
||||||
version: 1.1.0
|
version: 1.1.0
|
||||||
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
|
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
|
||||||
)
|
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: alexmt
|
- name: alexmt
|
||||||
|
|
|
@ -52,14 +52,6 @@ app.kubernetes.io/name: {{ include "argo-rollouts.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Selector labels: dashboard
|
|
||||||
*/}}
|
|
||||||
{{- define "argo-rollouts.selectorLabels-dashboard" -}}
|
|
||||||
app.kubernetes.io/name: {{ include "argo-rollouts.name" . }}-dashboard
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}-dashboard
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create the name of the service account to use
|
Create the name of the service account to use
|
||||||
*/}}
|
*/}}
|
||||||
|
|
|
@ -8,6 +8,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
|
@ -19,6 +20,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
||||||
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
{{- range $key, $value := .Values.podLabels }}
|
{{- range $key, $value := .Values.podLabels }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -4,7 +4,7 @@ kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argo-rollouts.fullname" . }}-metrics
|
name: {{ include "argo-rollouts.fullname" . }}-metrics
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: server
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
{{- with .Values.serviceAnnotations }}
|
{{- with .Values.serviceAnnotations }}
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -17,5 +17,6 @@ spec:
|
||||||
port: 8090
|
port: 8090
|
||||||
targetPort: 8090
|
targetPort: 8090
|
||||||
selector:
|
selector:
|
||||||
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
|
{{- include "argo-rollouts.selectorLabels" . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -9,7 +9,8 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "argo-rollouts.selectorLabels-dashboard" . | nindent 6 }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
||||||
|
app.kubernetes.io/component: {{ .Values.dashboard.component }}
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
|
@ -19,7 +20,8 @@ spec:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argo-rollouts.selectorLabels-dashboard" . | nindent 8 }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
||||||
|
app.kubernetes.io/component: {{ .Values.dashboard.component }}
|
||||||
{{- range $key, $value := .Values.podLabels }}
|
{{- range $key, $value := .Values.podLabels }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -17,6 +17,6 @@ spec:
|
||||||
port: 3100
|
port: 3100
|
||||||
targetPort: 3100
|
targetPort: 3100
|
||||||
selector:
|
selector:
|
||||||
# app.kubernetes.io/component: {{ .Values.dashboard.component }}
|
app.kubernetes.io/component: {{ .Values.dashboard.component }}
|
||||||
{{- include "argo-rollouts.selectorLabels-dashboard" . | nindent 6 }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -25,7 +25,7 @@ controller:
|
||||||
# memory: 64Mi
|
# memory: 64Mi
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
enabled: false
|
enabled: true
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
additionalLabels: {}
|
additionalLabels: {}
|
||||||
|
|
Loading…
Reference in a new issue