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

Skip CSI driver creation for empty SO_CSI_DRIVER_PATH in deploy release script #1992

Merged

Conversation

rzetelskik
Copy link
Member

@rzetelskik rzetelskik commented Jun 25, 2024

Description of your changes:
Currently ci-deploy-release script times out waiting for local-csi-driver to roll out, despite SO_CSI_DRIVER_PATH being empty.

https://prow.scylla-operator.scylladb.com/view/gs/scylla-operator-prow/logs/ci-scylla-operator-latest-e2e-gke-arm64-serial/1805169160804634624#1:test-build-log.txt%3A306

From my understanding the intention was to always run the given revision of local-csi-driver example manifests, since, contrary to the regular deploy script, the release deploy script doesn't account for SO_CSI_DRIVER_PATH whatsoever.

Hence this PR skips local-csi-driver creation together with NodeConfig creation when empty SO_NODECONFIG_PATH is provided. We can always make it more granular if we need to deploy local-csi-driver without configuring a NodeConfig, but for now that seems good enough.

Edit: local-csi-driver path can now be overridden by setting SO_CSI_DRIVER_PATH. In case the env var is empty, local-csi-driver deployment is skipped.

Which issue is resolved by this Pull Request:
Resolves #1987

/kind bug
/priority important-soon
/cc tnozicka

@scylla-operator-bot scylla-operator-bot bot added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 25, 2024
@rzetelskik rzetelskik changed the title Skip CSI driver creation for empty SO_NODECONFIG_PATH in deploy release script Skip CSI driver creation for empty SO_CSI_DRIVER_PATH in deploy release script Jun 25, 2024
@rzetelskik rzetelskik requested a review from tnozicka June 25, 2024 11:13
hack/ci-deploy-release.sh Outdated Show resolved Hide resolved
@rzetelskik rzetelskik force-pushed the release-skip-csi-driver branch 2 times, most recently from 0d6fe19 to 1a62e26 Compare June 25, 2024 16:02
@scylla-operator-bot scylla-operator-bot bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 25, 2024
@rzetelskik rzetelskik force-pushed the release-skip-csi-driver branch 2 times, most recently from eae3009 to 41c12b5 Compare June 26, 2024 11:55
@rzetelskik rzetelskik requested a review from tnozicka June 26, 2024 11:56
@rzetelskik rzetelskik force-pushed the release-skip-csi-driver branch 2 times, most recently from da32a41 to b470e8e Compare June 26, 2024 12:26
hack/ci-deploy-release.sh Outdated Show resolved Hide resolved
Copy link
Member

@tnozicka tnozicka left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm
thanks

@scylla-operator-bot scylla-operator-bot bot added the lgtm Indicates that a PR is ready to be merged. label Jun 26, 2024
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rzetelskik, tnozicka

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

@scylla-operator-bot scylla-operator-bot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 26, 2024
@scylla-operator-bot scylla-operator-bot bot merged commit 157ac0b into scylladb:master Jun 26, 2024
13 checks passed
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. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci-deploy-release script should only deploy local-csi-driver if SO_CSI_DRIVER_PATH env var is not empty
2 participants