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

Add secrets in CreateVolumeGroupSnapshots #834

Closed
xing-yang opened this issue May 8, 2023 · 8 comments · Fixed by #1034
Closed

Add secrets in CreateVolumeGroupSnapshots #834

xing-yang opened this issue May 8, 2023 · 8 comments · Fixed by #1034
Assignees

Comments

@xing-yang
Copy link
Collaborator

No description provided.

@nixpanic
Copy link
Member

Secrets are passed here

func (gs *groupSnapshot) CreateGroupSnapshot(ctx context.Context, groupSnapshotName string, volumeIDs []string, parameters map[string]string, snapshotterCredentials map[string]string) (string, string, []*csi.Snapshot, time.Time, bool, error) {
klog.V(5).Infof("CSI CreateGroupSnapshot: %s", groupSnapshotName)
client := csi.NewGroupControllerClient(gs.conn)
driverName, err := csirpc.GetDriverName(ctx, gs.conn)
if err != nil {
return "", "", nil, time.Time{}, false, err
}
req := csi.CreateVolumeGroupSnapshotRequest{
Name: groupSnapshotName,
SourceVolumeIds: volumeIDs,
Secrets: snapshotterCredentials,
Parameters: parameters,
}

Is there an other location where you expect secrets to be passed?

@xing-yang
Copy link
Collaborator Author

Currently nothing is passed through snapshotterCredentials. There's a TODO here:
https://github.com/kubernetes-csi/external-snapshotter/blob/master/pkg/sidecar-controller/groupsnapshot_helper.go#L368

See this PR as an example: #165

@carlory
Copy link
Member

carlory commented Jun 8, 2023

/assign

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 22, 2024
@Madhu-1
Copy link
Contributor

Madhu-1 commented Feb 8, 2024

@carlory can you please update on this one, without this support we cannot implement volumegroup in cephcsi driver.

@carlory
Copy link
Member

carlory commented Feb 8, 2024

Thanks for your reminder, I didn't start to solve this issue yet. Due to Chinese New Year, I may not have enough bandwidth to solve this issue in the next few days. If you want this changes to be made as soon as possible, feel free to submit a pull request if you are also interested in doing it.

@carlory
Copy link
Member

carlory commented Feb 8, 2024

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 8, 2024
@Madhu-1
Copy link
Contributor

Madhu-1 commented Feb 8, 2024

@carlory great thank you, will take care of this one.

/assign @Madhu-1

@carlory carlory removed their assignment Feb 10, 2024
manishym added a commit to manishym/external-snapshotter that referenced this issue Mar 13, 2024
manishym added a commit to manishym/external-snapshotter that referenced this issue Mar 13, 2024
manishym added a commit to manishym/external-snapshotter that referenced this issue Mar 18, 2024
manishym added a commit to manishym/external-snapshotter that referenced this issue Mar 21, 2024
manishym added a commit to manishym/external-snapshotter that referenced this issue Mar 21, 2024
manishym added a commit to manishym/external-snapshotter that referenced this issue Mar 21, 2024
manishym added a commit to manishym/external-snapshotter that referenced this issue Mar 22, 2024
manishym added a commit to manishym/external-snapshotter that referenced this issue Mar 25, 2024
manishym added a commit to manishym/external-snapshotter that referenced this issue Mar 25, 2024
Madhu-1 pushed a commit to Madhu-1/external-snapshotter that referenced this issue Mar 26, 2024
Madhu-1 pushed a commit to Madhu-1/external-snapshotter that referenced this issue Mar 26, 2024
mpatlasov pushed a commit to mpatlasov/csi-external-snapshotter that referenced this issue Mar 29, 2024
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 a pull request may close this issue.

6 participants