Update migration-guide-v1alphav1-to-v1alpha2.md

This commit is contained in:
Paweł Prażak 2019-06-19 14:44:15 +02:00 committed by GitHub
parent a5db6e9126
commit d8bfa8de13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 14 deletions

View File

@ -40,6 +40,21 @@ $ kubectl -n <namespace> get jenkins <cr_name> -o yaml > jenkins.yaml
## Modify jenkins.yaml file
Change apiVersion to `apiVersion: jenkins.io/v1alpha2`
New plugin format without dependent plugins:
- spec.master.basePlugins
- spec.master.plugins
Move Jenkins master container properties to spec.master.containers[jenkins-master]
- spec.master.image
- spec.master.imagePullPolicy
- spec.master.livenessProbe
- spec.master.readinessProbe
- spec.master.resources
### Examples
Old format:
```yaml
apiVersion: jenkins.io/v1alpha1
@ -249,19 +264,6 @@ spec:
version: 2.24
```
Change apiVersion to `apiVersion: jenkins.io/v1alpha2`
New plugin format without dependent plugins:
- spec.master.basePlugins
- spec.master.plugins
Move Jenkins master container properties to spec.master.containers[jenkins-master]
- spec.master.image
- spec.master.imagePullPolicy
- spec.master.livenessProbe
- spec.master.readinessProbe
- spec.master.resources
## Deploy new Kubernetes manifests
Run commands:
@ -269,4 +271,4 @@ Run commands:
$ kubectl -n <namespace> apply -f https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/deploy/crds/jenkins_v1alpha2_jenkins_crd.yaml
$ kubectl -n <namespace> apply -f jenkins.yaml
$ kubectl -n <namespace> apply -f https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/deploy/all-in-one-v1alpha2.yaml
```
```