Documentation
¶
Index ¶
- Constants
- func NetworkPolicyTypeAllowAllIngressEgress(npBuilder *runtime.NetworkPolicyBuilder) *runtime.NetworkPolicyBuilder
- func NetworkPolicyTypeAllowIngressMetrics(npBuilder *runtime.NetworkPolicyBuilder) *runtime.NetworkPolicyBuilder
- func NetworkPolicyTypeRestrictIngressEgressWithProtocols(npBuilder *runtime.NetworkPolicyBuilder, ingressPorts []int32, ...) *runtime.NetworkPolicyBuilder
- func NewDaemonSet(namespace, daemonsetName, instanceName, component, impl string, ...) *apps.DaemonSet
- func NewDeployment(namespace, deploymentName, component, impl string, replicas int32, ...) *apps.Deployment
- func NewNetworkPolicyWithProtocolPorts(namespace, policyName, instanceName, component, policyRuleSet string, ...) *networkingv1.NetworkPolicy
- func NewService(serviceName string, namespace string, selectorComponent, instanceName string, ...) *core.Service
- type ForwarderResourceNames
- type PortProtocol
Constants ¶
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.
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 ¶
func ResourceNames(clf obsv1.ClusterLogForwarder) *ForwarderResourceNames
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 ¶
PortProtocol represents a port with its associated protocol