[stable/kubewatch] bump major version (#18712)

Helm performs a lookup for the object based on its group (apps), version (v1), and kind (Deployment). Also known as its GroupVersionKind, or GVK. Changing the GVK is considered a compatibility breaker from Kubernetes' point of view, so you cannot "upgrade" those objects to the new GVK in-place. Earlier versions of Helm 3 did not perform the lookup correctly which has since been fixed to match the spec.

In https://github.com/helm/charts/pull/17285 the `apiVersion` of the deployment resources was updated to `apps/v1` in tune with the api's deprecated, resulting in compatibility breakage.

This major version signifies this change.

Signed-off-by: Sameer Naik <sameersbn@vmware.com>
This commit is contained in:
Sameer Naik
2019-11-11 07:49:42 -08:00
committed by Kubernetes Prow Robot
parent c780e7e3bb
commit 9e63cde43e
4 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: kubewatch
version: 0.8.13
version: 1.0.0
apiVersion: v1
appVersion: 0.0.4
home: https://github.com/bitnami-labs/kubewatch
+10
View File
@@ -117,3 +117,13 @@ Open [https://my.slack.com/services/new/bot](https://my.slack.com/services/new/b
The API token can be found on the edit page (it starts with `xoxb-`).
Invite the Bot to your channel by typing `/join @name_of_your_bot` in the Slack message area.
## Upgrading
### To 1.0.0
Helm performs a lookup for the object based on its group (apps), version (v1), and kind (Deployment). Also known as its GroupVersionKind, or GVK. Changing the GVK is considered a compatibility breaker from Kubernetes' point of view, so you cannot "upgrade" those objects to the new GVK in-place. Earlier versions of Helm 3 did not perform the lookup correctly which has since been fixed to match the spec.
In https://github.com/helm/charts/pull/17285 the `apiVersion` of the deployment resources was updated to `apps/v1` in tune with the api's deprecated, resulting in compatibility breakage.
This major version signifies this change.
+11
View File
@@ -93,3 +93,14 @@ imagePullSecrets:
{{- end }}
{{- end -}}
{{- end -}}
{{/*
Return the appropriate apiVersion for deployment.
*/}}
{{- define "kubewatch.deployment.apiVersion" -}}
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "apps/v1beta2" -}}
{{- else -}}
{{- print "apps/v1" -}}
{{- end -}}
{{- end -}}
+1 -1
View File
@@ -1,4 +1,4 @@
apiVersion: apps/v1
apiVersion: {{ template "kubewatch.deployment.apiVersion" . }}
kind: Deployment
metadata:
labels: