Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
YichenYa0 authored and falfaroc committed Aug 12, 2024
1 parent d82c267 commit cad09a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/connection/k8sconnections.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (c *RemoteK8sControllerClient) GetSnapshotClass(ctx context.Context, snapCl
return found, nil
}

// CreateSnapshotObject creates the snapshot on the remote cluster
// CreateSnapshotClass creates the snapshot on the remote cluster
func (c *RemoteK8sControllerClient) CreateSnapshotClass(ctx context.Context, content *s1.VolumeSnapshotClass) error {
return c.Client.Create(ctx, content)
}
Expand All @@ -325,6 +325,7 @@ func (c *RemoteK8sControllerClient) GetNamespace(ctx context.Context, namespace
return found, nil
}

// GetSnapshotContent gets the volume snapshot content object under the replication group by querying cluster using the snapshot content name
func (c *RemoteK8sControllerClient) GetSnapshotContent(ctx context.Context, snapshotContentName string) (*s1.VolumeSnapshotContent, error) {
found := &s1.VolumeSnapshotContent{}

Expand All @@ -336,7 +337,7 @@ func (c *RemoteK8sControllerClient) GetSnapshotContent(ctx context.Context, snap
return found, nil
}

// ListVolumeSnapshotContent gets the list of volume snapshot content objects under the replication group
// ListSnapshotContent gets the list of volume snapshot content objects under the replication group
func (c *RemoteK8sControllerClient) ListSnapshotContent(ctx context.Context, opts ...ctrlClient.ListOption) (*s1.VolumeSnapshotContentList, error) {
list := &s1.VolumeSnapshotContentList{}

Expand Down

0 comments on commit cad09a4

Please sign in to comment.