forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use default k8s cluster plugin from rabbitmq (helm#4591)
* use default k8s cluster plugin from rabbitmq * changes to reflect pr review comments * remove trailing spaces * futher changes from PR review * doing sed in the copy as it fails in gce due to filesystem permisions when starting the pod
- Loading branch information
Showing
16 changed files
with
615 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "rabbitmq.fullname" . }}-config | ||
labels: | ||
app: {{ template "rabbitmq.name" . }} | ||
chart: {{ template "rabbitmq.chart" . }} | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
data: | ||
enabled_plugins: |- | ||
{{ .Values.rabbitmq.plugins | indent 4 }} | ||
rabbitmq.conf: |- | ||
##username and password | ||
default_user={{.Values.rabbitmq.username}} | ||
default_pass=CHANGEME | ||
{{ .Values.rabbitmq.configuration | indent 4 }} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{- if .Values.ingress.enabled }} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: "{{ template "rabbitmq.fullname" . }}" | ||
labels: | ||
app: {{ template "rabbitmq.name" . }} | ||
chart: {{ template "rabbitmq.chart" . }} | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
annotations: | ||
{{- if .Values.ingress.tls }} | ||
ingress.kubernetes.io/secure-backends: "true" | ||
{{- end }} | ||
{{- range $key, $value := .Values.ingress.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
spec: | ||
rules: | ||
{{- if .Values.ingress.hostName }} | ||
- host: {{ .Values.ingress.hostName }} | ||
http: | ||
{{- else }} | ||
- http: | ||
{{- end }} | ||
paths: | ||
- path: {{ default "/" .path }} | ||
backend: | ||
serviceName: {{ template "rabbitmq.fullname" . }} | ||
servicePort: {{ .Values.rabbitmq.managerPort }} | ||
{{- if .Values.ingress.tls }} | ||
tls: | ||
- hosts: | ||
{{- if .Values.ingress.hostName }} | ||
- {{ .Values.ingress.hostName }} | ||
secretName: {{ .Values.ingress.tlsSecret }} | ||
{{- else}} | ||
- secretName: {{ .Values.ingress.tlsSecret }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if .Values.rbacEnabled }} | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: {{ template "rabbitmq.fullname" . }}-endpoint-reader | ||
labels: | ||
app: {{ template "rabbitmq.name" . }} | ||
chart: {{ template "rabbitmq.chart" . }} | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["endpoints"] | ||
verbs: ["get"] | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if .Values.rbacEnabled }} | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: {{ template "rabbitmq.fullname" . }}-endpoint-reader | ||
labels: | ||
app: {{ template "rabbitmq.name" . }} | ||
chart: {{ template "rabbitmq.chart" . }} | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
subjects: | ||
- kind: ServiceAccount | ||
name: rabbitmq | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: {{ template "rabbitmq.fullname" . }}-endpoint-reader | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- if .Values.rbacEnabled }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ template "rabbitmq.fullname" . }} | ||
labels: | ||
app: {{ template "rabbitmq.name" . }} | ||
chart: {{ template "rabbitmq.chart" . }} | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
{{- end }} |
Oops, something went wrong.