helper

package
v1.59.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AllowToSeedAPIServer = "allow-to-seed-apiserver"

AllowToSeedAPIServer is the name of the Network Policy that allows egress to the Seed's Kubernetes API Server endpoints in the default namespace.

Variables

This section is empty.

Functions

func EnsureNetworkPolicy

func EnsureNetworkPolicy(ctx context.Context, seedClient client.Client, namespace string, egressRules []networkingv1.NetworkPolicyEgressRule) error

EnsureNetworkPolicy ensures the Network Policy 'allow-to-seed-apiserver' in the given namespace

func GetEgressRules

func GetEgressRules(subsets ...corev1.EndpointSubset) []networkingv1.NetworkPolicyEgressRule

GetEgressRules creates Network Policy egress rules from endpoint subsets.

func MutatePolicy

func MutatePolicy(policy *networkingv1.NetworkPolicy, egressRules []networkingv1.NetworkPolicyEgressRule)

MutatePolicy mutates a given network policy with given egress rules

Types

This section is empty.

Jump to

Keyboard shortcuts

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