- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewFakeClient (0.16 sec)
-
istioctl/pkg/install/k8sversion/version_test.go
isValid: true, }, } var outBuf bytes.Buffer var errBuf bytes.Buffer for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.version), func(t *testing.T) { k8sClient := kube.NewFakeClient() k8sClient.Kube().Discovery().(*fakediscovery.FakeDiscovery).FakedServerVersion = c.version logger := clog.NewConsoleLogger(&outBuf, &errBuf, nil) IsK8VersionSupported(k8sClient, logger)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 30 21:50:50 UTC 2024 - 6.5K bytes - Viewed (0) -
istioctl/pkg/cli/context.go
if _, ok := f.clients[rev]; !ok { var cliclient kube.CLIClient if f.version != "" { cliclient = kube.NewFakeClientWithVersion(f.version, f.objects...) } else { cliclient = kube.NewFakeClient(f.objects...) } if rev != "" { kube.SetRevisionForTest(cliclient, rev) } c := MockClient{ CLIClient: cliclient, Results: f.results, } f.clients[rev] = c }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 23 19:31:32 UTC 2024 - 8.9K bytes - Viewed (0) -
istioctl/pkg/multicluster/remote_secret_test.go
if c.updatedTokenSecret != nil { // fetching should give a different result than the token secret we pass in obj = []runtime.Object{c.updatedTokenSecret} } client := kube.NewFakeClient(obj...) got, err := createRemoteSecretFromTokenAndServer(client, c.haveTokenSecret, c.clusterName, c.server, secName) if c.wantErrStr != "" { if err == nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 20.7K bytes - Viewed (0)