Documentation
¶
Overview ¶
Package utils implements utility functions
Index ¶
- func GetClusterOwner(client client.Client, ctx context.Context, obj metav1.ObjectMeta) *teranodev1alpha1.Cluster
- func GetPrometheusLabels() map[string]string
- func ReconcileBatch(l logr.Logger, reconcileFunctions ...ReconcileFunc) (bool, error)
- func SetClusterOverrides(client client.Client, dep *appsv1.Deployment, cr v1alpha1.TeranodeService)
- func SetDeploymentOverrides(client client.Client, dep *appsv1.Deployment, cr v1alpha1.TeranodeService)
- type ReconcileFunc
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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.