- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for VolumeClaimTemplates (0.35 sec)
-
pkg/controller/statefulset/stateful_pod_control.go
func (spc *StatefulPodControl) ClaimsMatchRetentionPolicy(ctx context.Context, set *apps.StatefulSet, pod *v1.Pod) (bool, error) { logger := klog.FromContext(ctx) ordinal := getOrdinal(pod) templates := set.Spec.VolumeClaimTemplates for i := range templates { claimName := getPersistentVolumeClaimName(set, &templates[i], ordinal) claim, err := spc.objectMgr.GetClaim(set.Namespace, claimName) switch { case apierrors.IsNotFound(err):
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 14.9K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils.go
return false } volumes := make(map[string]v1.Volume, len(pod.Spec.Volumes)) for _, volume := range pod.Spec.Volumes { volumes[volume.Name] = volume } for _, claim := range set.Spec.VolumeClaimTemplates { volume, found := volumes[claim.Name] if !found || volume.VolumeSource.PersistentVolumeClaim == nil || volume.VolumeSource.PersistentVolumeClaim.ClaimName !=
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 26.7K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_pod_control_test.go
for i, claimState := range tc.claimStates { claim := v1.PersistentVolumeClaim{} claim.Name = fmt.Sprintf("claim-%d", i) set.Spec.VolumeClaimTemplates = append(set.Spec.VolumeClaimTemplates, claim) claim.Name = fmt.Sprintf("%s-set-3", claim.Name) claim.Namespace = set.Namespace switch claimState { case missing: // Do nothing, the claim shouldn't exist.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 35.5K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/HEAD/apps.v1beta2.StatefulSet.yaml
volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 37.7K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/HEAD/apps.v1.StatefulSet.yaml
volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 37.7K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/HEAD/apps.v1beta1.StatefulSet.yaml
volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 37.7K bytes - Viewed (0)