Skip to content

Commit

Permalink
remove apis that wont work in k8s 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaguerre committed Nov 19, 2021
1 parent 677acf2 commit bab0ec3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stable/gcloud-sqlproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ name: gcloud-sqlproxy
sources:
- https://github.com/rimusz/charts
type: application
version: 0.22.1
version: 0.22.2
2 changes: 1 addition & 1 deletion stable/gcloud-sqlproxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 4 additions & 0 deletions stable/gcloud-sqlproxy/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion stable/gcloud-sqlproxy/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion stable/gcloud-sqlproxy/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down

0 comments on commit bab0ec3

Please sign in to comment.