config

package
v0.0.0-...-d31a008 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TemplateExtension = ".yaml.tmpl"

Variables

This section is empty.

Functions

func SearchManifest

func SearchManifest(name string) string

SearchManifest is search manifest template from manifest directorys name argument is file name without extension

Types

type Config

type Config struct {
	CleanupTickEverySeconds int `validate:"gte=10,lte=600"`
	Namespace               string
	ManifestDirs            []string
	KubeServer              string
	Slack                   SlackConfig
	OverwriteRole           bool
	OverwriteRoleBinding    bool
}

func GetConfig

func GetConfig() *Config

func LoadConfig

func LoadConfig() *Config

type SlackConfig

type SlackConfig struct {
	// Administrators are slack app administrators. they can accept/reject permission claim.
	Administrators []string
	// notify streaming channel
	NotifyChannel string
	// audit log streaming channel
	AuditChannel string
}

Jump to

Keyboard shortcuts

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