kube

package
v0.0.0-...-7061800 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxEventSize = 100 * 1024 // 100KB per k8s.io/kubernetes/apiserver/pkg/server/options/audit.go
)

Variables

This section is empty.

Functions

func DeepEqualWithDiff

func DeepEqualWithDiff(t *testing.T, expected, actual runtime.Object)

DoDiff deep-compares two `runtime.Object`s and fails the `t`est with a useful message (showing the diff) if they differ.

func GenerateConfigMaps

func GenerateConfigMaps(instance *sfv1alpha1.SplunkForwarder, namespacedName types.NamespacedName, clusterid string) []*corev1.ConfigMap

GenerateConfigMaps generates config maps based on the values in our CRD

func GenerateDaemonSet

func GenerateDaemonSet(instance *sfv1alpha1.SplunkForwarder) *appsv1.DaemonSet

GenerateDaemonSet returns a daemonset that can be created with the oc client

func GenerateDeployment

func GenerateDeployment(instance *sfv1alpha1.SplunkForwarder) *appsv1.Deployment

GenerateDeployment returns a deployment that can be created with the oc client

func GenerateFilteringConfigMap

func GenerateFilteringConfigMap(instance *sfv1alpha1.SplunkForwarder, namespacedName types.NamespacedName) *corev1.ConfigMap

GenerateFilteringConfigMap generates configmaps for the HF that applies the filtering options

func GenerateInternalConfigMap

func GenerateInternalConfigMap(instance *sfv1alpha1.SplunkForwarder, namespacedName types.NamespacedName) *corev1.ConfigMap

GenerateInternalConfigMap generates a configmap that will be used to setup internal forwarding from the SUF to the SHF

func GenerateService

func GenerateService(instance *sfv1alpha1.SplunkForwarder) *corev1.Service

GenerateService returns a service for the Heavy Forwarder so that the UF can connect to it

func GetHeavyForwarderVolumeMounts

func GetHeavyForwarderVolumeMounts(instance *sfv1alpha1.SplunkForwarder) []corev1.VolumeMount

GetHeavyForwarderVolumeMounts returns []corev1.VolumeMount that tells where each secret, and configmap gets mounted in the container

func GetVolumeMounts

func GetVolumeMounts(instance *sfv1alpha1.SplunkForwarder) []corev1.VolumeMount

GetVolumeMounts returns []corev1.VolumeMount that tells where each secret, configmap, and host mount gets mounted in the container

func GetVolumes

func GetVolumes(mountHost bool, mountSecret bool, instanceName string) []corev1.Volume

GetVolumes Returns an array of corev1.Volumes we want to attach It contains configmaps, secrets, and the host mount

Types

This section is empty.

Jump to

Keyboard shortcuts

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