Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewMisplacedAnnotation (0.26 sec)

  1. pkg/config/analysis/analyzers/annotations/annotations.go

    			if rt == annotation.Any {
    				continue outer
    			}
    		}
    
    		attachesTo := resourceTypesAsStrings(annotationDef.Resources)
    		if !slices.Contains(attachesTo, kind) {
    			m := msg.NewMisplacedAnnotation(r, ann, strings.Join(attachesTo, ", "))
    			util.AddLineNumber(r, ann, m)
    
    			ctx.Report(collectionType, m)
    			continue
    		}
    
    		validationFunction := inject.AnnotationValidation[ann]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jun 25 13:14:31 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. pkg/config/analysis/msg/messages.gen.go

    func NewSchemaValidationError(r *resource.Instance, err error) diag.Message {
    	return diag.NewMessage(
    		SchemaValidationError,
    		r,
    		err,
    	)
    }
    
    // NewMisplacedAnnotation returns a new diag.Message based on MisplacedAnnotation.
    func NewMisplacedAnnotation(r *resource.Instance, annotation string, kind string) diag.Message {
    	return diag.NewMessage(
    		MisplacedAnnotation,
    		r,
    		annotation,
    		kind,
    	)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 22 10:13:03 UTC 2024
    - 43.2K bytes
    - Viewed (0)
Back to top