utils

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package utils implements utility functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterOwner

func GetClusterOwner(client client.Client, ctx context.Context, obj metav1.ObjectMeta) *teranodev1alpha1.Cluster

func GetPrometheusLabels

func GetPrometheusLabels() map[string]string

GetPrometheusLabels returns a map of labels used for prometheus scraping

func ReconcileBatch

func ReconcileBatch(l logr.Logger, reconcileFunctions ...ReconcileFunc) (bool, error)

ReconcileBatch will reconcile a batch of functions

func SetClusterOverrides

func SetClusterOverrides(client client.Client, dep *appsv1.Deployment, cr v1alpha1.TeranodeService)

func SetDeploymentOverrides

func SetDeploymentOverrides(client client.Client, dep *appsv1.Deployment, cr v1alpha1.TeranodeService)

Types

type ReconcileFunc

type ReconcileFunc func(logr.Logger) (bool, error)

ReconcileFunc is a reconcile function type

Jump to

Keyboard shortcuts

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