Merge pull request #838 from davinkevin/fix-openapi-url
fix(openapi): full regex for url to prevent error
This commit is contained in:
commit
3ad7bc9971
|
@ -37,7 +37,7 @@ const (
|
||||||
// GitRepositorySpec defines the desired state of a Git repository.
|
// GitRepositorySpec defines the desired state of a Git repository.
|
||||||
type GitRepositorySpec struct {
|
type GitRepositorySpec struct {
|
||||||
// The repository URL, can be a HTTP/S or SSH address.
|
// The repository URL, can be a HTTP/S or SSH address.
|
||||||
// +kubebuilder:validation:Pattern="^(http|https|ssh)://"
|
// +kubebuilder:validation:Pattern="^(http|https|ssh)://.*$"
|
||||||
// +required
|
// +required
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ const (
|
||||||
// Artifact for a Git repository.
|
// Artifact for a Git repository.
|
||||||
type GitRepositorySpec struct {
|
type GitRepositorySpec struct {
|
||||||
// URL specifies the Git repository URL, it can be an HTTP/S or SSH address.
|
// URL specifies the Git repository URL, it can be an HTTP/S or SSH address.
|
||||||
// +kubebuilder:validation:Pattern="^(http|https|ssh)://"
|
// +kubebuilder:validation:Pattern="^(http|https|ssh)://.*$"
|
||||||
// +required
|
// +required
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
|
|
||||||
|
|
|
@ -169,7 +169,7 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
url:
|
url:
|
||||||
description: The repository URL, can be a HTTP/S or SSH address.
|
description: The repository URL, can be a HTTP/S or SSH address.
|
||||||
pattern: ^(http|https|ssh)://
|
pattern: ^(http|https|ssh)://.*$
|
||||||
type: string
|
type: string
|
||||||
verify:
|
verify:
|
||||||
description: Verify OpenPGP signature for the Git commit HEAD points
|
description: Verify OpenPGP signature for the Git commit HEAD points
|
||||||
|
@ -513,7 +513,7 @@ spec:
|
||||||
url:
|
url:
|
||||||
description: URL specifies the Git repository URL, it can be an HTTP/S
|
description: URL specifies the Git repository URL, it can be an HTTP/S
|
||||||
or SSH address.
|
or SSH address.
|
||||||
pattern: ^(http|https|ssh)://
|
pattern: ^(http|https|ssh)://.*$
|
||||||
type: string
|
type: string
|
||||||
verify:
|
verify:
|
||||||
description: Verification specifies the configuration to verify the
|
description: Verification specifies the configuration to verify the
|
||||||
|
|
Loading…
Reference in New Issue