Documentation
¶
Index ¶
- Variables
- func AddK8sClientConfigToArgs(k8sClientConfig *kaiv1common.K8sClientConfig, args []string)
- func AllControllersAvailable(ctx context.Context, readerClient client.Reader, objects []client.Object) (bool, error)
- func AllObjectsExists(ctx context.Context, runtimeClient client.Reader, objects []client.Object) (bool, error)
- func CheckCRDsAvailable(ctx context.Context, client client.Reader, crdNames ...string) (bool, error)
- func CheckPrometheusCRDsAvailable(ctx context.Context, client client.Reader, targetCRDs ...string) (bool, error)
- func DeploymentForKAIConfig(ctx context.Context, runtimeClient client.Reader, kaiConfig *kaiv1.Config, ...) (*appsv1.Deployment, error)
- func MergeAffinities(localAffinity *v1.Affinity, globalAffinity *v1.Affinity, ...) *v1.Affinity
- func ObjectForKAIConfig(ctx context.Context, runtimeClient client.Reader, object client.Object, ...) (client.Object, error)
- func PtrFrom[T any](v T) *T
Constants ¶
This section is empty.
Variables ¶
View Source
var KaiServicesForServiceMonitor = []struct { Name string Port string JobLabel string LabelSelector map[string]string // optional, if not provided, "app": NAME will be used Namespaces []string // optional, if not provided, the service will be monitored in the namespace of the KAI config }{ {"queue-controller", "metrics", "queue-controller", nil, nil}, {"kube-state-metrics", "http", "kube-state-metrics", map[string]string{"app.kubernetes.io/name": "kube-state-metrics"}, []string{"monitoring", "default"}}, }
KAI services that should be monitored via ServiceMonitor For now, we only monitor the queue controller. Add more services here if needed.
Functions ¶
func AddK8sClientConfigToArgs ¶
func AddK8sClientConfigToArgs(k8sClientConfig *kaiv1common.K8sClientConfig, args []string)
func AllControllersAvailable ¶
func AllObjectsExists ¶
func CheckCRDsAvailable ¶ added in v0.12.0
func CheckPrometheusCRDsAvailable ¶ added in v0.10.0
func DeploymentForKAIConfig ¶
func MergeAffinities ¶ added in v0.10.0
func ObjectForKAIConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.