Skip to content

Commit 876c0c5

Browse files
committed
fix: ui spec to accept file
1 parent 3345c9a commit 876c0c5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

platform/constants/ui-spec.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
{
1616
"name": "kubeconfig",
1717
"label": "Kube config",
18-
"inputType": "text",
18+
"inputType": "file",
1919
"required": true,
2020
"order": 1,
2121
"validation": {
22-
"pattern": ".*",
23-
"errorMessage": ""
22+
"fileTypes": [".yaml", ".yml"],
23+
"maxFileSizeMB": 5,
24+
"errorMessage": "Please upload a valid kube config yaml file not exceeding 5MB."
2425
},
2526
"info": "Kubeconfig file content, make sure that the currentContext is set to the desired cluster.",
2627
"external_help_url": "https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/"

0 commit comments

Comments
 (0)