namespace

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"clustermesh-namespace",
	"Clustermesh global namespace management",

	cell.Config(DefaultConfig),
	cell.Provide(
		func(params managerParams) Manager {
			return newManager(params)
		},
	),
)
View Source
var DefaultConfig = Config{
	GlobalNamespacesByDefault: true,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	// GlobalNamespacesByDefault marks all namespaces as global by default unless overridden by annotation
	GlobalNamespacesByDefault bool `mapstructure:"clustermesh-default-global-namespace"`
}

func (Config) Flags

func (cfg Config) Flags(flags *pflag.FlagSet)

type Manager

type Manager interface {
	IsGlobalNamespaceByName(ns string) (bool, error)
	IsGlobalNamespaceByObject(ns *slim_corev1.Namespace) bool
}

Jump to

Keyboard shortcuts

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