controller

package
v0.0.0-...-274c51d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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 BoundConfig

func BoundConfig(flags *flag.FlagSet) (*Config, error)

func (*Config) WatchingAllNamespaces

func (c *Config) WatchingAllNamespaces() bool

type ControlLogging

type ControlLogging interface {
	NamespaceNotControlled(namespace string, actualControllerName string)
}

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 (c *Controller) SetAnnotations(namespace string, name string, kind string, annotations map[string]string) bool

func (*Controller) SetLabels

func (c *Controller) SetLabels(namespace string, name string, kind string, labels map[string]string) bool

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL