Documentation ¶
Index ¶
- Constants
- type Reconciler
- func (r *Reconciler) AddToManager(mgr manager.Manager, gardenCluster, seedCluster cluster.Cluster) error
- func (r *Reconciler) ClusterPredicate() predicate.Predicate
- func (r *Reconciler) IsKubernetesEndpoint() predicate.Predicate
- func (r *Reconciler) MapObjectToName(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request
- func (r *Reconciler) MapObjectToNamespace(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request
- func (r *Reconciler) MapToNamespaces(ctx context.Context, log logr.Logger, _ client.Reader, _ client.Object) []reconcile.Request
- func (r *Reconciler) NetworkPolicyPredicate() predicate.Predicate
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Constants ¶
const ControllerName = "networkpolicy"
ControllerName is the name of this controller.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶ added in v1.60.0
type Reconciler struct { GardenClient client.Client RuntimeClient client.Client Config config.NetworkPolicyControllerConfiguration Resolver hostnameresolver.HostResolver ResolverUpdate <-chan event.GenericEvent SeedNetworks gardencore.SeedNetworks }
Reconciler implements the reconcile.Reconcile interface for namespace reconciliation.
func (*Reconciler) AddToManager ¶ added in v1.60.0
func (r *Reconciler) AddToManager(mgr manager.Manager, gardenCluster, seedCluster cluster.Cluster) error
AddToManager adds Reconciler to the given manager.
func (*Reconciler) ClusterPredicate ¶ added in v1.64.0
func (r *Reconciler) ClusterPredicate() predicate.Predicate
ClusterPredicate is a predicate which returns 'true' when the network CIDRs of a shoot cluster change.
func (*Reconciler) IsKubernetesEndpoint ¶ added in v1.60.0
func (r *Reconciler) IsKubernetesEndpoint() predicate.Predicate
IsKubernetesEndpoint returns a predicate which evaluates if the object is the kubernetes endpoint.
func (*Reconciler) MapObjectToName ¶ added in v1.64.0
func (r *Reconciler) MapObjectToName(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request
MapObjectToName is a mapper function which maps an object to its name.
func (*Reconciler) MapObjectToNamespace ¶ added in v1.60.0
func (r *Reconciler) MapObjectToNamespace(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request
MapObjectToNamespace is a mapper function which maps an object to its namespace.
func (*Reconciler) MapToNamespaces ¶ added in v1.60.0
func (r *Reconciler) MapToNamespaces(ctx context.Context, log logr.Logger, _ client.Reader, _ client.Object) []reconcile.Request
MapToNamespaces is a mapper function which returns requests for all relevant namespaces.
func (*Reconciler) NetworkPolicyPredicate ¶ added in v1.64.0
func (r *Reconciler) NetworkPolicyPredicate() predicate.Predicate
NetworkPolicyPredicate is a predicate which returns true in case the network policy name matches with one of those managed by this reconciler.