- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidatePersistentVolumeClaimStatusUpdate (0.45 sec)
-
pkg/registry/core/persistentvolumeclaim/strategy.go
newPvc := obj.(*api.PersistentVolumeClaim) oldPvc := old.(*api.PersistentVolumeClaim) opts := validation.ValidationOptionsForPersistentVolumeClaim(newPvc, oldPvc) return validation.ValidatePersistentVolumeClaimStatusUpdate(newPvc, oldPvc, opts) } // WarningsOnUpdate returns warnings for the given update. func (persistentvolumeclaimStatusStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 20:58:25 UTC 2022 - 7.8K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
core.PersistentVolumeClaimNodeResizePending, core.PersistentVolumeClaimNodeResizeInProgress, core.PersistentVolumeClaimNodeResizeFailed) // ValidatePersistentVolumeClaimStatusUpdate validates an update to status of a PersistentVolumeClaim func ValidatePersistentVolumeClaimStatusUpdate(newPvc, oldPvc *core.PersistentVolumeClaim, validationOpts PersistentVolumeClaimSpecValidationOptions) field.ErrorList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (1) -
pkg/apis/core/validation/validation_test.go
// ensure we have a resource version specified for updates scenario.oldClaim.ResourceVersion = "1" scenario.newClaim.ResourceVersion = "1" errs := ValidatePersistentVolumeClaimStatusUpdate(scenario.newClaim, scenario.oldClaim, validateOpts) if len(errs) == 0 && scenario.isExpectedFailure { t.Errorf("Unexpected success for scenario: %s", name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0)