factory

package
v0.0.0-...-be906d2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContainer

func NewContainer(containerName string, imageName string, pullPolicy core.PullPolicy, resources core.ResourceRequirements) core.Container

NewContainer stubs an instance of a Container for cluster logging. Note the imageName is an alias for a well-known logging image(e.g. fluentd)

func NewDaemonSet

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

NewDaemonSet stubs an instance of a daemonset

func NewDeployment

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

NewDeployment stubs an instance of a deployment

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
}

func GenerateResourceNames

func GenerateResourceNames(clf logging.ClusterLogForwarder) *ForwarderResourceNames

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

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

Jump to

Keyboard shortcuts

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