- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for loadAuthenticationConfig (0.28 sec)
-
pkg/kubeapiserver/options/authentication.go
codecs = serializer.NewCodecFactory(cfgScheme, serializer.EnableStrict) ) func init() { install.Install(cfgScheme) } // loadAuthenticationConfig parses the authentication configuration from the given file and returns it and the file's contents. func loadAuthenticationConfig(configFilePath string) (*apiserver.AuthenticationConfiguration, string, error) { data, err := os.ReadFile(configFilePath) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 22:40:22 UTC 2024 - 32.4K bytes - Viewed (0) -
pkg/kubeapiserver/options/authentication_test.go
"kind":"AuthenticationConfiguration"}`, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { config, contentData, err := loadAuthenticationConfig(tc.file()) if !strings.Contains(errString(err), tc.expectErr) { t.Fatalf("expected error %q, got %v", tc.expectErr, err) } if !reflect.DeepEqual(config, tc.expectedConfig) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 36.5K bytes - Viewed (0)