Documentation
¶
Index ¶
- type ClusterScopedControlLogging
- type Config
- type ControlLogging
- type Controller
- func (c *Controller) IsControlled(namespace string) bool
- func (c *Controller) Name() string
- func (c *Controller) Namespace() string
- func (c *Controller) Run(stopCh <-chan struct{}) error
- func (c *Controller) SetAnnotations(namespace string, name string, kind string, annotations map[string]string) bool
- func (c *Controller) SetLabels(namespace string, name string, kind string, labels map[string]string) bool
- func (c *Controller) UID() string
- type NamespaceConfig
- type NamespaceScopedControlLogging
- type OneTimeControlLogging
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterScopedControlLogging ¶
type ClusterScopedControlLogging struct {
// contains filtered or unexported fields
}
func (*ClusterScopedControlLogging) NamespaceNotControlled ¶
func (l *ClusterScopedControlLogging) NamespaceNotControlled(namespace string, actualControllerName string)
type Config ¶
type Config struct { GrantConfig *grants.GrantConfig SecuredAccessConfig *securedaccess.Config Namespace string Kubeconfig string WatchNamespace string Name string RequireExplicitControl bool }
func (*Config) WatchingAllNamespaces ¶
type ControlLogging ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(cli internalclient.Clients, config *Config) (*Controller, error)
func (*Controller) IsControlled ¶
func (c *Controller) IsControlled(namespace string) bool
func (*Controller) Name ¶
func (c *Controller) Name() string
func (*Controller) Namespace ¶
func (c *Controller) Namespace() string
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{}) error
func (*Controller) SetAnnotations ¶
func (*Controller) UID ¶
func (c *Controller) UID() string
type NamespaceConfig ¶
type NamespaceConfig struct {
// contains filtered or unexported fields
}
type NamespaceScopedControlLogging ¶
type NamespaceScopedControlLogging struct {
// contains filtered or unexported fields
}
func (*NamespaceScopedControlLogging) NamespaceNotControlled ¶
func (l *NamespaceScopedControlLogging) NamespaceNotControlled(namespace string, actualControllerName string)
type OneTimeControlLogging ¶
type OneTimeControlLogging struct {
// contains filtered or unexported fields
}
func (*OneTimeControlLogging) NamespaceNotControlled ¶
func (l *OneTimeControlLogging) NamespaceNotControlled(namespace string, actualControllerName string)
Click to show internal directories.
Click to hide internal directories.