- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetListRestrictions (0.35 sec)
-
cmd/kubeadm/app/util/apiclient/clientbacked_dryrun.go
func (clg *ClientBackedDryRunGetter) HandleListAction(action core.ListAction) (bool, runtime.Object, error) { listOpts := metav1.ListOptions{ LabelSelector: action.GetListRestrictions().Labels.String(), FieldSelector: action.GetListRestrictions().Fields.String(), } unstructuredList, err := clg.dynamicClient.Resource(action.GetResource()).Namespace(action.GetNamespace()).List(context.TODO(), listOpts) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 16 10:29:45 UTC 2023 - 4.8K bytes - Viewed (0) -
pkg/controller/podautoscaler/metrics/client_test.go
listAction := action.(core.ListAction) assert.Equal(t, tc.metricName, listAction.GetResource().Resource, "the metric requested should have matched the one specified.") assert.Equal(t, tc.metricLabelSelector, listAction.GetListRestrictions().Labels, "the metric selector should have matched the one specified") metrics := emapi.ExternalMetricValueList{} for _, metricPoint := range tc.reportedMetricPoints {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 09 02:34:54 UTC 2021 - 16.4K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator_test.go
if err != nil { return true, nil, fmt.Errorf("failed to convert label selector specified in test client") } assert.Equal(t, selector, listAction.GetListRestrictions().Labels, "the metric selector should have matched the one specified") metrics := emapi.ExternalMetricValueList{} for _, level := range tc.metric.levels { metric := emapi.ExternalMetricValue{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 68.4K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal_test.go
podNamePrefix := "" labelSet := map[string]string{} // selector should be in form: "name=dummy-target-X" where X is the number of resource selector := action.(core.ListAction).GetListRestrictions().Labels parsedSelector := strings.Split(selector.String(), "=") if len(parsedSelector) > 1 { labelSet[parsedSelector[0]] = parsedSelector[1] podNamePrefix = parsedSelector[1] }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 199.3K bytes - Viewed (0)