Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AnnotationValidation (0.37 sec)

  1. pkg/kube/inject/validate.go

    	"istio.io/istio/pkg/config/validation/agent"
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    type annotationValidationFunc func(value string) error
    
    // per-sidecar policy and status
    var (
    	AnnotationValidation = map[string]annotationValidationFunc{
    		annotation.SidecarInterceptionMode.Name:                   validateInterceptionMode,
    		annotation.SidecarEnableCoreDump.Name:                     validateBool,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. pkg/config/analysis/analyzers/annotations/annotations.go

    			m := msg.NewMisplacedAnnotation(r, ann, strings.Join(attachesTo, ", "))
    			util.AddLineNumber(r, ann, m)
    
    			ctx.Report(collectionType, m)
    			continue
    		}
    
    		validationFunction := inject.AnnotationValidation[ann]
    		if validationFunction != nil {
    			if err := validationFunction(value); err != nil {
    				m := msg.NewInvalidAnnotation(r, ann, err.Error())
    				util.AddLineNumber(r, ann, m)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jun 25 13:14:31 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. pkg/kube/inject/inject.go

    		if useDefault {
    			required = true
    		} else {
    			required = inject
    		}
    	}
    
    	if log.DebugEnabled() {
    		// Build a log message for the annotations.
    		annotationStr := ""
    		for name := range AnnotationValidation {
    			value, ok := annos[name]
    			if !ok {
    				value = "(unset)"
    			}
    			annotationStr += fmt.Sprintf("%s:%s ", name, value)
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (0)
Back to top