handlers

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotatePodWithAvailabilityZone

func AnnotatePodWithAvailabilityZone(ctx context.Context, log logr.Logger, c k8s.Client, pod *corev1.Pod) error

func CheckCertExpiry

func CheckCertExpiry(ctx context.Context, log logr.Logger, req ctrl.Request, k k8s.Client, fg configv1.FeatureGates) error

CheckCertExpiry handles the case if the LokiStack managed signing CA, client and/or serving certificates expired. Returns true if any of those expired and an error representing the reason of expiry.

func CreateDashboards added in v0.5.0

func CreateDashboards(ctx context.Context, log logr.Logger, operatorNs string, k k8s.Client, s *runtime.Scheme) error

CreateDashboards handles the LokiStack dashboards create events.

func CreateOrRotateCertificates

func CreateOrRotateCertificates(ctx context.Context, log logr.Logger, req ctrl.Request, k k8s.Client, s *runtime.Scheme, fg configv1.FeatureGates) error

CreateOrRotateCertificates handles the LokiStack client and serving certificate creation and rotation including the signing CA and a ca bundle or else returns an error. It returns only a degrade-condition-worthy error if building the manifests fails for any reason.

func CreateOrUpdateLokiStack

func CreateOrUpdateLokiStack(
	ctx context.Context,
	log logr.Logger,
	req ctrl.Request,
	k k8s.Client,
	s *runtime.Scheme,
	fg configv1.FeatureGates,
) (lokiv1.CredentialMode, error)

CreateOrUpdateLokiStack handles LokiStack create and update events.

func CreateUpdateDeleteCredentialsRequest added in v0.6.0

func CreateUpdateDeleteCredentialsRequest(ctx context.Context, log logr.Logger, scheme *runtime.Scheme, tokenCCOAuth *config.TokenCCOAuthConfig, k k8s.Client, req ctrl.Request) error

CreateUpdateDeleteCredentialsRequest creates a new CredentialsRequest resource for a Lokistack to request a cloud credentials Secret resource from the OpenShift cloud-credentials-operator.

func DeleteDashboards added in v0.5.0

func DeleteDashboards(ctx context.Context, k k8s.Client, operatorNs string) error

DeleteDashboards removes all cluster-scoped dashboard resources.

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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