config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MenuConfigMap = "k8s-ces-menu-json"
	StageLocal    = "local"
	DevConfigPath = "k8s/dev-resources/k8s-ces-warp-config.yaml"
	StageEnvVar   = "STAGE"
)

Variables

This section is empty.

Functions

func ReadIngressController added in v1.3.0

func ReadIngressController() string

func ReadNetworkPolicyCIDR added in v1.3.0

func ReadNetworkPolicyCIDR() (string, error)

func ReadNetworkPolicyEnabled added in v1.3.0

func ReadNetworkPolicyEnabled() (bool, error)

func ReadWatchNamespace added in v1.3.0

func ReadWatchNamespace() (string, error)

Types

type Configuration

type Configuration struct {
	Sources []Source
	Target  string
	Order   Order
	Support []SupportSource
}

Configuration for warp menu creation

func ReadConfiguration

func ReadConfiguration(ctx context.Context, client client.Client, namespace string) (*Configuration, error)

ReadConfiguration reads the service discovery configuration. Either from file in development mode with environment variable stage=development or from the cluster state

type Order

type Order map[string]int

Order can be used to modify ordering via configuration

type Source

type Source struct {
	Path string
	Type string
	Tag  string
}

Source in global config

type SupportSource

type SupportSource struct {
	Identifier string
	External   bool
	Href       string
}

SupportSource for SupportEntries from yaml

Jump to

Keyboard shortcuts

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