kube

package
v0.510.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleLabel = "ftl.dev/module"
View Source
const RealmLabel = "ftl.dev/realm"

Variables

This section is empty.

Functions

func AddLabels

func AddLabels(obj *v1.ObjectMeta, realm string, module string)

func ConfigMapName

func ConfigMapName(module string) string

func CreateClientSet

func CreateClientSet() (*kubernetes.Clientset, error)

func CreateIstioClientSet

func CreateIstioClientSet() (*istioclient.Clientset, error)

func EnsureNamespace

func EnsureNamespace(ctx context.Context, client *kubernetes.Clientset, namespace string, instanceName string) error

func GetCurrentNamespace

func GetCurrentNamespace() (string, error)

func SecretName

func SecretName(module string) string

Types

type KubeConfig

type KubeConfig struct {
	UserNamespace string `help:"Namespace to use for kube user resources." env:"FTL_USER_NAMESPACE"`
}

func (*KubeConfig) NamespaceMapper

func (k *KubeConfig) NamespaceMapper() NamespaceMapper

func (*KubeConfig) RouteTemplate

func (k *KubeConfig) RouteTemplate() string

type NamespaceMapper

type NamespaceMapper func(module string, realm string) string

Jump to

Keyboard shortcuts

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