cli: fix azure config warning message (#1902)

This commit is contained in:
Moritz Eckert 2023-06-09 11:16:54 +02:00 committed by GitHub
parent 3a54ca91a7
commit 9463d6fb27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ To learn which Kubernetes versions are supported by a particular CLI, run [const
## Migrate the configuration ## Migrate the configuration
The Constellation configuration file is located in the file `constellation-conf.yaml` in your workspace. The Constellation configuration file is located in the file `constellation-conf.yaml` in your workspace.
Refer to the [migration reference](../reference/config-migration.md) to check if you need to update fields in your configuration file. Refer to the [migration reference](../reference/migration.md) to check if you need to update fields in your configuration file.
Use [`constellation config migrate`](../reference/cli.md#constellation-config-migrate) to automatically update an old config file to a new format. Use [`constellation config migrate`](../reference/cli.md#constellation-config-migrate) to automatically update an old config file to a new format.
## Check for upgrades ## Check for upgrades

View File

@ -254,7 +254,7 @@ const sidebars = {
{ {
type: 'doc', type: 'doc',
label: 'Configuration migrations', label: 'Configuration migrations',
id: 'reference/config-migration', id: 'reference/migration',
}, },
{ {
type: 'doc', type: 'doc',

View File

@ -31,7 +31,7 @@ To learn which Kubernetes versions are supported by a particular CLI, run [const
## Migrate the configuration ## Migrate the configuration
The Constellation configuration file is located in the file `constellation-conf.yaml` in your workspace. The Constellation configuration file is located in the file `constellation-conf.yaml` in your workspace.
Refer to the [migration reference](../reference/config-migration.md) to check if you need to update fields in your configuration file. Refer to the [migration reference](../reference/migration.md) to check if you need to update fields in your configuration file.
Use [`constellation config migrate`](../reference/cli.md#constellation-config-migrate) to automatically update an old config file to a new format. Use [`constellation config migrate`](../reference/cli.md#constellation-config-migrate) to automatically update an old config file to a new format.
## Check for upgrades ## Check for upgrades

View File

@ -231,7 +231,7 @@
{ {
"type": "doc", "type": "doc",
"label": "Configuration migrations", "label": "Configuration migrations",
"id": "reference/config-migration" "id": "reference/migration"
}, },
{ {
"type": "doc", "type": "doc",

View File

@ -421,8 +421,8 @@ func New(fileHandler file.Handler, name string, _ attestationconfigapi.Fetcher,
if c.Provider.Azure != nil && if c.Provider.Azure != nil &&
(c.Provider.Azure.AppClientID != "" || c.Provider.Azure.ClientSecretValue != "") { (c.Provider.Azure.AppClientID != "" || c.Provider.Azure.ClientSecretValue != "") {
// Deprecation warning for old auth method // Deprecation warning for old auth method
fmt.Fprintf(os.Stderr, "WARNING: Using a service principal for authentication is deprecated and will be removed in an upcoming version.") fmt.Fprintf(os.Stderr, "WARNING: Using a service principal for authentication is deprecated and will be removed in an upcoming version.\n")
fmt.Fprintf(os.Stderr, " Migrate to using a user assigned managed identity by following the migration guide: https://docs.edgeless.systems/constellation/reference/migration.") fmt.Fprintf(os.Stderr, " Migrate to using a user assigned managed identity by following the migration guide: https://docs.edgeless.systems/constellation/reference/migration.\n")
} }
return c, c.Validate(force) return c, c.Validate(force)