- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateKubeletFlags (0.3 sec)
-
cmd/kubelet/app/options/options_test.go
t.Run(tt.name, func(t *testing.T) { err := ValidateKubeletFlags(&KubeletFlags{ ContainerRuntimeOptions: config.ContainerRuntimeOptions{}, NodeLabels: tt.labels, }) if tt.error && err == nil { t.Errorf("ValidateKubeletFlags should have failed with labels: %+v", tt.labels) } if !tt.error && err != nil { t.Errorf("ValidateKubeletFlags should not have failed with labels: %+v", tt.labels)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 5.3K bytes - Viewed (0) -
cmd/kubelet/app/options/options.go
MinimumGCAge: metav1.Duration{Duration: 0}, RegisterSchedulable: true, NodeLabels: make(map[string]string), } } // ValidateKubeletFlags validates Kubelet's configuration flags and returns an error if they are invalid. func ValidateKubeletFlags(f *KubeletFlags) error { unknownLabels := sets.NewString() invalidLabelErrs := make(map[string][]string) for k, v := range f.NodeLabels {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 07:00:05 UTC 2024 - 41.6K bytes - Viewed (0) -
cmd/kubelet/app/server.go
return fmt.Errorf("failed to set feature gates from initial flags-based config: %w", err) } // validate the initial KubeletFlags if err := options.ValidateKubeletFlags(kubeletFlags); err != nil { return fmt.Errorf("failed to validate kubelet flags: %w", err) } if cleanFlagSet.Changed("pod-infra-container-image") {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:34 UTC 2024 - 53.9K bytes - Viewed (0)