Skip to content

Commit 98b4b82

Browse files
akuitybotneboman11
andauthored
chore(backport release-1.9): fix: Fixed chart repoURL pattern regex (#5738)
Signed-off-by: Michael Nesbitt <nesbitt@treeman.nesbitt.rocks> Co-authored-by: Michael Nesbitt <michael.nesbitt111@gmail.com>
1 parent 3dd9f8e commit 98b4b82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/subscription/schemas/chart.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"repoURL": {
99
"type": "string",
1010
"minLength": 1,
11-
"pattern": "^(((https?)|(oci))://)(([\\w\\d\\.\\-]+)(:([\\d]+)?)?(/.*)*$",
11+
"pattern": "^(((https?)|(oci))://)(([\\w\\d\\.\\-]+)(:([\\d]+)?)?(/.*)*)$",
1212
"description": "RepoURL specifies the URL of a Helm chart repository. It may be a classic chart repository (using HTTP/S) OR a repository within an OCI registry. Classic chart repositories can contain differently named charts. When this field points to such a repository, the name field MUST also be used to specify the name of the desired chart within that repository. In the case of a repository within an OCI registry, the URL implicitly points to a specific chart and the name field MUST NOT be used. This field is required."
1313
},
1414
"name": {

ui/src/gen/subscriptions/chart.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repoURL": {
88
"type": "string",
99
"minLength": 1,
10-
"pattern": "^(((https?)|(oci))://)(([\\w\\d\\.\\-]+)(:([\\d]+)?)?(/.*)*$",
10+
"pattern": "^(((https?)|(oci))://)(([\\w\\d\\.\\-]+)(:([\\d]+)?)?(/.*)*)$",
1111
"description": "RepoURL specifies the URL of a Helm chart repository. It may be a classic chart repository (using HTTP/S) OR a repository within an OCI registry. Classic chart repositories can contain differently named charts. When this field points to such a repository, the name field MUST also be used to specify the name of the desired chart within that repository. In the case of a repository within an OCI registry, the URL implicitly points to a specific chart and the name field MUST NOT be used. This field is required."
1212
},
1313
"name": {

0 commit comments

Comments
 (0)