Documentation ¶
Index ¶
- Constants
- Variables
- type Account
- type AccountType
- func (k *AccountType) FromCRD(account interfaces.SpinnakerAccount) (account.Account, error)
- func (k *AccountType) FromSpinnakerConfig(ctx context.Context, settings map[string]interface{}) (account.Account, error)
- func (k *AccountType) GetAccountsKey() string
- func (k *AccountType) GetConfigAccountsKey() string
- func (k *AccountType) GetPrimaryAccountsKey() string
- func (k *AccountType) GetServices() []string
- func (k *AccountType) GetType() interfaces.AccountType
- func (k *AccountType) GetValidationSettings(spinsvc interfaces.SpinnakerService) *interfaces.ValidationSetting
- type CustomKubernetesResource
- type Env
Constants ¶
View Source
const ( KubeconfigFileSettings = "kubeconfigFile" KubeconfigFileContentSettings = "kubeconfigContents" UseServiceAccount = "serviceAccount" )
Kubernetes accounts have a deeper integration than other accounts. When read from Spinnaker settings, they support `kubeconfigFile`, `kubeconfigContents`, or oauth via `oauth2l`. When read from the CRD, user can reference a Kubernetes secret, pass the kubeconfig file inlined, reference a secret (s3, gcs...), or pass provider options to make the kubeconfig on the fly.
Variables ¶
View Source
var TypesFactory interfaces.TypesFactory
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { *account.BaseAccount Name string `json:"name,omitempty"` Auth *interfaces.KubernetesAuth Env Env `json:"env,omitempty"` Settings interfaces.FreeForm `json:"settings,omitempty"` }
func (*Account) GetSettings ¶
func (k *Account) GetSettings() *interfaces.FreeForm
func (*Account) GetType ¶
func (k *Account) GetType() interfaces.AccountType
func (*Account) NewValidator ¶
func (k *Account) NewValidator() account.AccountValidator
type AccountType ¶
type AccountType struct{}
func (*AccountType) FromCRD ¶
func (k *AccountType) FromCRD(account interfaces.SpinnakerAccount) (account.Account, error)
func (*AccountType) FromSpinnakerConfig ¶
func (*AccountType) GetAccountsKey ¶
func (k *AccountType) GetAccountsKey() string
func (*AccountType) GetConfigAccountsKey ¶
func (k *AccountType) GetConfigAccountsKey() string
func (*AccountType) GetPrimaryAccountsKey ¶ added in v1.2.3
func (k *AccountType) GetPrimaryAccountsKey() string
func (*AccountType) GetServices ¶
func (k *AccountType) GetServices() []string
func (*AccountType) GetType ¶
func (k *AccountType) GetType() interfaces.AccountType
func (*AccountType) GetValidationSettings ¶
func (k *AccountType) GetValidationSettings(spinsvc interfaces.SpinnakerService) *interfaces.ValidationSetting
type Env ¶
type Env struct { Namespaces []string `json:"namespaces,omitempty"` OmitNamespaces []string `json:"omitNamespaces,omitempty"` Kinds []string `json:"kinds,omitempty"` OmitKinds []string `json:"omitKinds,omitempty"` CustomResources []CustomKubernetesResource `json:"customResources,omitempty"` }
Click to show internal directories.
Click to hide internal directories.