Documentation ¶
Index ¶
- Constants
- Variables
- func AllValidCRDAccounts(ctx context.Context, c client.Client, ns string) ([]account.Account, error)
- func FromSpinnakerConfigSlice(ctx context.Context, accountType account.SpinnakerAccountType, ...) ([]account.Account, error)
- func GetAllServicesWithAccounts() []string
- func GetType(tp interfaces.AccountType) (account.SpinnakerAccountType, error)
- func PrepareSettings(ctx context.Context, svc string, accountList []account.Account) (map[string]interface{}, error)
- func Register(accountTypes ...account.SpinnakerAccountType)
Constants ¶
View Source
const ( SpringProfile = "accounts" AccountSecretPath = "/var/operator-accounts" )
Variables ¶
View Source
var ServicesWithAccountsFiles = []string{"clouddriver"}
View Source
var Types = map[interfaces.AccountType]account.SpinnakerAccountType{}
View Source
var TypesFactory interfaces.TypesFactory
Functions ¶
func AllValidCRDAccounts ¶
func FromSpinnakerConfigSlice ¶
func FromSpinnakerConfigSlice(ctx context.Context, accountType account.SpinnakerAccountType, settingsSlice []map[string]interface{}, ignoreInvalid bool) ([]account.Account, error)
FromSpinnakerConfigSlice builds accounts from a given slice of settings
func GetAllServicesWithAccounts ¶
func GetAllServicesWithAccounts() []string
GetAllServicesWithAccounts returns all services potentially using accounts defined via CRDs
func GetType ¶
func GetType(tp interfaces.AccountType) (account.SpinnakerAccountType, error)
func PrepareSettings ¶
func PrepareSettings(ctx context.Context, svc string, accountList []account.Account) (map[string]interface{}, error)
PrepareSettings gathers all accounts for the given services in the given namespace
func Register ¶
func Register(accountTypes ...account.SpinnakerAccountType)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.