explain how to upgrade major versions (#13273)

Signed-off-by: Torsten Walter <mail@torstenwalter.de>
This commit is contained in:
Torsten Walter
2019-04-26 08:10:26 -07:00
committed by Kubernetes Prow Robot
parent 4ddc5537b7
commit e7617a97e0
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: jenkins
home: https://jenkins.io/
version: 1.1.7
version: 1.1.8
appVersion: lts
description: Open source continuous integration server. It supports multiple SCM tools
including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based
+29
View File
@@ -21,6 +21,35 @@ To install the chart with the release name `my-release`:
$ helm install --name my-release stable/jenkins
```
## Upgrading an existing Release to a new major version
A major chart version change (like v0.40.0 -> v1.0.0) indicates that there is an incompatible breaking change needing manual actions.
### 1.0.0
Breaking changes:
- values have been renamed to follow helm chart best practices for naming conventions so
that all variables start with a lowercase letter and words are separated with camelcase
https://helm.sh/docs/chart_best_practices/#naming-conventions
- all resources are now using recommended standard labels
https://helm.sh/docs/chart_best_practices/#standard-labels
As a result of the label changes also the selectors of the deployment have been updated.
Those are immutable so trying an updated will cause an error like:
```
Error: Deployment.apps "jenkins" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"jenkins-master", "app.kubernetes.io/instance":"jenkins"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
```
In order to upgrade, delete the Jenkins Deployment before upgrading:
```
kubectl delete deploy jenkins
```
## Configuration
The following tables list the configurable parameters of the Jenkins chart and their default values.