-
Notifications
You must be signed in to change notification settings - Fork 1.6k
add additional validations for commands az aks extension type list and az aks extension type version list #8937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
172bf90
29a8518
fe3c1e8
be0e8cd
18059a8
9db15cd
b37e4b6
1a5df59
6261f16
7e29c0b
a9c68ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -964,6 +964,10 @@ def validate_location_resource_group_cluster_parameters(namespace): | |
| location = namespace.location | ||
| resource_group_name = namespace.resource_group_name | ||
| cluster_name = namespace.cluster_name | ||
| if not namespace.location and not namespace.cluster_name and not namespace.resource_group_name: | ||
|
||
| raise RequiredArgumentMissingError( | ||
| "You must specify --location or --resource-group and --cluster." | ||
| ) | ||
| if location and (resource_group_name or cluster_name): | ||
| raise RequiredArgumentMissingError( | ||
| "You must specify --location or --resource-group and --cluster." | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| [ | ||
| { | ||
| "Check": "HelmInstallation", | ||
| "Condition": "true", | ||
| "Method": "check_helm_installed", | ||
| "PassMessage": "Helm installation check passed!", | ||
| "FailMessage": "Helm not found. Please install the latest version of Helm. Learn more at https://aka.ms/arc/k8s/onboarding-helm-install", | ||
| "Enabled": "true" | ||
| }, | ||
| { | ||
| "Check": "HelmVersion", | ||
| "Condition": ">=version.parse(\"3.0\")", | ||
| "Method": "check_helm_3", | ||
| "PassMessage": "Your Helm version is up to date!", | ||
| "FailMessage": "Helm 3+ required. Please visit https://aka.ms/arc/k8s/onboarding-helm-install to download the latest installation of Helm.", | ||
| "Enabled": "true" | ||
| }, | ||
| { | ||
| "Check": "AzurePermissionCheck", | ||
| "Condition": "true", | ||
| "Method": "check_azure_folder_permissions", | ||
| "PassMessage": "You have the correct permissions!", | ||
| "FailMessage": "Please use the following command to get the correct permissions: ", | ||
| "Enabled": "true" | ||
| } | ||
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The phrasing is unclear. Consider rewording to: “Add validation error when neither
--locationnor both--clusterand--resource-group-nameare specified.”