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

csi: No longer install the VolumeReplication CRDs from Rook #8845

Merged
merged 1 commit into from Oct 6, 2021

Conversation

travisn
Copy link
Member

@travisn travisn commented Sep 27, 2021

Description of your changes:
The volume replication CRDs are an external component, not owned by Rook. Therefore, they should be installed as any other independent component in case the admin will install other consumers of the volumereplication CRDs in the future in addition to Rook and the CSI driver.

The volume replication controller in the Ceph-CSI driver was already optional and disabled by default. To enable the volume replication controller there is just now an additional step to install the CRDs if the feature is to be enabled.

Since the CRDs are no longer included with Rook, downstream may need to find a new integration path for the CRDs.

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

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Skip Tests for Docs: Add the flag for skipping the build if this is only a documentation change. See here for the flag.
  • Skip Unrelated Tests: Add a flag to run tests for a specific storage provider. See test options.
  • Reviewed the developer guide on Submitting a Pull Request
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.
  • Pending release notes updated with breaking and/or notable changes, if necessary.
  • Upgrade from previous release is tested and upgrade user guide is updated, if necessary.
  • Code generation (make codegen) has been run to update object specifications, if necessary.

@travisn travisn changed the title csi: No longer install the VolumeReplication CRDs from rook csi: No longer install the VolumeReplication CRDs from Rook Sep 27, 2021
Copy link
Member

@leseb leseb left a comment

Choose a reason for hiding this comment

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

You need to remove build/crds/crds.go too, which should remove the module dep too.

@travisn travisn force-pushed the volume-replication-optional branch 3 times, most recently from 2d60357 to aa9ecac Compare September 30, 2021 04:02
@@ -104,6 +110,11 @@ generate-csv-templates: $(OPERATOR_SDK) $(YQ) ## Generate CSV templates for OLM
@OLM_CATALOG_DIR=$(CSV_TEMPLATE_DIR)/cluster/olm/ceph ../../cluster/olm/ceph/generate-rook-csv-templates.sh
@echo " === Generated CSV templates can be found at $(CSV_TEMPLATE_DIR)/cluster/olm/ceph/templates"

get-volume-replication-crds:
@if [[ -z "$(CURL_TEMPLATE_DIR)" ]]; then echo "CURL_TEMPLATE_DIR is not set"; exit 1; fi
curl $(VOL_REPL_URL)/$(VOLUME_REPLICATION_CRD) -o $(CURL_TEMPLATE_DIR)/$(VOLUME_REPLICATION_CRD)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
curl $(VOL_REPL_URL)/$(VOLUME_REPLICATION_CRD) -o $(CURL_TEMPLATE_DIR)/$(VOLUME_REPLICATION_CRD)
curl -L $(VOL_REPL_URL)/$(VOLUME_REPLICATION_CRD) -o $(CURL_TEMPLATE_DIR)/$(VOLUME_REPLICATION_CRD)

Typically safer if we get a redirect.

@travisn travisn force-pushed the volume-replication-optional branch 2 times, most recently from 1a0aa7e to 5cc80bb Compare September 30, 2021 21:28
Copy link
Member

@leseb leseb left a comment

Choose a reason for hiding this comment

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

As discussed, waiting for #8862

Copy link
Member

@leseb leseb left a comment

Choose a reason for hiding this comment

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

Waiting for #8862 is a nice to have but shouldn't block the release.

@travisn
Copy link
Member Author

travisn commented Oct 6, 2021

Waiting for #8862 is a nice to have but shouldn't block the release.

Ok, will go ahead with this and get it included in v1.7.5

@travisn
Copy link
Member Author

travisn commented Oct 6, 2021

@Mergifyio rebase

The volume replication CRDs are an external component, not owned by Rook.
Therefore, they should be installed as any other independent component
in case the admin will install other consumers of the volumereplication CRDs
in the future in addition to Rook and the CSI driver.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
@mergify
Copy link

mergify bot commented Oct 6, 2021

Command rebase: success

Branch has been successfully rebased

@travisn travisn force-pushed the volume-replication-optional branch from 5cc80bb to c420f23 Compare October 6, 2021 16:27
@travisn travisn merged commit 8e1a6ef into rook:master Oct 6, 2021
mergify bot added a commit that referenced this pull request Oct 6, 2021
csi: No longer install the VolumeReplication CRDs from Rook (backport #8845)
@travisn travisn deleted the volume-replication-optional branch February 8, 2022 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

optional volume replication crds in helm chart
4 participants