Add validation to controller for TaskRun CRD #33
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
meaty-juicy-coding-work
This task is mostly about implementation!!! And docs and tests of course but that's a given
Expected Behavior
When someone creates a TaskRun in a k8s cluster (e.g. with kubectl apply, the controller should make sure every field is valid.
This should include verifying as many fields as possible, e.g. verifying connectivity with any endpoints, if there are any references, verifying that those actually exist in the system, etc.
TaskRun is defined here: https://github.com/knative/build-pipeline/blob/master/pkg/apis/pipeline/v1beta1/taskrun_types.go
Any additional fields included should cause a failure (e.g. if a typo is made when defining a known field).
Actual Behavior
Some basic validation is applied, e.g. that required fields are present and that fields are in the correct format (e.g. string vs. int), but that's it.
Steps to Reproduce the Problem
kubectl apply -f
and notice that the controller does not complainAdditional Info
Blocked by #19
The text was updated successfully, but these errors were encountered: