Documentation ¶
Index ¶
- func DeleteGrafana(ctx context.Context, k8sClient kubernetes.Interface, namespace string) error
- func DeleteLokiRetainPvc(ctx context.Context, k8sClient client.Client, namespace string, ...) error
- func LokiPvcExists(ctx context.Context, k8sClient client.Client, namespace string, ...) (bool, error)
- func RenameLokiPvcToValiPvc(ctx context.Context, k8sClient client.Client, namespace string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteGrafana ¶ added in v1.64.0
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.