- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for Case (0.32 sec)
-
operator/cmd/mesh/profile-dump.go
switch outputFormat { case jsonOutput, yamlOutput, flagsOutput: default: return fmt.Errorf("unknown output format: %s", outputFormat) } return nil } // yamlToFormat converts the generated yaml config to the expected format func yamlToFormat(yaml, outputFormat string) (string, error) { var output string switch outputFormat { case jsonOutput: j, err := yamlToPrettyJSON(yaml)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 7.1K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/listener.go
equality := "=" switch v := match.GetMatcherTree().GetTreeType().(type) { case *matcher.Matcher_MatcherTree_ExactMatchMap: m = v.ExactMatchMap.Map case *matcher.Matcher_MatcherTree_PrefixMatchMap: m = v.PrefixMatchMap.Map equality = "^" case *matcher.Matcher_MatcherTree_CustomMatch: tc := v.CustomMatch.GetTypedConfig() switch tc.TypeUrl { case IPMatcher: ip := protoconv.SilentlyUnmarshalAny[matcher.IPMatcher](tc)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Nov 29 12:37:14 GMT 2023 - 18.1K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
expectedOutput: "Error: expecting a workload namespace\n", }, { description: "valid case - minimal flags, infer defaults", args: strings.Split("group create --name foo --namespace bar", " "), expectedException: false, expectedOutput: defaultYAML, }, { description: "valid case - create full workload group",
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Mar 27 16:59:05 GMT 2024 - 14.6K bytes - Viewed (0) -
operator/cmd/mesh/manifest_shared_test.go
log.Infof("\nRunning test command using %s\n", cmd) switch cmd { case cmdApply, cmdController: if err := cleanTestCluster(); err != nil { return nil, err } if err := fakeApplyExtraResources(inFile); err != nil { return nil, err } default: } var objs *ObjectSet var err error switch cmd { case cmdGenerate:
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 20 22:39:28 GMT 2024 - 11.7K bytes - Viewed (1) -
istioctl/pkg/internaldebug/internal-debug.go
switch { case strings.Contains(eString, "You must provide a proxyID in the query string"): return nil, fmt.Errorf(" You must provide a proxyID in the query string, e.g. [%s]", "edsz?proxyID=istio-ingressgateway") case strings.Contains(eString, "404 page not found"): return HandlerForRetrieveDebugList(kubeClient, *centralOpts, writer, istioNamespace)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 04:16:55 GMT 2024 - 6.9K bytes - Viewed (0) -
cni/pkg/nodeagent/server_test.go
wg := &WaitGroup{ done: make(chan struct{}), } wg.Add(n) return wg, func() { select { case <-wg.C(): return case <-time.After(time.Second): t.Fatal("Wait group timed out!\n") } } } func (wg *WaitGroup) Add(i int32) { select { case <-wg.done: panic("use of an already closed WaitGroup") default: } atomic.AddInt32(&wg.count, i) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 7.8K bytes - Viewed (0) -
operator/cmd/mesh/profile-diff_test.go
}, { args: fmt.Sprintf("profile diff openshift openshift --manifests %s", snapshotCharts), expectedString: "Profiles are identical", }, } for i, c := range cases { t.Run(fmt.Sprintf("case %d %q", i, c.args), func(t *testing.T) { output, fErr := runCommand(c.args) verifyProfileDiffCommandCaseOutput(t, c, output, fErr) }) } } func TestProfileDiffDirect(t *testing.T) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Jan 10 05:10:03 GMT 2024 - 3.6K bytes - Viewed (1) -
istioctl/pkg/checkinject/checkinject.go
} } else if nsMatched { for _, me := range wh.ObjectSelector.MatchExpressions { switch me.Operator { case metav1.LabelSelectorOpDoesNotExist: v, ok := podLabels[me.Key] if ok { return fmt.Sprintf("Pod has %s=%s label, preventing injection", me.Key, v), false } case metav1.LabelSelectorOpNotIn: v, ok := podLabels[me.Key] if !ok { continue }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 9.3K bytes - Viewed (0) -
istioctl/pkg/util/handlers/handlers.go
switch t := object.(type) { case *gatewayapi.Gateway: if !gateway.IsManaged(&t.Spec) { return "", nil, fmt.Errorf("gateway is not a managed gateway") } namespace = t.Namespace selector, err = labels.Parse(constants.GatewayNameLabel + "=" + t.Name) case *gatewayapibeta.Gateway: if !gateway.IsManaged(&t.Spec) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 06 15:01:41 GMT 2024 - 6.2K bytes - Viewed (0) -
cni/pkg/nodeagent/net.go
// this can happen if the pod was dynamically added to the mesh after it was created. // in that case, try finding the netns using procfs. if err := s.rescanPod(pod); err != nil { log.Errorf("error scanning proc: error was %s", err) return nil, err } // try again. we can still get here if the pod is in the process of being created. // in this case the CNI will be invoked soon and provide us with the netns.
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 12.2K bytes - Viewed (1)