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.
Click to show internal directories.
Click to hide internal directories.