Update migration-guide-v1alphav1-to-v1alpha2.md
This commit is contained in:
		
							parent
							
								
									a5db6e9126
								
							
						
					
					
						commit
						d8bfa8de13
					
				|  | @ -40,6 +40,21 @@ $ kubectl -n <namespace> get jenkins <cr_name> -o yaml > jenkins.yaml | ||||||
| 
 | 
 | ||||||
| ## Modify jenkins.yaml file | ## 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: | Old format: | ||||||
| ```yaml | ```yaml | ||||||
| apiVersion: jenkins.io/v1alpha1 | apiVersion: jenkins.io/v1alpha1 | ||||||
|  | @ -249,19 +264,6 @@ spec: | ||||||
|       version: 2.24 |       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 | ## Deploy new Kubernetes manifests | ||||||
| 
 | 
 | ||||||
| Run commands: | 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 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 jenkins.yaml | ||||||
| $ kubectl -n <namespace> apply -f https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/deploy/all-in-one-v1alpha2.yaml | $ kubectl -n <namespace> apply -f https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/deploy/all-in-one-v1alpha2.yaml | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue