Documentation
¶
Index ¶
- func GetConfigMapName(clusterName string, clusterType libsveltosv1beta1.ClusterType) string
- func GetKeyForEventSource(eventTriggerName, eventSourceName string) string
- func GetKeyForHealthCheck(clusterHealthCheckName, healthcheckName string) string
- func GetKeyForReloader(reloaderName string) string
- func IsEventSourceEntry(k string) bool
- func IsEventSourceEntryForEventTrigger(k, eventTriggerName string) bool
- func IsHealthCheckEntry(k string) bool
- func IsHealthCheckEntryForClusterHealthCheck(k, clusterHealthCheckName string) bool
- func IsReloaderEntry(k string) bool
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
IsEventSourceEntryForEventTrigger checks if a given string `k` was created because of a given EventTrigger
func IsHealthCheckEntry ¶
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 ¶
IsHealthCheckEntryForClusterHealthCheck checks if a given string `k` was created because of a given ClusterHealthCheck
func IsReloaderEntry ¶
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.