From a0b04318dc543caacd7cf45f5a8e220ec81c924f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pra=C5=BCak?= Date: Wed, 19 Jun 2019 15:17:23 +0200 Subject: [PATCH] Update migration-guide-v1alphav1-to-v1alpha2.md --- docs/migration-guide-v1alphav1-to-v1alpha2.md | 35 +++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/docs/migration-guide-v1alphav1-to-v1alpha2.md b/docs/migration-guide-v1alphav1-to-v1alpha2.md index 69e6ffa6..d3b384e5 100644 --- a/docs/migration-guide-v1alphav1-to-v1alpha2.md +++ b/docs/migration-guide-v1alphav1-to-v1alpha2.md @@ -295,11 +295,34 @@ spec: version: 2.24 ``` -## Deploy new Kubernetes manifests +## Update CRD to new version -Run commands: -```bash -$ kubectl -n apply -f https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/deploy/crds/jenkins_v1alpha2_jenkins_crd.yaml -$ kubectl -n apply -f jenkins.yaml -$ kubectl -n apply -f https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/deploy/all-in-one-v1alpha2.yaml +New version of the Custom Resource definition for the operator needs to be applied: +-[Jenkins CRD v1alpha2](https://github.com/jenkinsci/kubernetes-operator/blob/master/deploy/crds/jenkins_v1alpha2_jenkins_crd.yaml) + +To use default CRD file: +``` +kubectl -n apply -f https://github.com/jenkinsci/kubernetes-operator/blob/master/deploy/crds/jenkins_v1alpha2_jenkins_crd.yaml +``` + +## Update RBAC to new verison + +New operator version requires updated RBAC permissions: + +To use default Role file: +``` +$ kubectl -n apply -f https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/deploy/role.yaml +``` + +## Deploy new operator manifests + +Apply your modified operator configuration file: +```bash +$ kubectl -n apply -f jenkins.yaml +``` + +Update operator version in the deployment file to `image: virtuslab/jenkins-operator:v0.1.0` and scale up, +or use the default deployment manifest: +``` +$ kubectl -n apply -f https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/deploy/operator.yaml ```