helper

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 9 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(kubernetesEndpoints *corev1.Endpoints) []networkingv1.NetworkPolicyEgressRule

GetEgressRules creates Network Policy egress rules from a given endpoint resource

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