Skip to content

Commit

Permalink
Merge pull request #485 from jhadvig/cli_regexp
Browse files Browse the repository at this point in the history
Bug 1764224: Update ConsoleCLIDownloads Href validation regexp
  • Loading branch information
openshift-merge-robot committed Oct 22, 2019
2 parents 7d6a732 + 96f1ce4 commit 82b963d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion console/v1/0000_10_consoleclidownload.crd.yaml
Expand Up @@ -79,7 +79,7 @@ spec:
description: href is the absolute secure URL for the link (must
use https)
type: string
pattern: ^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$
pattern: ^https://
text:
description: text is the display text for the link
type: string
2 changes: 1 addition & 1 deletion console/v1/0000_10_consolelink.crd.yaml
Expand Up @@ -86,7 +86,7 @@ spec:
description: href is the absolute secure URL for the link (must use
https)
type: string
pattern: ^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$
pattern: ^https://
location:
description: location determines which location in the console the link
will be appended to (ApplicationMenu, HelpMenu, UserMenu, NamespaceDashboard).
Expand Down
2 changes: 1 addition & 1 deletion console/v1/0000_10_consolenotification.crd.yaml
Expand Up @@ -76,7 +76,7 @@ spec:
description: href is the absolute secure URL for the link (must
use https)
type: string
pattern: ^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$
pattern: ^https://
text:
description: text is the display text for the link
type: string
Expand Down
2 changes: 1 addition & 1 deletion console/v1/types.go
Expand Up @@ -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://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$`
// +kubebuilder:validation:Pattern=`^https://`
Href string `json:"href"`
}
2 changes: 1 addition & 1 deletion console/v1/types_console_cli_download.go
Expand Up @@ -29,7 +29,7 @@ type CLIDownloadLink struct {
// +optional
Text string `json:"text"`
// href is the absolute secure URL for the link (must use https)
// +kubebuilder:validation:Pattern=`^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$`
// +kubebuilder:validation:Pattern=`^https://`
Href string `json:"href"`
}

Expand Down

0 comments on commit 82b963d

Please sign in to comment.