- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for NewFakeController (0.43 sec)
-
pilot/pkg/config/kube/ingress/controller_test.go
"istio.io/istio/pkg/config/mesh" "istio.io/istio/pkg/config/schema/gvk" "istio.io/istio/pkg/kube" "istio.io/istio/pkg/kube/kclient/clienttest" "istio.io/istio/pkg/util/sets" ) func newFakeController() (model.ConfigStoreController, kube.Client) { meshHolder := mesh.NewTestWatcher(&meshconfig.MeshConfig{ IngressControllerMode: meshconfig.MeshConfig_DEFAULT, }) fakeClient := kube.NewFakeClient()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 18:34:32 UTC 2023 - 10.1K bytes - Viewed (0) -
pkg/kube/multicluster/fake.go
kubeConfigSha: [32]byte{}, stop: stop, }) } } func (f *Fake) Delete(id cluster.ID) { for _, handler := range f.handlers { handler.clusterDeleted(id) } } func NewFakeController() *Fake { return &Fake{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 19:18:21 UTC 2024 - 1.2K bytes - Viewed (0) -
pilot/pkg/credentials/kube/secrets_test.go
stop := test.NewStop(t) localClient := kube.NewFakeClient() localClient.RunAndWait(stop) remoteClient := kube.NewFakeClient() remoteClient.RunAndWait(stop) mc := multicluster.NewFakeController() sc := NewMulticluster("local", mc) mc.Add("local", localClient, stop) mc.Add("remote", remoteClient, stop) mc.Add("remote2", remoteClient, stop) cases := []struct { cluster cluster2.ID
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 19:18:21 UTC 2024 - 18.4K bytes - Viewed (0) -
security/pkg/server/ca/node_auth_test.go
primaryClient := kube.NewFakeClient(primaryClusterPods...) remoteClient := kube.NewFakeClient(remoteClusterPods...) remote2Client := kube.NewFakeClient(remoteCluster2Pods...) mc := multicluster.NewFakeController() mNa := NewMulticlusterNodeAuthenticator(allowZtunnel, mc) stop := test.NewStop(t) mc.Add("primary", primaryClient, stop) mc.Add("remote", remoteClient, stop) mc.Add("remote2", remote2Client, stop)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 10.5K bytes - Viewed (0) -
security/pkg/server/ca/server_test.go
}, } for _, c := range testCases { t.Run(c.name, func(t *testing.T) { test.SetForTest(t, &features.CATrustedNodeAccounts, c.trustedNodeAccounts) multiClusterController := multicluster.NewFakeController() server, _ := New(c.ca, time.Duration(1), c.authenticators, multiClusterController) var pods []runtime.Object for _, p := range c.pods {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 15.8K bytes - Viewed (0) -
pilot/test/xds/fake.go
}) }) } var xdsUpdater model.XDSUpdater = s if opts.EnableFakeXDSUpdater { xdsUpdater = xdsfake.NewWithDelegate(s) } mc := multicluster.NewFakeController() creds := kubesecrets.NewMulticluster(opts.DefaultClusterName, mc) configController := memory.NewSyncController(memory.MakeSkipValidation(collections.PilotGatewayAPI())) clientBuilder := opts.KubeClientBuilder
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 10 16:08:52 UTC 2024 - 18.4K bytes - Viewed (0) -
pkg/controller/endpoint/endpoints_controller_test.go
informerFactory.Core().V1().Pods().Informer().GetStore(), informerFactory.Core().V1().Services().Informer().GetStore(), informerFactory.Core().V1().Endpoints().Informer().GetStore(), } } func newFakeController(ctx context.Context, batchPeriod time.Duration) (*fake.Clientset, *endpointController) { client := fake.NewSimpleClientset() informerFactory := informers.NewSharedInformerFactory(client, controllerpkg.NoResyncPeriodFunc())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 87.7K bytes - Viewed (0) -
pkg/kube/inject/inject_test.go
t.Run("webhook", func(t *testing.T) { env := &model.Environment{} env.SetPushContext(&model.PushContext{ ProxyConfigs: &model.ProxyConfigs{}, }) multi := multicluster.NewFakeController() client := kube.NewFakeClient( &corev1.Namespace{ ObjectMeta: metav1.ObjectMeta{ Name: "test-ns", Annotations: map[string]string{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 20:35:11 UTC 2024 - 34.1K bytes - Viewed (0)