diff --git a/Makefile b/Makefile index f9d9b08d7..3621dbd9d 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,9 @@ test-e2e: install-go-junit-report ./test-e2e.sh .PHONY: test-e2e +build: + go build -ldflags "-X $GO_PACKAGE/pkg/version.versionFromGit=$(git describe --long --tags --abbrev=7 --match 'v[0-9]*')" -tags="ocp" -o console ./cmd/console + # Automatically install go-junit-report if not found GO_JUNIT_REPORT := $(shell command -v go-junit-report 2> /dev/null) install-go-junit-report: diff --git a/vendor/github.com/openshift/api/console/v1/types.go b/vendor/github.com/openshift/api/console/v1/types.go index 416eaa3e8..14a7fc4ce 100644 --- a/vendor/github.com/openshift/api/console/v1/types.go +++ b/vendor/github.com/openshift/api/console/v1/types.go @@ -5,6 +5,6 @@ type Link struct { // text is the display text for the link Text string `json:"text"` // href is the absolute secure URL for the link (must use https) - // +kubebuilder:validation:Pattern=`^https://` + // +kubebuilder:validation:Pattern=`^(https://|mailto:)` Href string `json:"href"` }