diff --git a/stable/gcloud-sqlproxy/Chart.yaml b/stable/gcloud-sqlproxy/Chart.yaml index e9cf6d6..47a2f4f 100755 --- a/stable/gcloud-sqlproxy/Chart.yaml +++ b/stable/gcloud-sqlproxy/Chart.yaml @@ -19,4 +19,4 @@ name: gcloud-sqlproxy sources: - https://github.com/rimusz/charts type: application -version: 0.22.1 +version: 0.22.2 diff --git a/stable/gcloud-sqlproxy/README.md b/stable/gcloud-sqlproxy/README.md index 15c6e4c..507644e 100755 --- a/stable/gcloud-sqlproxy/README.md +++ b/stable/gcloud-sqlproxy/README.md @@ -138,7 +138,7 @@ GCP does not support more than 5 endpoints on an Internal Load Balancer. To work ## Upgrading -**From < 0.22.0 to >= 0.22.1** +**From < 0.22.0 to >= 0.22.2** Please note, as of `0.22.1` image `repository`, `tag` and `pullPolicy` values use new variables, if not using the defaults, you will need to rename them. diff --git a/stable/gcloud-sqlproxy/templates/pdb.yaml b/stable/gcloud-sqlproxy/templates/pdb.yaml index edf8952..0c7f919 100755 --- a/stable/gcloud-sqlproxy/templates/pdb.yaml +++ b/stable/gcloud-sqlproxy/templates/pdb.yaml @@ -1,5 +1,9 @@ {{- if and .Values.podDisruptionBudget (gt (.Values.replicasCount | int) 1) -}} +{{- if .Capabilities.APIVersions.Has "policy/v1" }} +apiVersion: policy/v1 +{{- else }} apiVersion: policy/v1beta1 +{{- end }} kind: PodDisruptionBudget metadata: labels: diff --git a/stable/gcloud-sqlproxy/templates/role.yaml b/stable/gcloud-sqlproxy/templates/role.yaml index 969dc78..e5447fd 100755 --- a/stable/gcloud-sqlproxy/templates/role.yaml +++ b/stable/gcloud-sqlproxy/templates/role.yaml @@ -1,5 +1,5 @@ {{- if .Values.rbac.create }} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: namespace: {{ .Values.namespace }} diff --git a/stable/gcloud-sqlproxy/templates/rolebinding.yaml b/stable/gcloud-sqlproxy/templates/rolebinding.yaml index cd69187..b1195bf 100755 --- a/stable/gcloud-sqlproxy/templates/rolebinding.yaml +++ b/stable/gcloud-sqlproxy/templates/rolebinding.yaml @@ -1,5 +1,5 @@ {{- if .Values.rbac.create }} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: namespace: {{ .Values.namespace }}