Skip to content

Commit

Permalink
Provide shorthand params
Browse files Browse the repository at this point in the history
  • Loading branch information
summerhasama committed Jul 29, 2022
1 parent 44f1b2c commit e18a944
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/k8s-configuration/azext_k8s_configuration/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ def load_arguments(self, _):
c.argument(
"sp_client_cert_password",
arg_group="Azure Blob Auth",
options_list=["--sp-client-cert-password", "--service-principal-client-certificate-password"],
options_list=["--sp-cert-password", "--service-principal-client-certificate-password"],
help="The password for the client certificate used to authenticate a service principal with Azure Blob",
)
c.argument(
"sp_client_cert-send-chain",
"sp_client_cert_send_chain",
arg_group="Azure Blob Auth",
options_list=["--sp-client-cert-send-chain", "--service-principal-client-certificate-send-chain"],
options_list=["--sp-cert-send-chain", "--service-principal-client-certificate-send-chain"],
help="Specifies whether to include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication for the client certificate",
)
c.argument(
Expand Down
8 changes: 4 additions & 4 deletions src/k8s-configuration/azext_k8s_configuration/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,25 @@
"Error! Service principal is invalid because it is missing value(s)"
)
REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_VALUES_MISSING_HELP = (
"Provide '--sp-client-id', '--sp-tenant-id', and one of '--sp-client-secret' or '--sp-client-certificate'"
"Provide '--sp-client-id', '--sp-tenant-id', and one of '--sp-client-secret' or '--sp-client-cert'"
)
REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_AUTH_ERROR = (
"Error! Too many authentication methods for service principal"
)
REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_AUTH_HELP = (
"Provide only one of '--sp-client-secret' or '--sp-client-certificate'"
"Provide only one of '--sp-client-secret' or '--sp-client-cert'"
)
REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_CERT_VALUES_MISSING_ERROR = (
"Error! Service principal certificate password is invalid"
)
REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_CERT_VALUES_MISSING_HELP = (
"Provide '--sp-client-id', '--sp-tenant-id', and '--sp-client-cert' with your '--sp-client-cert-password"
"Provide '--sp-client-id', '--sp-tenant-id', and '--sp-client-cert' with your '--sp-cert-password"
)
REQUIRED_AZURE_BLOB_AUTH_ERROR = (
"Error! Too many authentication methods for Azure Blob"
)
REQUIRED_AZURE_BLOB_AUTH_HELP = (
"Specify one authentication method of '--local-auth-ref', '--account-key', '--mi-client-id', or service principal with '--sp-client-id', '--sp-tenant-id', and one of '--sp-client-secret' or '--sp-client-certificate'"
"Specify one authentication method of '--local-auth-ref', '--account-key', '--mi-client-id', or service principal with '--sp-client-id', '--sp-tenant-id', and one of '--sp-client-secret' or '--sp-client-cert'"
)
EXTRA_VALUES_PROVIDED_ERROR = (
"Error! Invalid properties [{}] were specified for kind '{}'"
Expand Down

0 comments on commit e18a944

Please sign in to comment.