Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeComponentPolicies ¶
func MakeComponentPolicies(params ComponentPolicyParams) []map[string]any
MakeComponentPolicies returns a NetworkPolicy for a component with ingress rules based on declared endpoint visibility. Egress is unrestricted.
Types ¶
type ComponentPolicyParams ¶
type ComponentPolicyParams struct {
Namespace string // data plane namespace name
CPNamespace string // control plane namespace name
Environment string // environment name (e.g., "development")
ComponentName string // for naming the policy
PodSelectors map[string]string // platform pod selectors
Endpoints map[string]openchoreov1alpha1.WorkloadEndpoint // from workload spec
}
ComponentPolicyParams holds parameters for generating per-component NetworkPolicies with ingress rules based on endpoint visibility.
Click to show internal directories.
Click to hide internal directories.