Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DeleteTagWebhooks (0.06 sec)

  1. istioctl/pkg/tag/util.go

    	if tagName, ok := wh.ObjectMeta.Labels[label.IoIstioRev.Name]; ok {
    		return tagName, nil
    	}
    	return "", fmt.Errorf("could not extract tag revision from webhook")
    }
    
    // DeleteTagWebhooks deletes the given webhooks.
    func DeleteTagWebhooks(ctx context.Context, client kubernetes.Interface, tag string) error {
    	webhooks, err := GetWebhooksWithTag(ctx, client, tag)
    	if err != nil {
    		return err
    	}
    	var result error
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. istioctl/pkg/tag/tag.go

    		if !util.Confirm(buildDeleteTagConfirmation(tagName, taggedNamespaces), w) {
    			fmt.Fprintf(w, "Aborting operation.\n")
    			return nil
    		}
    	}
    
    	// proceed with webhook deletion
    	err = DeleteTagWebhooks(ctx, kubeClient, tagName)
    	if err != nil {
    		return fmt.Errorf("failed to delete Istio revision tag MutatingConfigurationWebhook: %v", err)
    	}
    
    	fmt.Fprintf(w, "Revision tag %s removed\n", tagName)
    	return nil
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 15:40:30 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top