- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isValidAuthzMode (0.44 sec)
-
cmd/kubeadm/app/phases/controlplane/manifests.go
kubeadmconstants.ModeNode, kubeadmconstants.ModeRBAC, } if len(authzModeExtraArgs) > 0 { mode := []string{} for _, requested := range strings.Split(authzModeExtraArgs, ",") { if isValidAuthzMode(requested) { mode = append(mode, requested) } else { klog.Warningf("ignoring unknown kube-apiserver authorization-mode %q", requested) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Mar 03 14:43:47 UTC 2024 - 17.8K bytes - Viewed (0) -
cmd/kubeadm/app/phases/controlplane/manifests_test.go
}, { mode: "Foo", valid: false, }, } for _, rt := range tests { t.Run(rt.mode, func(t *testing.T) { isValid := isValidAuthzMode(rt.mode) if isValid != rt.valid { t.Errorf("failed isValidAuthzMode:\nexpected:\n%v\nsaw:\n%v", rt.valid, isValid) } }) } } func TestCompareAuthzModes(t *testing.T) { var tests = []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Mar 03 14:43:47 UTC 2024 - 48.5K bytes - Viewed (0)