- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for MutatingWebhookConfigurations (0.16 sec)
-
istioctl/pkg/tag/util.go
"istio.io/istio/istioctl/pkg/util" ) func GetRevisionWebhooks(ctx context.Context, client kubernetes.Interface) ([]admitv1.MutatingWebhookConfiguration, error) { webhooks, err := client.AdmissionregistrationV1().MutatingWebhookConfigurations().List(ctx, metav1.ListOptions{ LabelSelector: label.IoIstioRev.Name, }) if err != nil { return nil, err } return webhooks.Items, nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 5.5K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
client, err := ctx.CLIClient() if err != nil { return e, err } if revision == "" { revision = "default" } whcList, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.TODO(), metav1.ListOptions{LabelSelector: fmt.Sprintf("%s=%s", label.IoIstioRev.Name, revision)}) if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 21K bytes - Viewed (0) -
istioctl/pkg/tag/tag_test.go
t.Fatalf("expected \"%s\" in command output, got %s", s, commandOutput) } } // check mutating webhooks after run webhooksAfter, _ := client.AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.Background(), metav1.ListOptions{}) if len(webhooksAfter.Items) != len(tc.webhooksAfter.Items) { t.Fatalf("expected %d after running, got %d", len(tc.webhooksAfter.Items), len(webhooksAfter.Items))
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 8.5K bytes - Viewed (0) -
istioctl/pkg/tag/revision.go
} } return revisions, nil } func Webhooks(ctx context.Context, client kube.CLIClient) ([]admitv1.MutatingWebhookConfiguration, error) { hooks, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(ctx, metav1.ListOptions{}) if err != nil { return []admitv1.MutatingWebhookConfiguration{}, err } return hooks.Items, nil } func renderWithDefault(s, def string) string {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 4.5K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject.go
if err != nil { return err } podLabels = ls.MatchLabels nsLabels = ns.GetLabels() } whs, err := kubeClient.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.TODO(), metav1.ListOptions{}) if err != nil { return err } checkResults := analyzeRunningWebhooks(whs.Items, podLabels, nsLabels)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 9.3K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list.go
if namespace.Name == ctx.Namespace() { nsList = []corev1.Namespace{namespace} break } } } hooksList, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.Background(), metav1.ListOptions{ LabelSelector: "app=sidecar-injector", }) if err != nil { return err } hooks := hooksList.Items
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Oct 18 11:39:52 UTC 2024 - 10.6K bytes - Viewed (0) -
istioctl/pkg/tag/generate_test.go
Revision: "default", } _, err := Generate(context.TODO(), fakeClient, opts, "istio-system") assert.NoError(t, err) wh, err := fakeClient.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations(). Get(context.Background(), "istio-sidecar-injector", metav1.GetOptions{}) assert.NoError(t, err) assertFunc(t, wh.Webhooks, defaultWh.Webhooks) } func TestGenerateOptions(t *testing.T) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 12.1K bytes - Viewed (0) -
istioctl/pkg/multixds/gather.go
} type xdsAddr struct { gcpProject, host, istiod string } func getXdsAddressFromWebhooks(client kube.CLIClient) (*xdsAddr, error) { webhooks, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.Background(), metav1.ListOptions{ LabelSelector: fmt.Sprintf("%s=%s,!%s", label.IoIstioRev.Name, client.Revision(), label.IoIstioTag.Name), }) if err != nil { return nil, err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 13.6K bytes - Viewed (0) -
istioctl/pkg/precheck/precheck.go
}, { namespace: istioNamespace, version: "v1", resource: "configmaps", }, { group: "admissionregistration.k8s.io", version: "v1", resource: "mutatingwebhookconfigurations", }, { group: "admissionregistration.k8s.io", version: "v1", resource: "validatingwebhookconfigurations", }, } msgs := diag.Messages{} for _, r := range Resources {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 02:31:32 UTC 2024 - 15.3K bytes - Viewed (0) -
istioctl/pkg/tag/tag.go
if err != nil { return fmt.Errorf("failed to retrieve revision tags: %v", err) } if len(tagWebhooks) == 0 { fmt.Fprintf(writer, "No Istio revision tag MutatingWebhookConfigurations to list\n") return nil } rawTags := map[uniqTag]tagDescription{} for _, wh := range tagWebhooks { tagName := GetWebhookTagName(wh) tagRevision, err := GetWebhookRevision(wh)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Jul 22 15:40:30 UTC 2024 - 16.5K bytes - Viewed (0)