networkpolicyrecommendation

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Spark Application CRUD functions, for unit tests
	CreateSparkApplication   = controllerutil.CreateSparkApplication
	DeleteSparkApplication   = controllerutil.DeleteSparkApplication
	ListSparkApplication     = controllerutil.ListSparkApplicationWithLabel
	GetSparkApplication      = controllerutil.GetSparkApplication
	GetSparkMonitoringSvcDNS = controllerutil.GetSparkMonitoringSvcDNS
)

Functions

This section is empty.

Types

type NPRecommendationController

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

func NewNPRecommendationController

func NewNPRecommendationController(
	crdClient versioned.Interface,
	kubeClient kubernetes.Interface,
	npRecommendationInformer crdv1a1informers.NetworkPolicyRecommendationInformer,
) *NPRecommendationController

func (*NPRecommendationController) CreateNetworkPolicyRecommendation

func (c *NPRecommendationController) CreateNetworkPolicyRecommendation(namespace string, networkPolicyRecommendation *crdv1alpha1.NetworkPolicyRecommendation) (*crdv1alpha1.NetworkPolicyRecommendation, error)

func (*NPRecommendationController) DeleteNetworkPolicyRecommendation

func (c *NPRecommendationController) DeleteNetworkPolicyRecommendation(namespace, name string) error

func (*NPRecommendationController) GetNetworkPolicyRecommendation

func (c *NPRecommendationController) GetNetworkPolicyRecommendation(namespace, name string) (*crdv1alpha1.NetworkPolicyRecommendation, error)

func (*NPRecommendationController) IfNPRexists added in v0.6.0

func (c *NPRecommendationController) IfNPRexists(namespace, id string) error

func (*NPRecommendationController) ListNetworkPolicyRecommendation

func (c *NPRecommendationController) ListNetworkPolicyRecommendation(namespace string) ([]*crdv1alpha1.NetworkPolicyRecommendation, error)

func (*NPRecommendationController) Run

func (c *NPRecommendationController) Run(stopCh <-chan struct{})

Run will create defaultWorkers workers (go routines) which will process the Service events from the workqueue.

type NamespacedId

type NamespacedId struct {
	Namespace string
	Id        string
}

Jump to

Keyboard shortcuts

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