You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client-sdk/go/client/api_orphan_snapshot.go
+51-48Lines changed: 51 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
/*
2
-
Copyright 2024 VMware, Inc.
2
+
Copyright 2025 VMware, Inc.
3
3
4
4
Licensed under the Apache License, Version 2.0 (the "License");
5
5
you may not use this file except in compliance with the License.
6
6
You may obtain a copy of the License at
7
7
8
-
http://www.apache.org/licenses/LICENSE-2.0
8
+
http://www.apache.org/licenses/LICENSE-2.0
9
9
10
10
Unless required by applicable law or agreed to in writing, software
11
11
distributed under the License is distributed on an "AS IS" BASIS,
@@ -21,6 +21,7 @@ import (
21
21
"net/http"
22
22
"net/url"
23
23
"strings"
24
+
24
25
"github.com/antihax/optional"
25
26
)
26
27
@@ -30,6 +31,7 @@ var (
30
31
)
31
32
32
33
typeOrphanSnapshotApiServiceservice
34
+
33
35
/*
34
36
OrphanSnapshotApiService Delete orphan snapshots.
35
37
Use this API to identify and delete orphan snapshots. From vSphere CSI plugin's perspective, orphan snapshots are FCD snapshots that were initiated through the vSphere CSI driver but do not have a corresponding VolumeSnapshotContent object in the Kubernetes cluster. snapshotPrefix is the prefix used in the snapshot description. Its default value is “snapshot”, which is also the default value used by snapshot sidecar in CSI and it can be configured based on prefix used in the snapshot sidecar. Use the `snapshotPrefix` parameter to specify alternate prefix. From Velero vSphere plugin's perspective, orphan snapshots are snapshots whose upload is failing with multiple attempts or snapshots whose local deletion is failing after successful upload. For Velero vSphere plugin, user has to specify “AstrolabeSnapshot” as the snapshotPrefix. Orphan snapshot deletion operation is performed asynchronously. It returns a job id, the status of which can be retrieved using `jobStatus` API.
@@ -42,17 +44,17 @@ Use this API to identify and delete orphan snapshots. From vSphere CSI plugin&#x
OrphanSnapshotApiService List all the orphan snapshots.
148
151
Use this API to identify orphan snapshots. From vSphere CSI plugin's perspective, orphan snapshots are FCD snapshots that were initiated through the vSphere CSI driver but do not have a corresponding VolumeSnapshotContent object in the Kubernetes cluster. snapshotPrefix is the prefix used in the snapshot description. Its default value is “snapshot”, which is also the default value used by snapshot sidecar in CSI and it can be configured based on prefix used in the snapshot sidecar. Use the `snapshotPrefix` parameter to specify alternate prefix. From Velero vSphere plugin's perspective, orphan snapshots are snapshots whose upload is failing with multiple attempts or snapshots whose local deletion is failing after successful upload. For Velero vSphere plugin, user has to specify “AstrolabeSnapshot” as the snapshotPrefix. GET API for orphan snapshots support pagination. The response body contains totalOrphanSnapshots, limit and offset values. Also, response header contains X-Limit and X-Next-Offset values. Based on these values user can decide if there are more results to be fetched. Since the detection of orphan snapshots is an expensive operation, the operation is performed asynchronously at regular intervals. This API returns the list of orphan snapshots found in the last run of the operation. `retryAfterMinutes` in response body indicates the time in minutes after which the next retry should be attempted to get the updated orphan snapshot list.
@@ -157,19 +160,19 @@ Use this API to identify orphan snapshots. From vSphere CSI plugin's perspe
0 commit comments