[stable/rabbitmq-ha] Updating StatefulSet apiVersion for kubernetes 1.16 (#17597)

* [stable/rabbitmq-ha] Updating StatefulSet apiVersion for kubernetes 1.16

Deprecation information
https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/

Signed-off-by: Eric Lemieux <eric@lemieuxdev.com>

* [stable/rabbitmq-ha] Updating deprecated apiVersion for Role and RoleBinding

Signed-off-by: Eric Lemieux <eric@lemieuxdev.com>

* [stable/rabbitmq-ha] Adding selector to StatefulSet

Signed-off-by: Eric Lemieux <eric@lemieuxdev.com>
This commit is contained in:
Eric
2019-10-03 07:54:08 -07:00
committed by Kubernetes Prow Robot
parent 64734e2a0e
commit 9765bf2f9a
6 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: rabbitmq-ha
apiVersion: v1
appVersion: 3.7.15
version: 1.32.4
version: 1.33.0
description: Highly available RabbitMQ cluster, the open source message broker
software that implements the Advanced Message Queuing Protocol (AMQP).
keywords:
+1 -1
View File
@@ -17,7 +17,7 @@ deployment on a [Kubernetes](http://kubernetes.io) cluster using the
## Prerequisites
- Kubernetes 1.5+ with Beta APIs enabled
- Kubernetes 1.9+ with Beta APIs enabled
- PV provisioner support in the underlying infrastructure
## Installing the Chart
+1 -1
View File
@@ -1,5 +1,5 @@
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
@@ -1,5 +1,5 @@
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
@@ -1,9 +1,8 @@
apiVersion: v1
kind: Service
metadata:
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
name: {{ printf "%s-discovery" (include "rabbitmq-ha.fullname" .) | trunc 63 | trimSuffix "-" }}
@@ -1,4 +1,4 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ template "rabbitmq-ha.fullname" . }}
@@ -17,6 +17,10 @@ spec:
replicas: {{ .Values.replicaCount }}
updateStrategy:
type: {{ .Values.updateStrategy }}
selector:
matchLabels:
app: {{ template "rabbitmq-ha.name" . }}
release: {{ .Release.Name }}
template:
metadata:
labels: