Skip to content

Conversation

@PrasadG193
Copy link
Contributor

@PrasadG193 PrasadG193 commented Dec 17, 2024

What this PR does / why we need it:

This PR related to the SnapshotMetadata service support added with - #569

This PR:

  • Updates deploy.sh script to deploy csi-hostpathplugin with external-snapshot-metadata support.
  • Add documentation for steps to deploy and test SnapshotMetadata support.

Steps to deploy csi hostpath driver with snapshot-metadata service using deploy.sh script:

  1. Install SnapshotMetadataService CRD using the following command
$ VERSION=main
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotmetadata/${VERSION}/client/config/crd/cbt.storage.k8s.io_snapshotmetadataservices.yaml
  1. Deploy csi hostpath driver with snapshot-metadata service using the following command:
$ SNAPSHOT_METADATA_TESTS=true deploy/kubernetes-latest/deploy.sh
NONE

@k8s-ci-robot k8s-ci-robot added the release-note-none Denotes a PR that doesn't merit a release note. label Dec 17, 2024
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Dec 17, 2024
@k8s-triage-robot
Copy link

Unknown CLA label state. Rechecking for CLA labels.

Send feedback to sig-contributor-experience at kubernetes/community.

/check-cla
/easycla

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 17, 2024
@PrasadG193
Copy link
Contributor Author

/check-cla

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 19, 2024
Copy link

@Rakshith-R Rakshith-R left a comment

Choose a reason for hiding this comment

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

Comment on lines 240 to 241
# TODO: Set release tag after new release is made with SnapshotMetadata support
image: gcr.io/k8s-staging-sig-storage/hostpathplugin:canary
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Rakshith-R @xing-yang We cannot use released tag here until new release is made having support for SnapshotMetada service. I don't think we can use canary image tag here.

Choose a reason for hiding this comment

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

@Rakshith-R @xing-yang We cannot use released tag here until new release is made having support for SnapshotMetada service. I don't think we can use canary image tag here.

I think we can override it to canary while testing it at ext-snapshot-metadata repo + SnapshotMetadata service is guarded by a flag too in deploy script.

Let's leave it at a released tag here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is one option. Its just until the release is made, if someone want to try the feature (using steps documented at docs/example-snapshot-metadata.md), they won't be able to setup things.
@xing-yang any thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the DPWG meeting, we decided to move ahead with canary image tag for now. This will be overridden at release time.

Copy link
Contributor

Choose a reason for hiding this comment

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

On a second thought, we can't merge a canary image as that will affect CI for all the sidecars. We need to hold off this PR until we cut a release for K8s 1.32. We are still waiting for a few other sidecars to be released before doing that.

Choose a reason for hiding this comment

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

@Rakshith-R @xing-yang We cannot use released tag here until new release is made having support for SnapshotMetada service. I don't think we can use canary image tag here.

I think we can override it to canary while testing it at ext-snapshot-metadata repo + SnapshotMetadata service is guarded by a flag too in deploy script.

Let's leave it at a released tag here ?

I don't think we need to hold the entire pr.

Let's go with this approach of leaving driver image at a released tag and overriding the image to canary and turn on snap-metadata flag to test the feature.

@PrasadG193 @xing-yang ^

Copy link

@Rakshith-R Rakshith-R left a comment

Choose a reason for hiding this comment

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

Everything else other than csi-hosthpath-driver image looks good to me.

@PrasadG193 PrasadG193 requested a review from xing-yang January 9, 2025 13:16
@xing-yang
Copy link
Contributor

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 9, 2025
@carlbraganza
Copy link
Contributor

I followed the instructions successfully - worked as described.

b. Execute deploy script to setup hostpath plugin driver with external-snapshot-metadata change

```
$ SNAPSHOT_METADATA_TESTS=true HOSTPATHPLUGIN_REGISTRY=gcr.io/k8s-staging-sig-storage HOSTPATHPLUGIN_TAG=canary ./deploy/kubernetes-1.27/deploy.sh
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xing-yang @Rakshith-R turned out the deploy.sh script already has a support to override container images. So we can use these flags to deploy the hostpathplugin with canary image

Copy link

@Rakshith-R Rakshith-R left a comment

Choose a reason for hiding this comment

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

Thanks,
Looks good to me!

@PrasadG193
Copy link
Contributor Author

/assign @xing-yang

@xing-yang
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 24, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: PrasadG193, Rakshith-R, xing-yang

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 Jan 24, 2025
@xing-yang
Copy link
Contributor

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 24, 2025
@k8s-ci-robot k8s-ci-robot merged commit c6e6e9a into kubernetes-csi:master Jan 24, 2025
10 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. 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. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants