Skip to content

Commit 42b9deb

Browse files
committed
Improve VolumeGroupSnapshotStatus comments
1 parent 341ac4c commit 42b9deb

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

client/apis/volumegroupsnapshot/v1beta1/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ type VolumeGroupSnapshotStatus struct {
9090
// The format of this field is a Unix nanoseconds time encoded as an int64.
9191
// On Unix, the command date +%s%N returns the current time in nanoseconds
9292
// since 1970-01-01 00:00:00 UTC.
93+
// This field is updated based on the CreationTime field in VolumeGroupSnapshotContentStatus
9394
// +optional
9495
CreationTime *metav1.Time `json:"creationTime,omitempty" protobuf:"bytes,2,opt,name=creationTime"`
9596

@@ -324,6 +325,7 @@ type VolumeGroupSnapshotContentStatus struct {
324325
// The format of this field is a Unix nanoseconds time encoded as an int64.
325326
// On Unix, the command date +%s%N returns the current time in nanoseconds
326327
// since 1970-01-01 00:00:00 UTC.
328+
// This field is the source for the CreationTime field in VolumeGroupSnapshotStatus
327329
// +optional
328330
CreationTime *int64 `json:"creationTime,omitempty" protobuf:"varint,2,opt,name=creationTime"`
329331

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshotcontents.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ spec:
255255
The format of this field is a Unix nanoseconds time encoded as an int64.
256256
On Unix, the command date +%s%N returns the current time in nanoseconds
257257
since 1970-01-01 00:00:00 UTC.
258+
This field is the source for the CreationTime field in VolumeGroupSnapshotStatus
258259
format: int64
259260
type: integer
260261
error:

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshots.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ spec:
198198
The format of this field is a Unix nanoseconds time encoded as an int64.
199199
On Unix, the command date +%s%N returns the current time in nanoseconds
200200
since 1970-01-01 00:00:00 UTC.
201+
This field is updated based on the CreationTime field in VolumeGroupSnapshotContentStatus
201202
format: date-time
202203
type: string
203204
error:

vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/types.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)