Documentation
¶
Index ¶
- Constants
- func AppendEnvVarToEnvVarsIfNotAlreadyPresent(envVars []corev1.EnvVar, defaultEnvVar corev1.EnvVar) []corev1.EnvVar
- func ConstructContainerArgs(hnp *HumioNodePool, podEnvVars []corev1.EnvVar) ([]string, error)
- func ConstructESIngestIngress(hc *humiov1alpha1.HumioCluster, esHostname string) *networkingv1.Ingress
- func ConstructGeneralIngress(hc *humiov1alpha1.HumioCluster, hostname string) *networkingv1.Ingress
- func ConstructIngestIngress(hc *humiov1alpha1.HumioCluster, hostname string) *networkingv1.Ingress
- func ConstructNodeCertificate(hnp *HumioNodePool, nodeSuffix string) cmapi.Certificate
- func ConstructPod(hnp *HumioNodePool, humioNodeName string, attachments *podAttachments) (*corev1.Pod, error)
- func ConstructService(hnp *HumioNodePool) *corev1.Service
- func ConstructStreamingQueryIngress(hc *humiov1alpha1.HumioCluster, hostname string) *networkingv1.Ingress
- func EnvVarHasKey(envVars []corev1.EnvVar, key string) bool
- func EnvVarHasValue(envVars []corev1.EnvVar, key string, value string) bool
- func EnvVarValue(envVars []corev1.EnvVar, key string) string
- func FilterPodsByZoneName(ctx context.Context, c client.Client, podList []corev1.Pod, zoneName string) ([]corev1.Pod, error)
- func FilterPodsExcludePodsWithEmptyNodeName(podList []corev1.Pod) []corev1.Pod
- func FilterPodsExcludePodsWithPodRevisionOrPodHash(podList []corev1.Pod, podRevisionToExclude int, podHashToExclude string) []corev1.Pod
- func FindNextAvailablePvc(pvcList []corev1.PersistentVolumeClaim, podList []corev1.Pod, ...) (string, error)
- func FindPvcForPod(pvcList []corev1.PersistentVolumeClaim, pod corev1.Pod) (corev1.PersistentVolumeClaim, error)
- func GetDesiredCertHash(hnp *HumioNodePool) string
- func GetKeyWithHighestValue[K comparable, V constraints.Ordered](inputMap map[K]V) (K, error)
- func GetPodNameFromNodeUri(uri string) (string, error)
- func NewPodLifecycleState(hnp HumioNodePool) *podLifecycleState
- func NodePoolFilterDoesNotHaveNodes(nodePool *HumioNodePool) bool
- func NodePoolFilterHasNode(nodePool *HumioNodePool) bool
- func RemoveIntFromSlice(slice []int, value int) []int
- type CACert
- type HumioActionReconciler
- type HumioAggregateAlertReconciler
- type HumioAlertReconciler
- type HumioBootstrapTokenConfig
- type HumioBootstrapTokenReconciler
- type HumioBootstrapTokenSecretData
- type HumioClusterReconciler
- type HumioExternalClusterReconciler
- type HumioFilterAlertReconciler
- type HumioIngestTokenReconciler
- type HumioNodePool
- func (hnp *HumioNodePool) DataVolumePersistentVolumeClaimSpecTemplateIsSetByUser() bool
- func (hnp *HumioNodePool) GetAffinity() *corev1.Affinity
- func (hnp HumioNodePool) GetBootstrapTokenName() string
- func (hnp *HumioNodePool) GetClusterName() string
- func (hnp *HumioNodePool) GetCommonClusterLabels() map[string]string
- func (hnp *HumioNodePool) GetContainerLivenessProbe() *corev1.Probe
- func (hnp *HumioNodePool) GetContainerReadinessProbe() *corev1.Probe
- func (hnp *HumioNodePool) GetContainerSecurityContext() *corev1.SecurityContext
- func (hnp *HumioNodePool) GetContainerStartupProbe() *corev1.Probe
- func (hnp *HumioNodePool) GetDataVolumePersistentVolumeClaimPolicy() humiov1alpha1.HumioPersistentVolumeClaimPolicy
- func (hnp *HumioNodePool) GetDataVolumePersistentVolumeClaimSpecTemplate(pvcName string) corev1.VolumeSource
- func (hnp *HumioNodePool) GetDataVolumePersistentVolumeClaimSpecTemplateRAW() corev1.PersistentVolumeClaimSpec
- func (hnp *HumioNodePool) GetDataVolumeSource() corev1.VolumeSource
- func (hnp *HumioNodePool) GetDesiredBootstrapTokenHash() string
- func (hnp *HumioNodePool) GetDesiredPodHash() string
- func (hnp *HumioNodePool) GetDesiredPodRevision() int
- func (hnp *HumioNodePool) GetDigestPartitionsCount() int
- func (hnp *HumioNodePool) GetEnvironmentVariables() []corev1.EnvVar
- func (hnp *HumioNodePool) GetEnvironmentVariablesSource() []corev1.EnvFromSource
- func (hnp *HumioNodePool) GetExtraHumioVolumeMounts() []corev1.VolumeMount
- func (hnp *HumioNodePool) GetExtraKafkaConfigs() string
- func (hnp *HumioNodePool) GetExtraKafkaConfigsConfigMapName() string
- func (hnp *HumioNodePool) GetExtraVolumes() []corev1.Volume
- func (hnp *HumioNodePool) GetHelperImage() string
- func (hnp *HumioNodePool) GetHostname() string
- func (hnp *HumioNodePool) GetHumioESServicePort() int32
- func (hnp *HumioNodePool) GetHumioServiceAccountAnnotations() map[string]string
- func (hnp *HumioNodePool) GetHumioServiceAccountName() string
- func (hnp *HumioNodePool) GetHumioServiceAnnotations() map[string]string
- func (hnp *HumioNodePool) GetHumioServiceLabels() map[string]string
- func (hnp *HumioNodePool) GetHumioServicePort() int32
- func (hnp *HumioNodePool) GetIDPCertificateSecretName() string
- func (hnp *HumioNodePool) GetImage() string
- func (hnp *HumioNodePool) GetImagePullPolicy() corev1.PullPolicy
- func (hnp *HumioNodePool) GetImagePullSecrets() []corev1.LocalObjectReference
- func (hnp *HumioNodePool) GetImageSource() *humiov1alpha1.HumioImageSource
- func (hnp *HumioNodePool) GetIngress() humiov1alpha1.HumioClusterIngressSpec
- func (hnp *HumioNodePool) GetInitClusterRoleBindingName() string
- func (hnp *HumioNodePool) GetInitClusterRoleName() string
- func (hnp *HumioNodePool) GetInitServiceAccountName() string
- func (hnp HumioNodePool) GetInitServiceAccountSecretName() string
- func (hnp *HumioNodePool) GetLabelsForSecret(secretName string) map[string]string
- func (hnp *HumioNodePool) GetNamespace() string
- func (hnp *HumioNodePool) GetNodeCount() int
- func (hnp *HumioNodePool) GetNodePoolFeatureAllowedAPIRequestTypes() []string
- func (hnp *HumioNodePool) GetNodePoolLabels() map[string]string
- func (hnp *HumioNodePool) GetNodePoolName() string
- func (hnp *HumioNodePool) GetPath() string
- func (hnp *HumioNodePool) GetPodAnnotations() map[string]string
- func (hnp *HumioNodePool) GetPodDisruptionBudget() *humiov1alpha1.HumioPodDisruptionBudgetSpec
- func (hnp *HumioNodePool) GetPodDisruptionBudgetName() string
- func (hnp *HumioNodePool) GetPodLabels() map[string]string
- func (hnp *HumioNodePool) GetPodSecurityContext() *corev1.PodSecurityContext
- func (hnp *HumioNodePool) GetPriorityClassName() string
- func (hnp *HumioNodePool) GetProbeScheme() corev1.URIScheme
- func (hnp *HumioNodePool) GetResources() corev1.ResourceRequirements
- func (hnp *HumioNodePool) GetRolePermissions() string
- func (hnp *HumioNodePool) GetRolePermissionsConfigMapName() string
- func (hnp *HumioNodePool) GetServiceName() string
- func (hnp *HumioNodePool) GetServiceType() corev1.ServiceType
- func (hnp *HumioNodePool) GetShareProcessNamespace() *bool
- func (hnp *HumioNodePool) GetSidecarContainers() []corev1.Container
- func (hnp *HumioNodePool) GetState() string
- func (hnp *HumioNodePool) GetTLSSpec() *humiov1alpha1.HumioClusterTLSSpec
- func (hnp *HumioNodePool) GetTargetReplicationFactor() int
- func (hnp *HumioNodePool) GetTerminationGracePeriodSeconds() *int64
- func (hnp *HumioNodePool) GetTolerations() []corev1.Toleration
- func (hnp *HumioNodePool) GetTopologySpreadConstraints() []corev1.TopologySpreadConstraint
- func (hnp *HumioNodePool) GetUpdateStrategy() *humiov1alpha1.HumioUpdateStrategy
- func (hnp *HumioNodePool) GetViewGroupPermissions() string
- func (hnp *HumioNodePool) GetViewGroupPermissionsConfigMapName() string
- func (hnp *HumioNodePool) GetZoneUnderMaintenance() string
- func (hnp *HumioNodePool) HumioServiceAccountIsSetByUser() bool
- func (hnp *HumioNodePool) InitContainerDisabled() bool
- func (hnp *HumioNodePool) InitServiceAccountIsSetByUser() bool
- func (hnp *HumioNodePool) IsDownscalingFeatureEnabled() bool
- func (hnp *HumioNodePool) OkToDeletePvc() bool
- func (hnp *HumioNodePool) PVCsEnabled() bool
- func (hnp *HumioNodePool) SetImage(image string)
- func (hnp *HumioNodePool) TLSEnabled() bool
- type HumioNodePoolList
- type HumioParserReconciler
- type HumioRepositoryReconciler
- type HumioScheduledSearchReconciler
- type HumioVersion
- type HumioViewReconciler
- type Option
- type StatusOptions
Constants ¶
const ( // BootstrapTokenSecretHashedTokenName is the name of the hashed token key inside the bootstrap token secret BootstrapTokenSecretHashedTokenName = "hashedToken" // BootstrapTokenSecretSecretName is the name of the secret key inside the bootstrap token secret BootstrapTokenSecretSecretName = "secret" )
const ( // Set on Pod objects PodHashAnnotation = "humio.com/pod-hash" PodRevisionAnnotation = "humio.com/pod-revision" BootstrapTokenHashAnnotation = "humio.com/bootstrap-token-hash" // #nosec G101 )
const ( HumioPortName = "http" HumioPort = 8080 ElasticPortName = "es" ElasticPort = 9200 ExtraKafkaPropertiesFilename = "extra-kafka-properties.properties" ViewGroupPermissionsFilename = "view-group-permissions.json" RolePermissionsFilename = "role-permissions.json" HumioContainerName = "humio" InitContainerName = "humio-init" // namespaced resources: HumioServiceAccountNameSuffix = "humio" // nodepool internal NodePoolFeatureAllowedAPIRequestType = "OperatorInternal" )
const ( HumioDataPath = "/data/humio-data" HumioDataVolumeName = "humio-data" )
const (
HumioVersionMinimumSupported = "1.130.0"
)
const ( // MaximumMinReadyRequeue The maximum requeue time to set for the MinReadySeconds functionality - this is to avoid a scenario where we // requeue for hours into the future. MaximumMinReadyRequeue = time.Second * 300 )
const (
PodConditionReasonUnschedulable = "Unschedulable"
)
Variables ¶
This section is empty.
Functions ¶
func ConstructContainerArgs ¶
func ConstructContainerArgs(hnp *HumioNodePool, podEnvVars []corev1.EnvVar) ([]string, error)
ConstructContainerArgs returns the container arguments for the Humio pods. We want to grab a UUID from zookeeper only when using ephemeral disks. If we're using persistent storage, then we rely on Humio to generate the UUID. Note that relying on PVCs may not be good enough here as it's possible to have persistent storage using hostPath. For this reason, we rely on the USING_EPHEMERAL_DISKS environment variable.
func ConstructESIngestIngress ¶
func ConstructESIngestIngress(hc *humiov1alpha1.HumioCluster, esHostname string) *networkingv1.Ingress
func ConstructGeneralIngress ¶
func ConstructGeneralIngress(hc *humiov1alpha1.HumioCluster, hostname string) *networkingv1.Ingress
func ConstructIngestIngress ¶
func ConstructIngestIngress(hc *humiov1alpha1.HumioCluster, hostname string) *networkingv1.Ingress
func ConstructNodeCertificate ¶
func ConstructNodeCertificate(hnp *HumioNodePool, nodeSuffix string) cmapi.Certificate
func ConstructPod ¶
func ConstructPod(hnp *HumioNodePool, humioNodeName string, attachments *podAttachments) (*corev1.Pod, error)
func ConstructService ¶
func ConstructService(hnp *HumioNodePool) *corev1.Service
func ConstructStreamingQueryIngress ¶
func ConstructStreamingQueryIngress(hc *humiov1alpha1.HumioCluster, hostname string) *networkingv1.Ingress
func EnvVarValue ¶
EnvVarValue returns the value of the given environment variable if the environment variable is not preset, return empty string
func FilterPodsByZoneName ¶
func FindNextAvailablePvc ¶
func FindPvcForPod ¶
func FindPvcForPod(pvcList []corev1.PersistentVolumeClaim, pod corev1.Pod) (corev1.PersistentVolumeClaim, error)
func GetDesiredCertHash ¶
func GetDesiredCertHash(hnp *HumioNodePool) string
func GetKeyWithHighestValue ¶
func GetKeyWithHighestValue[K comparable, V constraints.Ordered](inputMap map[K]V) (K, error)
GetKeyWithHighestValue returns the key corresponding to the highest value in a map. In case multiple keys have the same value, the first key is returned.
An error is returned if the passed map is empty.
func GetPodNameFromNodeUri ¶
GetPodNameFromNodeUri extracts and returns the pod name from a given URI string. This is done by extracting the hostname from the URI, splitting it against the "." string, and returning the first part.
Examples:
- for https://cloud-test-core-xbattq.svc.namespace:8080, cloud-test-core-xbattq is returned
- for http://cloud-test-core-xbattq:8080, cloud-test-core-xbattq is returned
An error is returned in case the URI cannot be parsed, or if the hostname string split has 0 parts
func NewPodLifecycleState ¶
func NewPodLifecycleState(hnp HumioNodePool) *podLifecycleState
func NodePoolFilterDoesNotHaveNodes ¶
func NodePoolFilterDoesNotHaveNodes(nodePool *HumioNodePool) bool
func NodePoolFilterHasNode ¶
func NodePoolFilterHasNode(nodePool *HumioNodePool) bool
func RemoveIntFromSlice ¶
Types ¶
type HumioActionReconciler ¶
type HumioActionReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioActionReconciler reconciles a HumioAction object
func (*HumioActionReconciler) SetupWithManager ¶
func (r *HumioActionReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioAggregateAlertReconciler ¶
type HumioAggregateAlertReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioAggregateAlertReconciler reconciles a HumioAggregateAlert object
func (*HumioAggregateAlertReconciler) SetupWithManager ¶
func (r *HumioAggregateAlertReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioAlertReconciler ¶
type HumioAlertReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioAlertReconciler reconciles a HumioAlert object
func (*HumioAlertReconciler) SetupWithManager ¶
func (r *HumioAlertReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioBootstrapTokenConfig ¶
type HumioBootstrapTokenConfig struct { BootstrapToken *humiov1alpha1.HumioBootstrapToken ManagedHumioCluster *humiov1alpha1.HumioCluster }
func NewHumioBootstrapTokenConfig ¶
func NewHumioBootstrapTokenConfig(bootstrapToken *humiov1alpha1.HumioBootstrapToken, managedHumioCluster *humiov1alpha1.HumioCluster) HumioBootstrapTokenConfig
type HumioBootstrapTokenReconciler ¶
type HumioBootstrapTokenReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger Namespace string }
HumioBootstrapTokenReconciler reconciles a HumioBootstrapToken object
func (*HumioBootstrapTokenReconciler) SetupWithManager ¶
func (r *HumioBootstrapTokenReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioClusterReconciler ¶
type HumioClusterReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioClusterReconciler reconciles a HumioCluster object
func (*HumioClusterReconciler) Reconcile ¶
func (r *HumioClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
nolint:gocyclo
func (*HumioClusterReconciler) SetupWithManager ¶
func (r *HumioClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioExternalClusterReconciler ¶
type HumioExternalClusterReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioExternalClusterReconciler reconciles a HumioExternalCluster object
func (*HumioExternalClusterReconciler) SetupWithManager ¶
func (r *HumioExternalClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioFilterAlertReconciler ¶
type HumioFilterAlertReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioFilterAlertReconciler reconciles a HumioFilterAlert object
func (*HumioFilterAlertReconciler) SetupWithManager ¶
func (r *HumioFilterAlertReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioIngestTokenReconciler ¶
type HumioIngestTokenReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioIngestTokenReconciler reconciles a HumioIngestToken object
func (*HumioIngestTokenReconciler) SetupWithManager ¶
func (r *HumioIngestTokenReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioNodePool ¶
type HumioNodePool struct {
// contains filtered or unexported fields
}
func NewHumioNodeManagerFromHumioCluster ¶
func NewHumioNodeManagerFromHumioCluster(hc *humiov1alpha1.HumioCluster) *HumioNodePool
func NewHumioNodeManagerFromHumioNodePool ¶
func NewHumioNodeManagerFromHumioNodePool(hc *humiov1alpha1.HumioCluster, hnp *humiov1alpha1.HumioNodePoolSpec) *HumioNodePool
func (*HumioNodePool) DataVolumePersistentVolumeClaimSpecTemplateIsSetByUser ¶
func (hnp *HumioNodePool) DataVolumePersistentVolumeClaimSpecTemplateIsSetByUser() bool
func (*HumioNodePool) GetAffinity ¶
func (hnp *HumioNodePool) GetAffinity() *corev1.Affinity
func (HumioNodePool) GetBootstrapTokenName ¶
func (hnp HumioNodePool) GetBootstrapTokenName() string
func (*HumioNodePool) GetClusterName ¶
func (hnp *HumioNodePool) GetClusterName() string
func (*HumioNodePool) GetCommonClusterLabels ¶
func (hnp *HumioNodePool) GetCommonClusterLabels() map[string]string
func (*HumioNodePool) GetContainerLivenessProbe ¶
func (hnp *HumioNodePool) GetContainerLivenessProbe() *corev1.Probe
func (*HumioNodePool) GetContainerReadinessProbe ¶
func (hnp *HumioNodePool) GetContainerReadinessProbe() *corev1.Probe
func (*HumioNodePool) GetContainerSecurityContext ¶
func (hnp *HumioNodePool) GetContainerSecurityContext() *corev1.SecurityContext
func (*HumioNodePool) GetContainerStartupProbe ¶
func (hnp *HumioNodePool) GetContainerStartupProbe() *corev1.Probe
func (*HumioNodePool) GetDataVolumePersistentVolumeClaimPolicy ¶
func (hnp *HumioNodePool) GetDataVolumePersistentVolumeClaimPolicy() humiov1alpha1.HumioPersistentVolumeClaimPolicy
func (*HumioNodePool) GetDataVolumePersistentVolumeClaimSpecTemplate ¶
func (hnp *HumioNodePool) GetDataVolumePersistentVolumeClaimSpecTemplate(pvcName string) corev1.VolumeSource
func (*HumioNodePool) GetDataVolumePersistentVolumeClaimSpecTemplateRAW ¶
func (hnp *HumioNodePool) GetDataVolumePersistentVolumeClaimSpecTemplateRAW() corev1.PersistentVolumeClaimSpec
func (*HumioNodePool) GetDataVolumeSource ¶
func (hnp *HumioNodePool) GetDataVolumeSource() corev1.VolumeSource
func (*HumioNodePool) GetDesiredBootstrapTokenHash ¶
func (hnp *HumioNodePool) GetDesiredBootstrapTokenHash() string
func (*HumioNodePool) GetDesiredPodHash ¶
func (hnp *HumioNodePool) GetDesiredPodHash() string
func (*HumioNodePool) GetDesiredPodRevision ¶
func (hnp *HumioNodePool) GetDesiredPodRevision() int
func (*HumioNodePool) GetDigestPartitionsCount ¶
func (hnp *HumioNodePool) GetDigestPartitionsCount() int
func (*HumioNodePool) GetEnvironmentVariables ¶
func (hnp *HumioNodePool) GetEnvironmentVariables() []corev1.EnvVar
func (*HumioNodePool) GetEnvironmentVariablesSource ¶
func (hnp *HumioNodePool) GetEnvironmentVariablesSource() []corev1.EnvFromSource
func (*HumioNodePool) GetExtraHumioVolumeMounts ¶
func (hnp *HumioNodePool) GetExtraHumioVolumeMounts() []corev1.VolumeMount
func (*HumioNodePool) GetExtraKafkaConfigs ¶
func (hnp *HumioNodePool) GetExtraKafkaConfigs() string
func (*HumioNodePool) GetExtraKafkaConfigsConfigMapName ¶
func (hnp *HumioNodePool) GetExtraKafkaConfigsConfigMapName() string
func (*HumioNodePool) GetExtraVolumes ¶
func (hnp *HumioNodePool) GetExtraVolumes() []corev1.Volume
func (*HumioNodePool) GetHelperImage ¶
func (hnp *HumioNodePool) GetHelperImage() string
func (*HumioNodePool) GetHostname ¶
func (hnp *HumioNodePool) GetHostname() string
func (*HumioNodePool) GetHumioESServicePort ¶
func (hnp *HumioNodePool) GetHumioESServicePort() int32
func (*HumioNodePool) GetHumioServiceAccountAnnotations ¶
func (hnp *HumioNodePool) GetHumioServiceAccountAnnotations() map[string]string
func (*HumioNodePool) GetHumioServiceAccountName ¶
func (hnp *HumioNodePool) GetHumioServiceAccountName() string
func (*HumioNodePool) GetHumioServiceAnnotations ¶
func (hnp *HumioNodePool) GetHumioServiceAnnotations() map[string]string
func (*HumioNodePool) GetHumioServiceLabels ¶
func (hnp *HumioNodePool) GetHumioServiceLabels() map[string]string
func (*HumioNodePool) GetHumioServicePort ¶
func (hnp *HumioNodePool) GetHumioServicePort() int32
func (*HumioNodePool) GetIDPCertificateSecretName ¶
func (hnp *HumioNodePool) GetIDPCertificateSecretName() string
func (*HumioNodePool) GetImage ¶
func (hnp *HumioNodePool) GetImage() string
func (*HumioNodePool) GetImagePullPolicy ¶
func (hnp *HumioNodePool) GetImagePullPolicy() corev1.PullPolicy
func (*HumioNodePool) GetImagePullSecrets ¶
func (hnp *HumioNodePool) GetImagePullSecrets() []corev1.LocalObjectReference
func (*HumioNodePool) GetImageSource ¶
func (hnp *HumioNodePool) GetImageSource() *humiov1alpha1.HumioImageSource
func (*HumioNodePool) GetIngress ¶
func (hnp *HumioNodePool) GetIngress() humiov1alpha1.HumioClusterIngressSpec
func (*HumioNodePool) GetInitClusterRoleBindingName ¶
func (hnp *HumioNodePool) GetInitClusterRoleBindingName() string
func (*HumioNodePool) GetInitClusterRoleName ¶
func (hnp *HumioNodePool) GetInitClusterRoleName() string
func (*HumioNodePool) GetInitServiceAccountName ¶
func (hnp *HumioNodePool) GetInitServiceAccountName() string
func (HumioNodePool) GetInitServiceAccountSecretName ¶
func (hnp HumioNodePool) GetInitServiceAccountSecretName() string
func (*HumioNodePool) GetLabelsForSecret ¶
func (hnp *HumioNodePool) GetLabelsForSecret(secretName string) map[string]string
func (*HumioNodePool) GetNamespace ¶
func (hnp *HumioNodePool) GetNamespace() string
func (*HumioNodePool) GetNodeCount ¶
func (hnp *HumioNodePool) GetNodeCount() int
func (*HumioNodePool) GetNodePoolFeatureAllowedAPIRequestTypes ¶
func (hnp *HumioNodePool) GetNodePoolFeatureAllowedAPIRequestTypes() []string
func (*HumioNodePool) GetNodePoolLabels ¶
func (hnp *HumioNodePool) GetNodePoolLabels() map[string]string
func (*HumioNodePool) GetNodePoolName ¶
func (hnp *HumioNodePool) GetNodePoolName() string
func (*HumioNodePool) GetPath ¶
func (hnp *HumioNodePool) GetPath() string
func (*HumioNodePool) GetPodAnnotations ¶
func (hnp *HumioNodePool) GetPodAnnotations() map[string]string
func (*HumioNodePool) GetPodDisruptionBudget ¶
func (hnp *HumioNodePool) GetPodDisruptionBudget() *humiov1alpha1.HumioPodDisruptionBudgetSpec
func (*HumioNodePool) GetPodDisruptionBudgetName ¶
func (hnp *HumioNodePool) GetPodDisruptionBudgetName() string
func (*HumioNodePool) GetPodLabels ¶
func (hnp *HumioNodePool) GetPodLabels() map[string]string
func (*HumioNodePool) GetPodSecurityContext ¶
func (hnp *HumioNodePool) GetPodSecurityContext() *corev1.PodSecurityContext
func (*HumioNodePool) GetPriorityClassName ¶
func (hnp *HumioNodePool) GetPriorityClassName() string
func (*HumioNodePool) GetProbeScheme ¶
func (hnp *HumioNodePool) GetProbeScheme() corev1.URIScheme
func (*HumioNodePool) GetResources ¶
func (hnp *HumioNodePool) GetResources() corev1.ResourceRequirements
func (*HumioNodePool) GetRolePermissions ¶
func (hnp *HumioNodePool) GetRolePermissions() string
func (*HumioNodePool) GetRolePermissionsConfigMapName ¶
func (hnp *HumioNodePool) GetRolePermissionsConfigMapName() string
func (*HumioNodePool) GetServiceName ¶
func (hnp *HumioNodePool) GetServiceName() string
func (*HumioNodePool) GetServiceType ¶
func (hnp *HumioNodePool) GetServiceType() corev1.ServiceType
func (*HumioNodePool) GetShareProcessNamespace ¶
func (hnp *HumioNodePool) GetShareProcessNamespace() *bool
func (*HumioNodePool) GetSidecarContainers ¶
func (hnp *HumioNodePool) GetSidecarContainers() []corev1.Container
func (*HumioNodePool) GetState ¶
func (hnp *HumioNodePool) GetState() string
func (*HumioNodePool) GetTLSSpec ¶
func (hnp *HumioNodePool) GetTLSSpec() *humiov1alpha1.HumioClusterTLSSpec
func (*HumioNodePool) GetTargetReplicationFactor ¶
func (hnp *HumioNodePool) GetTargetReplicationFactor() int
func (*HumioNodePool) GetTerminationGracePeriodSeconds ¶
func (hnp *HumioNodePool) GetTerminationGracePeriodSeconds() *int64
func (*HumioNodePool) GetTolerations ¶
func (hnp *HumioNodePool) GetTolerations() []corev1.Toleration
func (*HumioNodePool) GetTopologySpreadConstraints ¶
func (hnp *HumioNodePool) GetTopologySpreadConstraints() []corev1.TopologySpreadConstraint
func (*HumioNodePool) GetUpdateStrategy ¶
func (hnp *HumioNodePool) GetUpdateStrategy() *humiov1alpha1.HumioUpdateStrategy
func (*HumioNodePool) GetViewGroupPermissions ¶
func (hnp *HumioNodePool) GetViewGroupPermissions() string
func (*HumioNodePool) GetViewGroupPermissionsConfigMapName ¶
func (hnp *HumioNodePool) GetViewGroupPermissionsConfigMapName() string
func (*HumioNodePool) GetZoneUnderMaintenance ¶
func (hnp *HumioNodePool) GetZoneUnderMaintenance() string
func (*HumioNodePool) HumioServiceAccountIsSetByUser ¶
func (hnp *HumioNodePool) HumioServiceAccountIsSetByUser() bool
func (*HumioNodePool) InitContainerDisabled ¶
func (hnp *HumioNodePool) InitContainerDisabled() bool
func (*HumioNodePool) InitServiceAccountIsSetByUser ¶
func (hnp *HumioNodePool) InitServiceAccountIsSetByUser() bool
func (*HumioNodePool) IsDownscalingFeatureEnabled ¶
func (hnp *HumioNodePool) IsDownscalingFeatureEnabled() bool
IsDownscalingFeatureEnabled Checks if the LogScale version is >= v1.173.0 in order to use the reliable downscaling feature. If the LogScale version checks out, then it returns the value of the enableDownscalingFeature feature flag from the cluster configuration
func (*HumioNodePool) OkToDeletePvc ¶
func (hnp *HumioNodePool) OkToDeletePvc() bool
func (*HumioNodePool) PVCsEnabled ¶
func (hnp *HumioNodePool) PVCsEnabled() bool
func (*HumioNodePool) SetImage ¶
func (hnp *HumioNodePool) SetImage(image string)
func (*HumioNodePool) TLSEnabled ¶
func (hnp *HumioNodePool) TLSEnabled() bool
type HumioNodePoolList ¶
type HumioNodePoolList struct {
Items []*HumioNodePool
}
func (*HumioNodePoolList) Add ¶
func (n *HumioNodePoolList) Add(hnp *HumioNodePool)
func (*HumioNodePoolList) Filter ¶
func (n *HumioNodePoolList) Filter(f func(*HumioNodePool) bool) []*HumioNodePool
type HumioParserReconciler ¶
type HumioParserReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioParserReconciler reconciles a HumioParser object
func (*HumioParserReconciler) SetupWithManager ¶
func (r *HumioParserReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioRepositoryReconciler ¶
type HumioRepositoryReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioRepositoryReconciler reconciles a HumioRepository object
func (*HumioRepositoryReconciler) SetupWithManager ¶
func (r *HumioRepositoryReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioScheduledSearchReconciler ¶
type HumioScheduledSearchReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioScheduledSearchReconciler reconciles a HumioScheduledSearch object
func (*HumioScheduledSearchReconciler) SetupWithManager ¶
func (r *HumioScheduledSearchReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HumioVersion ¶
type HumioVersion struct {
// contains filtered or unexported fields
}
func HumioVersionFromString ¶
func HumioVersionFromString(image string) *HumioVersion
func (*HumioVersion) IsLatest ¶
func (hv *HumioVersion) IsLatest() bool
func (*HumioVersion) SemVer ¶
func (hv *HumioVersion) SemVer() *semver.Version
func (*HumioVersion) String ¶
func (hv *HumioVersion) String() string
type HumioViewReconciler ¶
type HumioViewReconciler struct { client.Client BaseLogger logr.Logger Log logr.Logger HumioClient humio.Client Namespace string }
HumioViewReconciler reconciles a HumioView object
func (*HumioViewReconciler) SetupWithManager ¶
func (r *HumioViewReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type Option ¶
type Option interface { Apply(hc *humiov1alpha1.HumioCluster) GetResult() (reconcile.Result, error) }
type StatusOptions ¶
type StatusOptions interface {
Get() []Option
}
Source Files
¶
- humioaction_controller.go
- humioaggregatealert_controller.go
- humioalert_controller.go
- humiobootstraptoken_controller.go
- humiobootstraptoken_defaults.go
- humiocluster_annotations.go
- humiocluster_controller.go
- humiocluster_defaults.go
- humiocluster_ingresses.go
- humiocluster_metrics.go
- humiocluster_permission_tokens.go
- humiocluster_persistent_volumes.go
- humiocluster_pod_lifecycle.go
- humiocluster_pod_status.go
- humiocluster_pods.go
- humiocluster_secrets.go
- humiocluster_services.go
- humiocluster_status.go
- humiocluster_tls.go
- humiocluster_version.go
- humioexternalcluster_controller.go
- humioexternalcluster_status.go
- humiofilteralert_controller.go
- humioingesttoken_controller.go
- humioingesttoken_metrics.go
- humioparser_controller.go
- humiorepository_controller.go
- humioscheduledsearch_controller.go
- humioview_controller.go
- utils.go