Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PodSecurityModeEnforcing ... PodSecurityModeEnforcing = "pod-security.kubernetes.io/enforce" // PodSecurityModeWarn ... PodSecurityModeWarn = "pod-security.kubernetes.io/warn" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Maintainers []Team `yaml:"maintainers"` AdminNamespaces []string `yaml:"adminnamespaces"` LimitCPU string `yaml:"limitcpu"` LimitMemory string `yaml:"limitmemory"` RequestCPU string `yaml:"requestcpu"` RequestMemory string `yaml:"requestmemory"` }
Config ...
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller contains controller variables that is needed to work in class.
func NewNamespaceWatcher ¶
func NewNamespaceWatcher(kclient *kubernetes.Clientset, configFile string) (*Controller, error)
NewNamespaceWatcher creates a new nsController.
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{}, wg *sync.WaitGroup)
Run starts the process for listening for event changes and acting upon those changes.
Click to show internal directories.
Click to hide internal directories.