From 4ddf0cca1c03a7b7d4209771fb12f4c2d3645a33 Mon Sep 17 00:00:00 2001 From: Christoph Mewes Date: Sun, 28 Apr 2024 10:33:29 +0200 Subject: [PATCH] fix stray +optional comment on persistentVolumeClaimRetentionPolicy --- staging/src/k8s.io/api/apps/v1/types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/staging/src/k8s.io/api/apps/v1/types.go b/staging/src/k8s.io/api/apps/v1/types.go index 96ff6209869..ce49a7ff5f0 100644 --- a/staging/src/k8s.io/api/apps/v1/types.go +++ b/staging/src/k8s.io/api/apps/v1/types.go @@ -255,7 +255,8 @@ type StatefulSetSpec struct { // policy allows the lifecycle to be altered, for example by deleting persistent // volume claims when their stateful set is deleted, or when their pod is scaled // down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, - // which is alpha. +optional + // which is alpha. + // +optional PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"` // ordinals controls the numbering of replica indices in a StatefulSet. The