Skip to content

Commit

Permalink
Merge pull request #159 from darkowlzz/ct-marker-evaluation
Browse files Browse the repository at this point in the history
runtime/events: fix Severity validation marker value
  • Loading branch information
stefanprodan authored Oct 10, 2021
2 parents 36ddbce + 5d975bb commit 6c1a229
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ vet-%:
cd $(subst :,/,$*); go vet ./...

generate-%: controller-gen
# Run schemapatch to validate all the kubebuilder markers before generation.
cd $(subst :,/,$*); $(CONTROLLER_GEN) schemapatch:manifests="./" paths="./..."
cd $(subst :,/,$*); $(CONTROLLER_GEN) object:headerFile="$(root_dir)/hack/boilerplate.go.txt" paths="./..."

test-%: generate-% tidy-% fmt-% vet-% setup-envtest
Expand Down
2 changes: 1 addition & 1 deletion runtime/events/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type Event struct {
InvolvedObject corev1.ObjectReference `json:"involvedObject"`

// Severity type of this event (trace, info, error)
// +kubebuilder:validation:Enum=trace,info;error
// +kubebuilder:validation:Enum=trace;info;error
// +required
Severity string `json:"severity"`

Expand Down

0 comments on commit 6c1a229

Please sign in to comment.