policy

package
v0.0.0-...-332ca20 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointGroupIndexSecurityPolicyFunc

func EndpointGroupIndexSecurityPolicyFunc(o runtime.Object) []string

EndpointGroupIndexSecurityPolicyFunc return the SecurityPolicy reference EndpointGroup names

func EndpointIndexSecurityPolicyFunc

func EndpointIndexSecurityPolicyFunc(o runtime.Object) []string

func GenerateGroupName

func GenerateGroupName(spec *groupv1alpha1.EndpointGroupSpec) string

GenerateGroupName use spec hash as EndpointGroup name

Types

type PolicyReconciler

type PolicyReconciler struct {
	client.Client
	ReadClient client.Reader
	Scheme     *runtime.Scheme
	// contains filtered or unexported fields
}

func (*PolicyReconciler) GroupGenerateReconcile

func (r *PolicyReconciler) GroupGenerateReconcile(req ctrl.Request) (ctrl.Result, error)

GroupGenerateReconcile generate EndpointGroups by SecurityPolicy selector.

func (*PolicyReconciler) ReconcileEndpoint

func (r *PolicyReconciler) ReconcileEndpoint(req ctrl.Request) (ctrl.Result, error)

func (*PolicyReconciler) ReconcileGlobalPolicy

func (r *PolicyReconciler) ReconcileGlobalPolicy(_ ctrl.Request) (ctrl.Result, error)

ReconcileGlobalPolicy handle GlobalPolicy. At most one GlobalPolicy at the same time, so we full sync PolicyRules every reconcile.

func (*PolicyReconciler) ReconcilePatch

func (r *PolicyReconciler) ReconcilePatch(req ctrl.Request) (ctrl.Result, error)

func (*PolicyReconciler) ReconcilePolicy

func (r *PolicyReconciler) ReconcilePolicy(req ctrl.Request) (ctrl.Result, error)

func (*PolicyReconciler) SetupWithManager

func (r *PolicyReconciler) SetupWithManager(mgr ctrl.Manager) error

Directories

Path Synopsis
Package cache contains cache storage policy controller needed.
Package cache contains cache storage policy controller needed.

Jump to

Keyboard shortcuts

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