- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for persistentVolumeClaimRetentionPolicy (0.51 sec)
-
pkg/registry/apps/statefulset/strategy_test.go
if len(errs) != 0 { t.Errorf("unexpected failure with PersistentVolumeClaimRetentionPolicy: %v", errs) } if ps.Spec.PersistentVolumeClaimRetentionPolicy.WhenDeleted != apps.RetainPersistentVolumeClaimRetentionPolicyType || ps.Spec.PersistentVolumeClaimRetentionPolicy.WhenScaled != apps.DeletePersistentVolumeClaimRetentionPolicyType {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 22.1K bytes - Viewed (0) -
pkg/apis/apps/v1/defaults_test.go
Type: appsv1.RollingUpdateStatefulSetStrategyType, RollingUpdate: &appsv1.RollingUpdateStatefulSetStrategy{ Partition: &defaultPartition, }, }, PersistentVolumeClaimRetentionPolicy: &appsv1.StatefulSetPersistentVolumeClaimRetentionPolicy{ WhenDeleted: appsv1.RetainPersistentVolumeClaimRetentionPolicyType, WhenScaled: appsv1.RetainPersistentVolumeClaimRetentionPolicyType, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.1K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils_test.go
} set := apps.StatefulSet{} set.Spec.PersistentVolumeClaimRetentionPolicy = &retainPolicy got := getPersistentVolumeClaimRetentionPolicy(&set) if got.WhenScaled != apps.RetainPersistentVolumeClaimRetentionPolicyType || got.WhenDeleted != apps.RetainPersistentVolumeClaimRetentionPolicyType { t.Errorf("Expected retain policy") } set.Spec.PersistentVolumeClaimRetentionPolicy = &scaledownPolicy
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_pod_control_test.go
for k := range claims { claim := claims[k] indexer.Add(&claim) } control := NewStatefulPodControl(fakeClient, nil, claimLister, &noopRecorder{}) set.Spec.PersistentVolumeClaimRetentionPolicy = &apps.StatefulSetPersistentVolumeClaimRetentionPolicy{ WhenDeleted: apps.RetainPersistentVolumeClaimRetentionPolicyType, WhenScaled: apps.RetainPersistentVolumeClaimRetentionPolicyType, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 35.5K bytes - Viewed (0) -
pkg/apis/apps/validation/validation.go
apps.RollingUpdateStatefulSetStrategyType, apps.OnDeleteStatefulSetStrategyType))) } allErrs = append(allErrs, ValidatePersistentVolumeClaimRetentionPolicy(spec.PersistentVolumeClaimRetentionPolicy, fldPath.Child("persistentVolumeClaimRetentionPolicy"))...) allErrs = append(allErrs, apivalidation.ValidateNonnegativeField(int64(spec.Replicas), fldPath.Child("replicas"))...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 06 22:11:20 UTC 2024 - 41.4K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils.go
WhenDeleted: apps.RetainPersistentVolumeClaimRetentionPolicyType, WhenScaled: apps.RetainPersistentVolumeClaimRetentionPolicyType, } if set.Spec.PersistentVolumeClaimRetentionPolicy != nil { policy = *set.Spec.PersistentVolumeClaimRetentionPolicy } return policy } // matchesRef returns true when the object matches the owner reference, that is the name and GVK are the same.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 26.7K bytes - Viewed (0) -
samples/addons/loki.yaml
spec: replicas: 1 podManagementPolicy: Parallel updateStrategy: rollingUpdate: partition: 0 serviceName: loki-headless revisionHistoryLimit: 10 persistentVolumeClaimRetentionPolicy: whenDeleted: Delete whenScaled: Delete selector: matchLabels: app.kubernetes.io/name: loki app.kubernetes.io/instance: loki
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 18:57:35 UTC 2024 - 7.8K bytes - Viewed (0) -
pkg/apis/apps/validation/validation_test.go
}, }, { name: "empty PersistentVolumeClaimRetentionPolicy " + enableStatefulSetAutoDeletePVC, set: mkStatefulSet(&validPodTemplate, tweakPVCPolicy(mkPVCPolicy()), ), errs: field.ErrorList{ field.NotSupported[string](field.NewPath("spec", "persistentVolumeClaimRetentionPolicy", "whenDeleted"), nil, nil),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 111.9K bytes - Viewed (0) -
staging/src/k8s.io/api/apps/v1/types.go
// down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, // which is beta. // +optional PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"` // ordinals controls the numbering of replica indices in a StatefulSet. The
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 49.1K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_test.go
testFn := func(t *testing.T, scaledownPolicy, deletionPolicy apps.PersistentVolumeClaimRetentionPolicyType) { set := newStatefulSet(4) *set.Spec.Replicas = 2 set.Spec.PersistentVolumeClaimRetentionPolicy.WhenScaled = scaledownPolicy set.Spec.PersistentVolumeClaimRetentionPolicy.WhenDeleted = deletionPolicy _, ctx := ktesting.NewTestContext(t) ssc, _, om, _ := newFakeStatefulSetController(ctx, set) om.setsIndexer.Add(set)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 33.1K bytes - Viewed (0)