mgmtagent

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigMapName

func GetConfigMapName(clusterName string, clusterType libsveltosv1beta1.ClusterType) string

Returns the name of the ConfigMap that holds the names of resources (EventSource, HealthCheck, Reloader) intended for a specific managed cluster.

The naming convention for this ConfigMap is consistent across Sveltos components running in the management cluster.

func GetKeyForEventSource

func GetKeyForEventSource(eventTriggerName, eventSourceName string) string

GetKeyForEventSource generates a key for an EventSource resource by prepending the `eventSourcePrefix` to the provided `eventSourceName`. This key is typically used when storing or retrieving EventSource information in ConfigMaps.

func GetKeyForHealthCheck

func GetKeyForHealthCheck(clusterHealthCheckName, healthcheckName string) string

GetKeyForHealthCheck generates a key for a HealthCheck resource by prepending the `healthCheckPrefix` to the provided `eventSourceName`. This key is typically used when storing or retrieving HealthCheck information in ConfigMaps.

func GetKeyForReloader

func GetKeyForReloader(reloaderName string) string

GetKeyForReloader generates a key for a Reloader resource by prepending the `reloaderPrefix` to the provided `reloaderName`. This key is typically used when storing or retrieving Reloader information in ConfigMaps.

func IsEventSourceEntry

func IsEventSourceEntry(k string) bool

IsEventSourceEntry checks if a given string `k` starts with the `eventSourcePrefix`. This is used to identify entries in ConfigMaps that refer to EventSource resources.

func IsEventSourceEntryForEventTrigger

func IsEventSourceEntryForEventTrigger(k, eventTriggerName string) bool

IsEventSourceEntryForEventTrigger checks if a given string `k` was created because of a given EventTrigger

func IsHealthCheckEntry

func IsHealthCheckEntry(k string) bool

IsHealthCheckEntry checks if a given string `k` starts with the `healthCheckPrefix`. This is used to identify entries in ConfigMaps that refer to HealthCheck resources.

func IsHealthCheckEntryForClusterHealthCheck

func IsHealthCheckEntryForClusterHealthCheck(k, clusterHealthCheckName string) bool

IsHealthCheckEntryForClusterHealthCheck checks if a given string `k` was created because of a given ClusterHealthCheck

func IsReloaderEntry

func IsReloaderEntry(k string) bool

IsReloaderEntry checks if a given string `k` starts with the `reloaderPrefix`. This is used to identify entries in ConfigMaps that refer to Reloader resources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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