From 2177bef95e1e64fa8df351492f18a42f518bf1d4 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Wed, 11 Dec 2019 05:58:06 +0800 Subject: [PATCH] [stable/stolon] upgrade api version for kubernetes 1.16+ (#19289) The v1.16 release will stop serving the following deprecated API versions in favor of newer and more stable API versions: * DaemonSet, Deployment, StatefulSet, and ReplicaSet (in the extensions/v1beta1 and apps/v1beta2 API groups) * Migrate to use the apps/v1 API, available since v1.9. Existing persisted data can be retrieved/updated via the apps/v1 API. See https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/ Signed-off-by: Yujun Zhang --- stable/stolon/Chart.yaml | 2 +- stable/stolon/templates/keeper-statefulset.yaml | 2 +- stable/stolon/templates/proxy-deployment.yaml | 2 +- stable/stolon/templates/sentinel-deployment.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stable/stolon/Chart.yaml b/stable/stolon/Chart.yaml index 96c685b3f3..7e4eb1f75e 100644 --- a/stable/stolon/Chart.yaml +++ b/stable/stolon/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: stolon -version: 1.5.0 +version: 1.5.1 appVersion: 0.13.0 description: Stolon - PostgreSQL cloud native High Availability. home: https://github.com/sorintlab/stolon diff --git a/stable/stolon/templates/keeper-statefulset.yaml b/stable/stolon/templates/keeper-statefulset.yaml index e46b65c4b2..25868cf440 100644 --- a/stable/stolon/templates/keeper-statefulset.yaml +++ b/stable/stolon/templates/keeper-statefulset.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ template "stolon.fullname" . }}-keeper diff --git a/stable/stolon/templates/proxy-deployment.yaml b/stable/stolon/templates/proxy-deployment.yaml index 84c2c85d28..5fea0e196a 100644 --- a/stable/stolon/templates/proxy-deployment.yaml +++ b/stable/stolon/templates/proxy-deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "stolon.fullname" . }}-proxy diff --git a/stable/stolon/templates/sentinel-deployment.yaml b/stable/stolon/templates/sentinel-deployment.yaml index 0ba6932dae..b9d6559daf 100644 --- a/stable/stolon/templates/sentinel-deployment.yaml +++ b/stable/stolon/templates/sentinel-deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "stolon.fullname" . }}-sentinel