- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetValidatedSources (0.21 sec)
-
pkg/kubelet/types/pod_update.go
// are generated. type PodUpdate struct { Pods []*v1.Pod Op PodOperation Source string } // GetValidatedSources gets all validated sources from the specified sources. func GetValidatedSources(sources []string) ([]string, error) { validated := make([]string, 0, len(sources)) for _, source := range sources { switch source { case AllSource:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 07 22:26:12 UTC 2023 - 6.4K bytes - Viewed (0) -
pkg/kubelet/types/pod_update_test.go
sources: []string{"unknown"}, errExpected: true, sourcesLen: 0, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { sources, err := GetValidatedSources(test.sources) if test.errExpected { assert.Error(t, err) } else { assert.NoError(t, err) } assert.Len(t, sources, test.sourcesLen) }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 21 08:20:50 UTC 2023 - 10.4K bytes - Viewed (0)