Skip to content

Make devops component separate from ks-installer

This pull request aims to make devops component separate from ks-installer. However, there are two steps we need to do:

  • Remove devops component from ks-installer(current PR is doing the right thing)

At the same time, we are doing some works for kubesphere apiserver, and the upstream PR is https://github.com/kubesphere/kubesphere/pull/4129.

What have I done

  • Remove devops CRDs
  • Remove devops roles files, including s2i and jenkins
  • Use ks-devops helm chart to install devops component

Things to do

  • Recover SonarQube configuration
  • Invert devops.enable config
  • Package helm charts
  • Keep image pull policy IfNotPresent
  • Change the helm chart name ks-ctl to devops
  • Remove ks-devops-plugin chart

Step to test

  1. Install KubeSphere via kk (or other ways).

  2. Replace the image of ks-installer with johnniang/ks-installer:remove-devops-comp.

    kubectl patch -nkubesphere-system deployment ks-installer --type=json -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value": "johnniang/ks-installer:remove-devops-comp"}]'
  3. Enable DevOps in KubeSphere.

    kubectl patch -nkubesphere-system cc ks-installer --type=json -p='[{"op": "replace", "path": "/spec/devops/enabled", "value": true}]'
    kubectl rollout restart -n kubesphere-system deploy/ks-installer

/area devops /kind optimization

合并请求报告