Update CRD validation and RBAC

This commit is contained in:
Moto Ishizawa
2020-02-02 10:30:42 +09:00
parent 127a601fb7
commit 7db5340595
5 changed files with 20 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ import (
// RunnerSpec defines the desired state of Runner
type RunnerSpec struct {
// +kubebuilder:validation:MinLength=3
// +kubebuilder:validation:Pattern=`^[^/]+/[^/]+$`
Repository string `json:"repository"`
// +optional