factory

package
v0.0.0-...-fb5a1ab Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DNSPortName = "dns"

Variables

This section is empty.

Functions

func NetworkPolicyTypeAllowAllIngressEgress

func NetworkPolicyTypeAllowAllIngressEgress(npBuilder *runtime.NetworkPolicyBuilder) *runtime.NetworkPolicyBuilder

NetworkPolicyTypeAllowAllIngressEgress configures the network policy to allow all ingress and egress traffic.

func NetworkPolicyTypeAllowIngressMetrics

func NetworkPolicyTypeAllowIngressMetrics(npBuilder *runtime.NetworkPolicyBuilder) *runtime.NetworkPolicyBuilder

NetworkPolicyTypeAllowIngressMetrics configures the network policy to allow ingress on the metrics port only and deny all egress traffic.

func NetworkPolicyTypeRestrictIngressEgressWithProtocols

func NetworkPolicyTypeRestrictIngressEgressWithProtocols(npBuilder *runtime.NetworkPolicyBuilder, ingressPorts []int32, egressPorts []PortProtocol) *runtime.NetworkPolicyBuilder

NetworkPolicyTypeRestrictIngressEgressWithProtocols configures the network policy to restrict ingress and egress traffic It allows ingress on specified ports and egress to specified ports with their protocols.

func NewDaemonSet

func NewDaemonSet(namespace, daemonsetName, instanceName, component, impl string, maxUnavailable intstr.IntOrString, podSpec core.PodSpec, visitors ...func(o runtime.Object)) *apps.DaemonSet

NewDaemonSet stubs an instance of a daemonset

func NewDeployment

func NewDeployment(namespace, deploymentName, component, impl string, replicas int32, podSpec core.PodSpec, visitors ...func(o runtime.Object)) *apps.Deployment

NewDeployment stubs an instance of a deployment

func NewNetworkPolicyWithProtocolPorts

func NewNetworkPolicyWithProtocolPorts(namespace, policyName, instanceName, component, policyRuleSet string, egressPorts []PortProtocol, ingressPorts []int32, visitors ...func(o runtime.Object)) *networkingv1.NetworkPolicy

NewNetworkPolicyWithProtocolPorts creates a NetworkPolicy with protocol-aware port configuration.

func NewService

func NewService(serviceName string, namespace string, selectorComponent, instanceName string, servicePorts []core.ServicePort, visitors ...func(o runtime.Object)) *core.Service

NewService stubs an instance of a Service

Types

type ForwarderResourceNames

type ForwarderResourceNames struct {
	CommonName                       string
	SecretMetrics                    string
	ConfigMap                        string
	MetadataReaderClusterRoleBinding string
	CaTrustBundle                    string
	ServiceAccount                   string
	InternalLogStoreSecret           string
	ServiceAccountTokenSecret        string
	ForwarderName                    string
	Secrets                          string
	AwsCredentialsFile               string
}

func ResourceNames

ResourceNames is a factory for naming of objects based on ClusterLogForwarder namespace and name

func (*ForwarderResourceNames) DaemonSetName

func (f *ForwarderResourceNames) DaemonSetName() string

func (*ForwarderResourceNames) GenerateInputServiceName

func (f *ForwarderResourceNames) GenerateInputServiceName(serviceName string) string

GenerateInputServiceName addresses HTTP input service name uniqueness by concatenating the common name with the input service name

type PortProtocol

type PortProtocol struct {
	Port     int32
	Protocol corev1.Protocol
}

PortProtocol represents a port with its associated protocol

Jump to

Keyboard shortcuts

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