Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeServiceAcctMonitor ¶
func InitializeServiceAcctMonitor() error
InitializeServiceAcctMonitor with Kubernetes configuration
Types ¶
type Mutator ¶
type Mutator struct { SideCars map[string]*SideCar ShawarmaImage string ShawarmaServiceAcctName string ShawarmaSecretTokenName string ServiceAcctMonitors *ServiceAcctMonitorSet }
Mutator is the interface for mutating webhook
type ServiceAcctMonitor ¶
type ServiceAcctMonitor struct { Namespace string ServiceAccountName string SecretName string // contains filtered or unexported fields }
ServiceAcctMonitor observes a service account and keeps SecretName up to date
func NewServiceAcctMonitor ¶
func NewServiceAcctMonitor(namespace string, serviceAccountName string) (*ServiceAcctMonitor, error)
NewServiceAcctMonitor Create a new service account monitor
func (*ServiceAcctMonitor) Start ¶
func (monitor *ServiceAcctMonitor) Start() error
Start the service account monitor
func (*ServiceAcctMonitor) WaitForFirstUpdate ¶
func (monitor *ServiceAcctMonitor) WaitForFirstUpdate(timeout time.Duration) bool
WaitForFirstUpdate returns true if the first update was received, false if timed out
type ServiceAcctMonitorSet ¶
type ServiceAcctMonitorSet struct { Monitors []*ServiceAcctMonitor // contains filtered or unexported fields }
ServiceAcctMonitorSet contains a set of ServiceAcctMonitor
func (*ServiceAcctMonitorSet) Get ¶
func (set *ServiceAcctMonitorSet) Get(namespace string, serviceAccountName string, timeout time.Duration) (*ServiceAcctMonitor, error)
Get a service account monitor, or create if missing
func (*ServiceAcctMonitorSet) StopAll ¶
func (set *ServiceAcctMonitorSet) StopAll()
StopAll service account monitors
Click to show internal directories.
Click to hide internal directories.