config

package
v0.0.0-...-57ba8d9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmaltheaSessionConfiguration

type AmaltheaSessionConfiguration struct {
	ClusterType        ClusterType
	ImageFieldRewriter ImageFieldRewriter
}

func GetAmaltheaSessionConfiguration

func GetAmaltheaSessionConfiguration(config *rest.Config) (cfg AmaltheaSessionConfiguration, err error)

GetAmaltheaSessionConfiguration loads the configuration

type ClusterType

type ClusterType string
const Kubernetes ClusterType = "kubernetes"
const OpenShift ClusterType = "openshift"

func DetectClusterType

func DetectClusterType(config *rest.Config) (ClusterType, error)

type ImageFieldRewriter

type ImageFieldRewriter interface {
	// Rewrite returns a new value for the "image" field
	Rewrite(image string) (newImage string, err error)
}

ImageFieldRewriter rewrites the "image" field for sessions

func GetImageFieldRewriter

func GetImageFieldRewriter() (rewriter ImageFieldRewriter, err error)

GetImageFieldRewriter returns the image rewriter configured by the env var "AMALTHEA_IMAGE_REWRITE_RULES"

Jump to

Keyboard shortcuts

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