mirror of
https://github.com/stakater/Reloader.git
synced 2026-05-22 08:32:57 +00:00
Merge pull request #938 from vmizoules/feat(chart)_allow_templating_labels
[helm] Add templating support for additionals labels
This commit is contained in:
@@ -11,10 +11,10 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{ include "reloader-labels.chart" . | indent 4 }}
|
{{ include "reloader-labels.chart" . | indent 4 }}
|
||||||
{{- if .Values.reloader.rbac.labels }}
|
{{- if .Values.reloader.rbac.labels }}
|
||||||
{{ toYaml .Values.reloader.rbac.labels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.rbac.labels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ template "reloader-fullname" . }}-role
|
name: {{ template "reloader-fullname" . }}-role
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{ include "reloader-labels.chart" . | indent 4 }}
|
{{ include "reloader-labels.chart" . | indent 4 }}
|
||||||
{{- if .Values.reloader.rbac.labels }}
|
{{- if .Values.reloader.rbac.labels }}
|
||||||
{{ toYaml .Values.reloader.rbac.labels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.rbac.labels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ template "reloader-fullname" . }}-role-binding
|
name: {{ template "reloader-fullname" . }}-role-binding
|
||||||
roleRef:
|
roleRef:
|
||||||
|
|||||||
@@ -4,15 +4,15 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
{{ include "reloader-helm3.annotations" . | indent 4 }}
|
{{ include "reloader-helm3.annotations" . | indent 4 }}
|
||||||
{{- if .Values.reloader.deployment.annotations }}
|
{{- if .Values.reloader.deployment.annotations }}
|
||||||
{{ toYaml .Values.reloader.deployment.annotations | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.deployment.annotations) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{ include "reloader-labels.chart" . | indent 4 }}
|
{{ include "reloader-labels.chart" . | indent 4 }}
|
||||||
{{- if .Values.reloader.deployment.labels }}
|
{{- if .Values.reloader.deployment.labels }}
|
||||||
{{ toYaml .Values.reloader.deployment.labels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.deployment.labels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ template "reloader-fullname" . }}
|
name: {{ template "reloader-fullname" . }}
|
||||||
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
||||||
@@ -28,21 +28,21 @@ spec:
|
|||||||
app: {{ template "reloader-fullname" . }}
|
app: {{ template "reloader-fullname" . }}
|
||||||
release: {{ .Release.Name | quote }}
|
release: {{ .Release.Name | quote }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 6 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- if .Values.reloader.deployment.pod.annotations }}
|
{{- if .Values.reloader.deployment.pod.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ toYaml .Values.reloader.deployment.pod.annotations | indent 8 }}
|
{{ tpl (toYaml .Values.reloader.deployment.pod.annotations) . | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{ include "reloader-labels.chart" . | indent 8 }}
|
{{ include "reloader-labels.chart" . | indent 8 }}
|
||||||
{{- if .Values.reloader.deployment.labels }}
|
{{- if .Values.reloader.deployment.labels }}
|
||||||
{{ toYaml .Values.reloader.deployment.labels | indent 8 }}
|
{{ tpl (toYaml .Values.reloader.deployment.labels) . | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 8 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.global.imagePullSecrets }}
|
{{- with .Values.global.imagePullSecrets }}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{ include "reloader-labels.chart" . | indent 4 }}
|
{{ include "reloader-labels.chart" . | indent 4 }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ template "reloader-fullname" . }}
|
name: {{ template "reloader-fullname" . }}
|
||||||
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
app: {{ template "reloader-fullname" . }}
|
app: {{ template "reloader-fullname" . }}
|
||||||
release: {{ .Release.Name | quote }}
|
release: {{ .Release.Name | quote }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 6 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
policyTypes:
|
policyTypes:
|
||||||
- Ingress
|
- Ingress
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{ include "reloader-labels.chart" . | indent 4 }}
|
{{ include "reloader-labels.chart" . | indent 4 }}
|
||||||
{{- if .Values.reloader.rbac.labels }}
|
{{- if .Values.reloader.rbac.labels }}
|
||||||
{{ toYaml .Values.reloader.rbac.labels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.rbac.labels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ template "reloader-fullname" . }}-role
|
name: {{ template "reloader-fullname" . }}-role
|
||||||
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{ include "reloader-labels.chart" . | indent 4 }}
|
{{ include "reloader-labels.chart" . | indent 4 }}
|
||||||
{{- if .Values.reloader.rbac.labels }}
|
{{- if .Values.reloader.rbac.labels }}
|
||||||
{{ toYaml .Values.reloader.rbac.labels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.rbac.labels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ template "reloader-fullname" . }}-role-binding
|
name: {{ template "reloader-fullname" . }}-role-binding
|
||||||
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
||||||
|
|||||||
@@ -5,22 +5,22 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
{{ include "reloader-helm3.annotations" . | indent 4 }}
|
{{ include "reloader-helm3.annotations" . | indent 4 }}
|
||||||
{{- if .Values.reloader.service.annotations }}
|
{{- if .Values.reloader.service.annotations }}
|
||||||
{{ toYaml .Values.reloader.service.annotations | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.service.annotations) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{ include "reloader-labels.chart" . | indent 4 }}
|
{{ include "reloader-labels.chart" . | indent 4 }}
|
||||||
{{- if .Values.reloader.service.labels }}
|
{{- if .Values.reloader.service.labels }}
|
||||||
{{ toYaml .Values.reloader.service.labels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.service.labels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ template "reloader-fullname" . }}
|
name: {{ template "reloader-fullname" . }}
|
||||||
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
{{- if .Values.reloader.deployment.labels }}
|
{{- if .Values.reloader.deployment.labels }}
|
||||||
{{ toYaml .Values.reloader.deployment.labels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.deployment.labels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .Values.reloader.service.port }}
|
- port: {{ .Values.reloader.service.port }}
|
||||||
|
|||||||
@@ -11,15 +11,15 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
{{ include "reloader-helm3.annotations" . | indent 4 }}
|
{{ include "reloader-helm3.annotations" . | indent 4 }}
|
||||||
{{- if .Values.reloader.serviceAccount.annotations }}
|
{{- if .Values.reloader.serviceAccount.annotations }}
|
||||||
{{ toYaml .Values.reloader.serviceAccount.annotations | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.serviceAccount.annotations) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{ include "reloader-labels.chart" . | indent 4 }}
|
{{ include "reloader-labels.chart" . | indent 4 }}
|
||||||
{{- if .Values.reloader.serviceAccount.labels }}
|
{{- if .Values.reloader.serviceAccount.labels }}
|
||||||
{{ toYaml .Values.reloader.serviceAccount.labels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.serviceAccount.labels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.reloader.matchLabels }}
|
{{- if .Values.reloader.matchLabels }}
|
||||||
{{ toYaml .Values.reloader.matchLabels | indent 4 }}
|
{{ tpl (toYaml .Values.reloader.matchLabels) . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ template "reloader-serviceAccountName" . }}
|
name: {{ template "reloader-serviceAccountName" . }}
|
||||||
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
||||||
|
|||||||
Reference in New Issue
Block a user