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 WithExporter ¶ added in v0.0.6
func WithExporter( e *endpointslices.EndpointSlicesExporter, ) Option
func WithUtilsHelpers ¶ added in v0.0.6
func WithUtilsHelpers(u utils.UtilsInterface) Option
Click to show internal directories.
Click to hide internal directories.