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

[helm-chart] csi-snapshotter in ebs-csi-controller now checks for enableVolumeSnapshot before including it in containers #960

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

missingcharacter
Copy link
Contributor

Is this a bug fix or adding new feature?
bug fix

What is this PR about? / Why do we need it?
Fixes #942

What testing is done?
locally, yes

@k8s-ci-robot
Copy link
Contributor

Hi @missingcharacter. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 1, 2021
@wongma7
Copy link
Contributor

wongma7 commented Jul 1, 2021

This doesn't fully fix the issue because we might have users who already have the controller and CRDs installed, so they set enableVolumeSnapshot false. In that case they DO want the sidecar still running.

TBH I'm leaning heavily toward not installing the snapshot controller and CRDS at all : ( #635 (comment), let me know your thoughts.

@wongma7
Copy link
Contributor

wongma7 commented Jul 1, 2021

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 1, 2021
@missingcharacter
Copy link
Contributor Author

missingcharacter commented Jul 1, 2021

@wongma7

I intend to remove the CRDs and controller and simply list it as a prerequisite to the chart

This makes total sense, I think it is best to NOT install the controller nor CRDs and just list them as pre-requisites

@wongma7
Copy link
Contributor

wongma7 commented Jul 1, 2021

Yeah my full reasoning is in the comment, @krmichel if we want to stop installing the CRDs and snapshot controller, and instead point users to docs to how to install it (leveraging the help text that prints right after an install) do we need to bump the helm chart major version?

@missingcharacter
Copy link
Contributor Author

missingcharacter commented Jul 1, 2021

@wongma7

do we need to bump the helm chart major version?

Yes, please 🙇🏽‍♂️ (I know you are not asking me)

@wongma7
Copy link
Contributor

wongma7 commented Jul 1, 2021

OK. I'm actually prepping helm chart 1.2.4 with your previous PR right now. So that will leave the 1.x.x series of charts in an okay-ish state (if you set enableVolumeSnapshot true it will install everything you need, if it's false then you might run into #942)

So, after 1.2.4 is released we can take some time to make any other breaking changes we want.

(EFS repo made a 2.0.0 release recently as well , so I am not worried at all about making a new major version too fast or whatever.)

@missingcharacter
Copy link
Contributor Author

Actually, I think I can add a capabilities check to install the sidecar if enableVolumeSnapshot is true or the snapshot CRDs are present, it is not perfect but it would leave 1.2.4 in a better state

…bleVolumeSnapshot before including it in containers
@krmichel
Copy link
Contributor

krmichel commented Jul 1, 2021

Yes, please 🙇🏽‍♂️ (I know you are not asking me)

I fully agree. I already have the second half of the major chart update that needs to do things like getting rid of the old not well-organized values and bump the helm version requirement so I will try to get those done and in PR so we can roll them into 2.0 as well.

@missingcharacter
Copy link
Contributor Author

Ok, this PR should leave 1.2.4 in better shape to then remove CRDs and snapshot controller off it

@wongma7
Copy link
Contributor

wongma7 commented Jul 1, 2021

/lgtm

I'll rebase on this / include it in #959

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 1, 2021
@wongma7
Copy link
Contributor

wongma7 commented Jul 1, 2021

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: missingcharacter, wongma7

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 1, 2021
@k8s-ci-robot k8s-ci-robot merged commit 3b2f497 into kubernetes-sigs:master Jul 1, 2021
@missingcharacter missingcharacter deleted the fix-issue-942 branch July 1, 2021 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Snapshotter sidecar is deployed by Helm chart even if enableVolumeSnapshot == false
4 participants