Commit 2798e6a
committed
ic: azure: validate credentials mode for managed identities
CredentialsMode must be set to 'Manual' when using Managed Identities
authentication. This change adds a validation check and errors out if
that's not the case with:
```
INFO Credentials loaded from file "/home/azureuser/.azure/osServicePrincipal.json"
WARNING Using Managed Identity to authenticate. Please be warned cluster does not support MSI and only the installer does.
FATAL failed to fetch Bootstrap Ignition Config: failed to fetch dependency of "Bootstrap Ignition Config": failed to fetch dependency of "CVO Ignore": failed to fetch dependency of "Common Manifests": failed to fetch dependency of "DNS Config": failed to generate asset "Platform Credentials Check": authentication with client certificates or managed identity is only supported in manual credentials mode
```1 parent 248f6c3 commit 2798e6a
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
0 commit comments