Documentation ¶
Index ¶
- func BuildCiliumPolicy(dda metav1.Object, site string, ddURL string, hostNetwork bool, ...) (string, string, []cilium.NetworkPolicySpec)
- func BuildKubernetesNetworkPolicy(dda metav1.Object, componentName v2alpha1.ComponentName) (string, string, metav1.LabelSelector, []netv1.PolicyType, ...)
- func GetNetworkPolicyMetadata(dda metav1.Object, componentName v2alpha1.ComponentName) (policyName string, podSelector metav1.LabelSelector)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCiliumPolicy ¶
func BuildCiliumPolicy(dda metav1.Object, site string, ddURL string, hostNetwork bool, dnsSelectorEndpoints []metav1.LabelSelector, componentName v2alpha1.ComponentName) (string, string, []cilium.NetworkPolicySpec)
BuildCiliumPolicy creates the base node agent, DCA, or CCR cilium network policy
func BuildKubernetesNetworkPolicy ¶
func BuildKubernetesNetworkPolicy(dda metav1.Object, componentName v2alpha1.ComponentName) (string, string, metav1.LabelSelector, []netv1.PolicyType, []netv1.NetworkPolicyIngressRule, []netv1.NetworkPolicyEgressRule)
BuildKubernetesNetworkPolicy creates the base node agent kubernetes network policy
func GetNetworkPolicyMetadata ¶
func GetNetworkPolicyMetadata(dda metav1.Object, componentName v2alpha1.ComponentName) (policyName string, podSelector metav1.LabelSelector)
GetNetworkPolicyMetadata generates a label selector based on component
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.