knamespace

package
v0.0.0-...-eab9307 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceConfig

type NamespaceConfig struct {
	Name        string            `yaml:"name"`
	Mode        string            `yaml:"mode"`
	Annotations map[string]string `yaml:"annotations"`
	Labels      map[string]string `yaml:"labels"`
}

type NamespacesConfig

type NamespacesConfig struct {
	DefaultConfig NamespaceConfig   `yaml:"defaultNamespaceSettings"`
	Namespaces    []NamespaceConfig `yaml:"namespaces"`
}

func GetNamespacesConfig

func GetNamespacesConfig(namespacesConfigFileName string) (*NamespacesConfig, error)

Return NamespacesConfig from Namespaces config file TODO: Validate the config is complete and correct. And that mode is one of the accepted and lower cased Should we introduce mode defaults?

func (NamespacesConfig) GetConfig

func (n NamespacesConfig) GetConfig(namespaceName string) (*NamespaceConfig, error)

Gets the config for a specific Knamespace

func (NamespacesConfig) GetDefault

func (n NamespacesConfig) GetDefault() (*NamespaceConfig, error)

Return Knamespacer Defaults

Jump to

Keyboard shortcuts

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