mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-03 14:54:53 -04:00
bootstrapper: make Azure auth method configurable on cluster init (#1346)
* bootstrapper: make Azure auth method configurable on cluster init * azure: convert uami resource ID to clientID Co-authored-by: 3u13r <lc@edgeless.systems>
This commit is contained in:
parent
5cb1899c27
commit
d15968bed7
14 changed files with 307 additions and 209 deletions
25
internal/cloud/azureshared/authmethod_string.go
Normal file
25
internal/cloud/azureshared/authmethod_string.go
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Code generated by "stringer -type=AuthMethod -trimprefix=AuthMethod"; DO NOT EDIT.
|
||||
|
||||
package azureshared
|
||||
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[AuthMethodUnknown-0]
|
||||
_ = x[AuthMethodServicePrincipal-1]
|
||||
_ = x[AuthMethodUserAssignedIdentity-2]
|
||||
}
|
||||
|
||||
const _AuthMethod_name = "UnknownServicePrincipalUserAssignedIdentity"
|
||||
|
||||
var _AuthMethod_index = [...]uint8{0, 7, 23, 43}
|
||||
|
||||
func (i AuthMethod) String() string {
|
||||
if i >= AuthMethod(len(_AuthMethod_index)-1) {
|
||||
return "AuthMethod(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _AuthMethod_name[_AuthMethod_index[i]:_AuthMethod_index[i+1]]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue