- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateSecretUpdate (0.21 sec)
-
pkg/registry/core/secret/strategy.go
newSecret.Type = oldSecret.Type } dropDisabledFields(newSecret, oldSecret) } func (strategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList { return validation.ValidateSecretUpdate(obj.(*api.Secret), old.(*api.Secret)) } // WarningsOnUpdate returns warnings for the given update. func (strategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 20:38:11 UTC 2023 - 4.2K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
allErrs = append(allErrs, field.Required(dataPath.Key(core.TLSPrivateKeyKey), "")) } default: // no-op } return allErrs } // ValidateSecretUpdate tests if required fields in the Secret are set. func ValidateSecretUpdate(newSecret, oldSecret *core.Secret) field.ErrorList { allErrs := ValidateObjectMetaUpdate(&newSecret.ObjectMeta, &oldSecret.ObjectMeta, field.NewPath("metadata"))
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
oldSecret: immutableSecret, newSecret: immutableSecretWithChangedData, valid: false, }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { errs := ValidateSecretUpdate(&tc.newSecret, &tc.oldSecret) if tc.valid && len(errs) > 0 { t.Errorf("Unexpected error: %v", errs) } if !tc.valid && len(errs) == 0 { t.Errorf("Unexpected lack of error") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0)