Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ...
Click to show internal directories.
Click to hide internal directories.