Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetNamespacesWithTag (0.2 sec)

  1. istioctl/pkg/tag/util.go

    		LabelSelector: fmt.Sprintf("%s=%s,!%s", label.IoIstioRev.Name, rev, IstioTagLabel),
    	})
    	if err != nil {
    		return nil, err
    	}
    	return webhooks.Items, nil
    }
    
    // GetNamespacesWithTag retrieves all namespaces pointed at the given tag.
    func GetNamespacesWithTag(ctx context.Context, client kubernetes.Interface, tag string) ([]string, error) {
    	namespaces, err := client.CoreV1().Namespaces().List(ctx, metav1.ListOptions{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:42 GMT 2024
    - 5.4K bytes
    - Viewed (1)
  2. istioctl/pkg/tag/tag.go

    	}
    	if len(webhooks) == 0 {
    		return fmt.Errorf("cannot remove tag %q: cannot find MutatingWebhookConfiguration for tag", tagName)
    	}
    
    	taggedNamespaces, err := GetNamespacesWithTag(ctx, kubeClient, tagName)
    	if err != nil {
    		return fmt.Errorf("failed to retrieve namespaces dependent on tag %q", tagName)
    	}
    	// warn user if deleting a tag that still has namespaces pointed to it
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
Back to top