- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateEncryptionConfiguration (0.25 sec)
-
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption.go
// See https://godoc.org/golang.org/x/crypto/nacl/secretbox#Open for details on the supported key sizes for Secretbox. secretBoxKeySizes = []int{32} ) // ValidateEncryptionConfiguration validates a v1.EncryptionConfiguration. func ValidateEncryptionConfiguration(c *apiserver.EncryptionConfiguration, reload bool) field.ErrorList { root := field.NewPath("resources") allErrs := field.ErrorList{} if c == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 20:54:24 UTC 2023 - 13.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption_test.go
[]string{ "*.", "*.*", }, overlapErr, ), }, }} for _, tt := range testCases { t.Run(tt.desc, func(t *testing.T) { got := ValidateEncryptionConfiguration(tt.in, tt.reload) if d := cmp.Diff(tt.want, got); d != "" { t.Fatalf("EncryptionConfiguration validation results mismatch (-want +got):\n%s", d) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 20:54:24 UTC 2023 - 33.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config.go
} config, ok := configObj.(*apiserver.EncryptionConfiguration) if !ok { return nil, "", fmt.Errorf("got unexpected config type: %v", gvk) } return config, contentHash, validation.ValidateEncryptionConfiguration(config, reload).ToAggregate() } func loadDataAndHash(filepath string) ([]byte, string, error) { data, err := os.ReadFile(filepath) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 16:56:39 UTC 2024 - 41.2K bytes - Viewed (0)