settings

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func ParseSecret

func ParseSecret(secret *v1.Secret) (notifiersConfig notifiers.Config, err error)

ParseSecret retrieves configured notification services from the provided secret

Types

type Config

type Config struct {
	Triggers  []triggers.NotificationTrigger  `json:"triggers"`
	Templates []triggers.NotificationTemplate `json:"templates"`
	Context   map[string]string               `json:"context"`
}

func ParseConfigMap

func ParseConfigMap(configMap *v1.ConfigMap) (cfg *Config, err error)

ParseSecret retrieves configured templates and triggers from the provided config map

func (*Config) Merge

func (cfg *Config) Merge(other *Config) *Config

Jump to

Keyboard shortcuts

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