vmware-archive / operator-builder

A Kubebuilder plugin to accelerate the development of Kubernetes operators
MIT License
41 stars 6 forks source link

bug: conflicting kubebuilder markers in documentation #260

Closed scottd018 closed 2 years ago

scottd018 commented 2 years ago

Looks like kubebuilder markers in the description field result in an error:

    #+operator-builder:collection:field:name=provider,type=string,description=`
    #+kubebuilder:validation:Enum=aws;kind
    # The provider that this workload is being deployed into.`

Results in:

FATA[0001] failed to create API: unable to inject the resource to "config.operatorbuilder.io/v1": unable to inject resource into .source/config/collection.yaml, malformed argument:  at position: {line:2 column:36}, following "aws", on marker Unknown Marker at {line:2 column:36}; error inspecting YAML for markers [2] 

Removing the kubebuilder line #+kubebuilder:validation:Enum=aws;kind solves the problem