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"
Click to show internal directories.
Click to hide internal directories.