util

package
v0.0.0-...-04388c0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateConfigMapDataCheckSum

func CalculateConfigMapDataCheckSum(m map[string]string) string

func CalculateSecretedDataCheckSum

func CalculateSecretedDataCheckSum(m map[string][]byte) string

func DeleteMetricsServerPod

func DeleteMetricsServerPod(ctx context.Context, metricsServerNamespace string, logger logr.Logger, cl client.Client) error

func HasPodMonitorCRD

func HasPodMonitorCRD(ctx context.Context, logger logr.Logger, cl client.Client) bool

HasPodMonitorCRD returns true if the monitoring stack (i.e. Prometheus) is present, false otherwise

func HasServiceMonitorCRD

func HasServiceMonitorCRD(ctx context.Context, logger logr.Logger, cl client.Client) bool

HasServiceMonitorCRD returns true if the ServiceMonitor CRD is present in the cluster, false otherwise

func RunningOnClusterWithoutSeccompProfileDefault

func RunningOnClusterWithoutSeccompProfileDefault(logger logr.Logger, discoveryClient *discovery.DiscoveryClient) bool

RunningOnClusterWithoutSeccompProfileDefault returns true if running on cluster <= 1.23.Z which lacks the RuntimeDefault seccomp profile

func RunningOnOpenshift

func RunningOnOpenshift(ctx context.Context, logger logr.Logger, cl client.Client) bool

func UpdateKedaControllerStatus

func UpdateKedaControllerStatus(ctx context.Context, cl client.Client, kedaController *kedav1alpha1.KedaController, status *kedav1alpha1.KedaControllerStatus) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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