Documentation
¶
Index ¶
Constants ¶
View Source
const (
Namespace = "namespace"
)
Variables ¶
This section is empty.
Functions ¶
func NewAggregator ¶
func NewAggregator(k8sclient kubernetes.Interface, namespace, configMap string, opts ...Option) *aggregator
NewAggregator returns an aggregator instance
Types ¶
type GlobalConfig ¶
type GlobalConfig struct {
Configs []obj `json:"configs"`
}
GlobalConfig describe the global configuration in the centralized namespace
type Option ¶
type Option func(*aggregator)
func WithAppConfigLabel ¶
WithAppConfigLabel sets the config label in the application namespace.
func WithConfigMapKey ¶
WithConfigMapKey sets the key of the aggregated config map.
func WithInterval ¶
WithInterval sets the interval of each run of checking configurations.
func WithLogger ¶
func WithLogger(l *zap.SugaredLogger) Option
WithLogger sets the logger to be used.
func WithSchemaFileDir ¶
WithSchemaFileDir sets the dir of the json-schema file for validation.
Click to show internal directories.
Click to hide internal directories.