Skip to content

Commit

Permalink
add namespace metadata
Browse files Browse the repository at this point in the history
this is needed for when helm is used purely as a templating tool,
since helm template does not add the namespace
helm/helm#3553

Signed-off-by: eduardo aleixo <eduardoaleixomartins@gmail.com>
  • Loading branch information
eh-am committed May 17, 2019
1 parent c3a3cbb commit 3a2b457
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/rabbitmq-ha/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: rabbitmq-ha
apiVersion: v1
appVersion: 3.7.12
version: 1.27.0
version: 1.27.1
description: Highly available RabbitMQ cluster, the open source message broker
software that implements the Advanced Message Queuing Protocol (AMQP).
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/rabbitmq-ha/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "rabbitmq-ha.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "rabbitmq-ha.name" . }}
chart: {{ template "rabbitmq-ha.chart" . }}
Expand Down
1 change: 1 addition & 0 deletions stable/rabbitmq-ha/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "rabbitmq-ha.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "rabbitmq-ha.name" . }}
chart: {{ template "rabbitmq-ha.chart" . }}
Expand Down
1 change: 1 addition & 0 deletions stable/rabbitmq-ha/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ template "rabbitmq-ha.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "rabbitmq-ha.name" . }}
chart: {{ template "rabbitmq-ha.chart" . }}
Expand Down
1 change: 1 addition & 0 deletions stable/rabbitmq-ha/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
{{ toYaml .Values.extraLabels | indent 4 }}
{{- end }}
name: {{ template "rabbitmq-ha.fullname" . }}
namespace: {{ .Release.Namespace }}
rules:
- apiGroups: [""]
resources: ["endpoints"]
Expand Down
2 changes: 2 additions & 0 deletions stable/rabbitmq-ha/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ metadata:
{{ toYaml .Values.extraLabels | indent 4 }}
{{- end }}
name: {{ template "rabbitmq-ha.fullname" . }}
namespace: {{ .Release.Namespace }}
subjects:
- kind: ServiceAccount
name: {{ template "rabbitmq-ha.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down
1 change: 1 addition & 0 deletions stable/rabbitmq-ha/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ template "rabbitmq-ha.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "rabbitmq-ha.name" . }}
chart: {{ template "rabbitmq-ha.chart" . }}
Expand Down
1 change: 1 addition & 0 deletions stable/rabbitmq-ha/templates/service-discovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
name: {{ printf "%s-discovery" (include "rabbitmq-ha.fullname" .) | trunc 63 | trimSuffix "-" }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "rabbitmq-ha.name" . }}
chart: {{ template "rabbitmq-ha.chart" . }}
Expand Down
1 change: 1 addition & 0 deletions stable/rabbitmq-ha/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ metadata:
prometheus.io/port: {{ .Values.prometheus.exporter.port | quote }}
{{- end }}
name: {{ template "rabbitmq-ha.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "rabbitmq-ha.name" . }}
chart: {{ template "rabbitmq-ha.chart" . }}
Expand Down
3 changes: 2 additions & 1 deletion stable/rabbitmq-ha/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ metadata:
{{ toYaml .Values.extraLabels | indent 4 }}
{{- end }}
name: {{ template "rabbitmq-ha.serviceAccountName" . }}
{{- end }}
namespace: {{ .Release.Namespace }}
{{- end }}
1 change: 1 addition & 0 deletions stable/rabbitmq-ha/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: {{ template "rabbitmq-ha.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "rabbitmq-ha.name" . }}
chart: {{ template "rabbitmq-ha.chart" . }}
Expand Down

0 comments on commit 3a2b457

Please sign in to comment.