helper

package
v1.24.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 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"

Variables

This section is empty.

Functions

func CreateOrUpdateNetworkPolicy

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

CreateOrUpdateNetworkPolicy creates or updates 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