common

package
v1.85.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteGrafana added in v1.64.0

func DeleteGrafana(ctx context.Context, k8sClient kubernetes.Interface, namespace string) error

DeleteGrafana deletes the Grafana resources that are no longer necessary due to the migration to Plutono.

func DeleteLokiRetainPvc added in v1.71.0

func DeleteLokiRetainPvc(ctx context.Context, k8sClient client.Client, namespace string, log logr.Logger) error

DeleteLokiRetainPvc deletes all Loki resources in a given namespace.

func LokiPvcExists added in v1.71.0

func LokiPvcExists(ctx context.Context, k8sClient client.Client, namespace string, log logr.Logger) (bool, error)

LokiPvcExists checks if the loki-loki-0 PVC exists in the given namespace.

func RenameLokiPvcToValiPvc added in v1.71.0

func RenameLokiPvcToValiPvc(ctx context.Context, k8sClient client.Client, namespace string, log logr.Logger) error

RenameLokiPvcToValiPvc "renames" the PVC used by the loki-0 pod: "loki-loki-0" to "vali-vali-0". It can then be used by the vali-0 pod of the vali StatefulSet. It is not possible in kubernetes to rename a PVC, so we have to create a new PVC after deleting the old one. The PV of the PVC is retained and reused by the new PVC. To achieve this, the PV's ReclaimPolicy is temporarily set to "Retain" before deleting the PVC. The PV's ReclaimPolicy is reset at the end back to "Delete" so that the PV is deleted when the PVC is deleted for another reason.

Types

This section is empty.

Jump to

Keyboard shortcuts

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