networkpolicy

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL