Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(upgrade): add basic upgrade framework and cspc upgrades #1

Merged
merged 5 commits into from
May 4, 2020

Conversation

shubham14bajpai
Copy link
Contributor

@shubham14bajpai shubham14bajpai commented Apr 26, 2020

This PR adds

  • upgrade framework to upgrade OpenEBS data plane components.
  • upgrade support for CSPC.
  • vendor files for the repo.
  • Makefile and build scripts.

Sample job YAML:

apiVersion: batch/v1
kind: Job
metadata:
  name: cstor-cspc
  #VERIFY the value of namespace is same as the namespace where openebs cstor components
  # are installed. You can verify using the command:
  # `kubectl get pods -n <openebs-namespace> -l openebs.io/component-name=cspc-operator`
  namespace: openebs
spec:
  backoffLimit: 4
  template:
    spec:
      #VERIFY the value of serviceAccountName is pointing to service account
      # created within openebs namespace. Use the non-default account.
      # by running `kubectl get sa -n <openebs-namespace>`
      serviceAccountName: openebs-cstor-operator
      containers:
      - name:  upgrade
        args:
        - "cstor-cspc"

        # --from-version is the current version of the pool
        - "--from-version=1.9.0"

        # --to-version is the version desired upgrade version
        - "--to-version=1.10.0"
        - "--to-version-image-prefix=openebs/"
        - "--to-version-image-tag=ci"

        #VERIFY that you have provided the correct list of CSPC Names
        - "cspc-stripe"

        #Following are optional parameters
        #Log Level
        - "--v=4"
        #DO NOT CHANGE BELOW PARAMETERS
        env:
        - name: OPENEBS_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        tty: true

        # the image version should be same as the --to-version mentioned above
        # in the args of the job
        image: openebs/upgrade-amd64:ci
        imagePullPolicy: IfNotPresent
      restartPolicy: Never
---

TODO:

  • move code for deployment rollout status from openebs/maya to either openebs/api or this repo.
  • add examples for upgrade job YAMLs.

Copy link

@prateekpandey14 prateekpandey14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kmova kmova merged commit 2e47682 into openebs-archive:master May 4, 2020
@shubham14bajpai shubham14bajpai deleted the cspc branch May 5, 2020 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants