controller

package
v0.0.0-...-a93d98a Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(array []string, word string) bool

Contains is checking does array contain single word.

Types

type Config

type Config struct {
	Rules            []NetworkRule `json:"rules"`
	IgnoreAnnotation string        `json:"ignoreAnnotation"`
}

Config ...

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller contains controller variables that is needed to work in class.

func NewNetworkWatcher

func NewNetworkWatcher(kclient *kubernetes.Clientset, configFile string) *Controller

NewNetworkWatcher 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.

type NetworkRule

type NetworkRule struct {
	IgnoredNamespaces []string                 `json:"ignoredNamespaces"`
	Spec              *networkv1.NetworkPolicy `json:"spec"`
}

NetworkRule ...

Jump to

Keyboard shortcuts

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