Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for mutatingwebhookconfigurations (0.32 sec)

  1. istioctl/pkg/kubeinject/kubeinject.go

    	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 {
    		return e, fmt.Errorf("could not find valid mutatingWebhookConfiguration %q from cluster %v",
    			whcName, err)
    	}
    	if whcList != nil && len(whcList.Items) != 0 {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 21K bytes
    - Viewed (0)
  2. istioctl/pkg/injector/injector-list.go

    		}
    	}
    	return w.Flush()
    }
    
    func getInjector(namespace *corev1.Namespace, hooks []admitv1.MutatingWebhookConfiguration) *admitv1.MutatingWebhookConfiguration {
    	// find matching hook
    	for _, hook := range hooks {
    		for _, webhook := range hook.Webhooks {
    			nsSelector, err := metav1.LabelSelectorAsSelector(webhook.NamespaceSelector)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Oct 18 11:39:52 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. istioctl/pkg/tag/generate_test.go

    		}
    
    		whObject, _, err := deserializer.Decode([]byte(webhookYAML), nil, &admitv1.MutatingWebhookConfiguration{})
    		if err != nil {
    			t.Fatalf("could not parse webhook from generated YAML: %s", webhookYAML)
    		}
    		wh := whObject.(*admitv1.MutatingWebhookConfiguration)
    
    		// expect both namespace.sidecar-injector.istio.io and object.sidecar-injector.istio.io webhooks
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. istioctl/pkg/tag/generate.go

    	for _, mf := range mfs {
    		for _, m := range mf.Manifests {
    			if m.GetKind() == "MutatingWebhookConfiguration" && strings.HasPrefix(m.GetName(), "istio-revision-tag-") {
    				tagWebhookYaml = m.Content
    				break
    			}
    		}
    	}
    	if tagWebhookYaml == "" {
    		return "", fmt.Errorf("could not find MutatingWebhookConfiguration in manifests")
    	}
    
    	scheme := runtime.NewScheme()
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/admissionregistration/v1beta1/generated.proto

      // +optional
      repeated MatchCondition matchConditions = 12;
    }
    
    // MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
    // Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead.
    message MutatingWebhookConfiguration {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/admissionregistration/v1/generated.proto

      // +featureGate=AdmissionWebhookMatchConditions
      // +optional
      repeated MatchCondition matchConditions = 12;
    }
    
    // MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
    message MutatingWebhookConfiguration {
      // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      // +optional
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  10. istioctl/pkg/checkinject/checkinject_test.go

    		"testdata/check-inject/rev-16-injector.yaml",
    		"testdata/check-inject/never-match-injector.yaml",
    	}
    	var whs []admitv1.MutatingWebhookConfiguration
    	for _, whName := range whFiles {
    		file, err := os.ReadFile(whName)
    		if err != nil {
    			t.Fatal(err)
    		}
    		var wh *admitv1.MutatingWebhookConfiguration
    		if err := yaml.Unmarshal(file, &wh); err != nil {
    			t.Fatal(err)
    		}
    		whs = append(whs, *wh)
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top