- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateSecretUpdate (0.2 sec)
-
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)