mirror of https://github.com/databricks/cli.git
acc: Exclude secrets from replacements (#2250)
They should never be printed by CLI anyway.
This commit is contained in:
parent
5971bd5c1a
commit
0256225408
|
@ -146,25 +146,16 @@ func PrepareReplacementsWorkspaceClient(t testutil.TestingT, r *ReplacementsCont
|
||||||
r.Set(w.Config.ClusterID, "$DATABRICKS_CLUSTER_ID")
|
r.Set(w.Config.ClusterID, "$DATABRICKS_CLUSTER_ID")
|
||||||
r.Set(w.Config.WarehouseID, "$DATABRICKS_WAREHOUSE_ID")
|
r.Set(w.Config.WarehouseID, "$DATABRICKS_WAREHOUSE_ID")
|
||||||
r.Set(w.Config.ServerlessComputeID, "$DATABRICKS_SERVERLESS_COMPUTE_ID")
|
r.Set(w.Config.ServerlessComputeID, "$DATABRICKS_SERVERLESS_COMPUTE_ID")
|
||||||
r.Set(w.Config.MetadataServiceURL, "$DATABRICKS_METADATA_SERVICE_URL")
|
|
||||||
r.Set(w.Config.AccountID, "$DATABRICKS_ACCOUNT_ID")
|
r.Set(w.Config.AccountID, "$DATABRICKS_ACCOUNT_ID")
|
||||||
r.Set(w.Config.Token, "$DATABRICKS_TOKEN")
|
|
||||||
r.Set(w.Config.Username, "$DATABRICKS_USERNAME")
|
r.Set(w.Config.Username, "$DATABRICKS_USERNAME")
|
||||||
r.Set(w.Config.Password, "$DATABRICKS_PASSWORD")
|
|
||||||
r.SetPath(w.Config.Profile, "$DATABRICKS_CONFIG_PROFILE")
|
r.SetPath(w.Config.Profile, "$DATABRICKS_CONFIG_PROFILE")
|
||||||
r.Set(w.Config.ConfigFile, "$DATABRICKS_CONFIG_FILE")
|
r.Set(w.Config.ConfigFile, "$DATABRICKS_CONFIG_FILE")
|
||||||
r.Set(w.Config.GoogleServiceAccount, "$DATABRICKS_GOOGLE_SERVICE_ACCOUNT")
|
r.Set(w.Config.GoogleServiceAccount, "$DATABRICKS_GOOGLE_SERVICE_ACCOUNT")
|
||||||
r.Set(w.Config.GoogleCredentials, "$GOOGLE_CREDENTIALS")
|
|
||||||
r.Set(w.Config.AzureResourceID, "$DATABRICKS_AZURE_RESOURCE_ID")
|
r.Set(w.Config.AzureResourceID, "$DATABRICKS_AZURE_RESOURCE_ID")
|
||||||
r.Set(w.Config.AzureClientSecret, "$ARM_CLIENT_SECRET")
|
|
||||||
// r.Set(w.Config.AzureClientID, "$ARM_CLIENT_ID")
|
|
||||||
r.Set(w.Config.AzureClientID, testerName)
|
r.Set(w.Config.AzureClientID, testerName)
|
||||||
r.Set(w.Config.AzureTenantID, "$ARM_TENANT_ID")
|
r.Set(w.Config.AzureTenantID, "$ARM_TENANT_ID")
|
||||||
r.Set(w.Config.ActionsIDTokenRequestURL, "$ACTIONS_ID_TOKEN_REQUEST_URL")
|
|
||||||
r.Set(w.Config.ActionsIDTokenRequestToken, "$ACTIONS_ID_TOKEN_REQUEST_TOKEN")
|
|
||||||
r.Set(w.Config.AzureEnvironment, "$ARM_ENVIRONMENT")
|
r.Set(w.Config.AzureEnvironment, "$ARM_ENVIRONMENT")
|
||||||
r.Set(w.Config.ClientID, "$DATABRICKS_CLIENT_ID")
|
r.Set(w.Config.ClientID, "$DATABRICKS_CLIENT_ID")
|
||||||
r.Set(w.Config.ClientSecret, "$DATABRICKS_CLIENT_SECRET")
|
|
||||||
r.SetPath(w.Config.DatabricksCliPath, "$DATABRICKS_CLI_PATH")
|
r.SetPath(w.Config.DatabricksCliPath, "$DATABRICKS_CLI_PATH")
|
||||||
// This is set to words like "path" that happen too frequently
|
// This is set to words like "path" that happen too frequently
|
||||||
// r.Set(w.Config.AuthType, "$DATABRICKS_AUTH_TYPE")
|
// r.Set(w.Config.AuthType, "$DATABRICKS_AUTH_TYPE")
|
||||||
|
|
Loading…
Reference in New Issue