Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BankVaultsConfig ¶
type BankVaultsConfig struct { Auth []Auth `json:"auth"` Policies []Policy `json:"policies"` Secrets []Secret `json:"secrets,omitempty"` }
func (BankVaultsConfig) GetDBRole ¶
func (bvConfig BankVaultsConfig) GetDBRole(name string) (DBRole, error)
func (BankVaultsConfig) GetDBSecret ¶
func (bvConfig BankVaultsConfig) GetDBSecret() (*Secret, error)
type DBConfig ¶
type DBConfig struct { Name string `json:"name"` PluginName string `json:"plugin_name"` MaxOpenConnections int `json:"max_open_connections,omitempty"` MaxIdleConnections int `json:"max_idle_connections,omitempty"` MaxConnectionLifetime string `json:"max_connection_lifetime,omitempty"` ConnectionUrl string `json:"connection_url"` AllowedRoles []string `json:"allowed_roles"` Username string `json:"username"` Password string `json:"password"` }
type DBConfiguration ¶
func (DBConfiguration) GetDBConfig ¶
func (dbConfiguration DBConfiguration) GetDBConfig(targetDb string) (*DBConfig, error)
type Role ¶
type Role struct { BoundServiceAccountNames string `json:"bound_service_account_names"` BoundServiceAccountNamespaces interface{} `json:"bound_service_account_namespaces"` Name string `json:"name"` TokenPolicies []string `json:"token_policies"` TokenTtl string `json:"token_ttl,omitempty"` TokenMaxTtl string `json:"token_max_ttl,omitempty"` TokenBoundCidrs []string `json:"token_bound_cidrs,omitempty"` TokenExplicitMaxTtl string `json:"token_explicit_max_ttl,omitempty"` TokenNoDefaultPolicy bool `json:"token_no_default_policy,omitempty"` TokenNumUses int `json:"token_num_uses,omitempty"` TokenPeriod string `json:"token_period,omitempty"` TokenType string `json:"token_type,omitempty"` }
type Secret ¶
type Secret struct { Type string `json:"type"` Configuration DBConfiguration `json:"configuration"` }
type ServiceAccountReconciler ¶
ServiceAccountReconciler reconciles a ServiceAccount object
func (*ServiceAccountReconciler) SetupWithManager ¶
func (r *ServiceAccountReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.