Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateWebhookURL (0.65 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/webhook/validation.go

    */
    
    package webhook
    
    import (
    	"fmt"
    	"net/url"
    	"strings"
    
    	"k8s.io/apimachinery/pkg/util/validation"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    )
    
    // ValidateWebhookURL validates webhook's URL.
    func ValidateWebhookURL(fldPath *field.Path, URL string, forceHttps bool) field.ErrorList {
    	var allErrors field.ErrorList
    	const form = "; desired format: https://host[/path]"
    	if u, err := url.Parse(URL); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 19 23:14:37 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  2. pkg/apis/admissionregistration/validation/validation.go

    		allErrors = append(allErrors, field.Required(fldPath.Child("clientConfig"), "exactly one of url or service is required"))
    	case cc.URL != nil:
    		allErrors = append(allErrors, webhook.ValidateWebhookURL(fldPath.Child("clientConfig").Child("url"), *cc.URL, true)...)
    	case cc.Service != nil:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 56.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    				allErrs = append(allErrs, field.Required(fldPath.Child("webhookClientConfig"), "exactly one of url or service is required"))
    			case cc.URL != nil:
    				allErrs = append(allErrs, webhook.ValidateWebhookURL(fldPath.Child("webhookClientConfig").Child("url"), *cc.URL, true)...)
    			case cc.Service != nil:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
Back to top