util

package
v1.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var K8sCesServiceDiscoveryLabels = map[string]string{"app": "ces", "app.kubernetes.io/name": "k8s-service-discovery"}

Functions

func ContainsChars

func ContainsChars(s string) bool

func GetAppLabel added in v1.3.0

func GetAppLabel() map[string]string

func HasDoguLabel added in v1.3.0

func HasDoguLabel(deployment client.Object) bool

func IsMaintenanceModeActive added in v1.3.0

func IsMaintenanceModeActive(ctx context.Context, globalConfigRepo GlobalConfigRepository) (bool, error)

Types

type ExposedPort added in v1.3.0

type ExposedPort struct {
	Protocol   corev1.Protocol `json:"protocol"`
	Port       int32           `json:"port"`
	TargetPort int32           `json:"targetPort"`
}

func (ExposedPort) String added in v1.3.0

func (ep ExposedPort) String() string

type ExposedPorts added in v1.3.0

type ExposedPorts []ExposedPort

type GlobalConfigRepository added in v1.3.0

type GlobalConfigRepository interface {
	Get(context.Context) (libconfig.GlobalConfig, error)
	Watch(context.Context, ...libconfig.WatchFilter) (<-chan repository.GlobalConfigWatchResult, error)
	Update(ctx context.Context, globalConfig libconfig.GlobalConfig) (libconfig.GlobalConfig, error)
}

Jump to

Keyboard shortcuts

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