commatrixcreator

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandStaticEntriesByPool added in v0.0.6

func ExpandStaticEntriesByPool(staticEntries []types.ComDetails, poolToRoles map[string][]string) []types.ComDetails

expandStaticEntriesByPool uses MCP-derived role per pool.

Types

type CommunicationMatrixCreator

type CommunicationMatrixCreator struct {
	// contains filtered or unexported fields
}

func New

func New(
	platformType configv1.PlatformType,
	topology configv1.TopologyMode,
	opts ...Option,
) *CommunicationMatrixCreator

func (*CommunicationMatrixCreator) CreateEndpointMatrix

func (cm *CommunicationMatrixCreator) CreateEndpointMatrix() (*types.ComMatrix, error)

CreateEndpointMatrix initializes a ComMatrix using Kubernetes cluster data. It takes kubeconfigPath for cluster access to fetch EndpointSlice objects, detailing open ports for ingress traffic. Custom entries from a JSON file can be added to the matrix by setting `customEntriesPath`. Returns a pointer to ComMatrix and error. Entries include traffic direction, protocol, port number, namespace, service name, pod, container, node role, and flow optionality for OpenShift.

func (*CommunicationMatrixCreator) GetComMatrixFromFile added in v0.0.5

func (cm *CommunicationMatrixCreator) GetComMatrixFromFile() (*types.ComMatrix, error)

type Option added in v0.0.6

type Option func(*CommunicationMatrixCreator)

func WithCustomEntries added in v0.0.6

func WithCustomEntries(path, format string) Option

func WithDHCP added in v0.0.6

func WithDHCP() Option

func WithExporter added in v0.0.6

func WithExporter(
	e *endpointslices.EndpointSlicesExporter,
) Option

func WithIPv6 added in v0.0.6

func WithIPv6() Option

func WithUtilsHelpers added in v0.0.6

func WithUtilsHelpers(u utils.UtilsInterface) Option

Jump to

Keyboard shortcuts

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