Documentation ¶
Index ¶
- Constants
- func NewConfigMapInformer(clientset kubernetes.Interface, namespace string) cache.SharedIndexInformer
- func NewSecretInformer(clientset kubernetes.Interface, namespace string) cache.SharedIndexInformer
- func ParseSecret(secret *v1.Secret) (notifiersConfig notifiers.Config, err error)
- type Config
Constants ¶
View Source
const ( ConfigMapName = "argocd-notifications-cm" SecretName = "argocd-notifications-secret" )
Variables ¶
This section is empty.
Functions ¶
func NewConfigMapInformer ¶
func NewConfigMapInformer(clientset kubernetes.Interface, namespace string) cache.SharedIndexInformer
func NewSecretInformer ¶
func NewSecretInformer(clientset kubernetes.Interface, namespace string) cache.SharedIndexInformer
Types ¶
type Config ¶
type Config struct { Triggers []triggers.NotificationTrigger `json:"triggers"` Templates []triggers.NotificationTemplate `json:"templates"` Context map[string]string `json:"context"` }
func ParseConfigMap ¶
ParseSecret retrieves configured templates and triggers from the provided config map
Click to show internal directories.
Click to hide internal directories.