Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteProfile ¶
CompleteProfile completes a profile with default values
func ValidateAllProfiles ¶
func ValidateAllProfiles() error
func ValidateDebugProfileFile ¶
func ValidateDebugProfileFile() error
func ValidateKubectlPath ¶
func ValidateKubectlPath() error
func ValidateProfile ¶
ValidateProfile validates a single profile
This function is not implemented yet future ideas: check if the profile file exists and it's a valid pod.spec
Types ¶
type CustomDebugProfile ¶
type CustomDebugProfile struct { Profiles []Profile `koanf:"profiles" yaml:"profiles"` KubectlPath string `koanf:"kubectlPath" yaml:"kubectlPath"` }
var Config CustomDebugProfile
global Profile configuration
type Profile ¶
type Profile struct { ProfileName string `koanf:"name" yaml:"name" validate:"required"` CustomProfileFile string `koanf:"profile" yaml:"profile" validate:"required"` Image string `koanf:"image" yaml:"image" validate:"required"` Namespace string `koanf:"namespace" yaml:"namespace" validate:"required"` ImagePullPolicy corev1.PullPolicy `koanf:"imagePullPolicy" yaml:"imagePullPolicy" validate:"required"` TargetContainer string `koanf:"targetContainer" yaml:"targetContainer" validate:"required"` MatchLabels map[string]string `koanf:"matchLabels" yaml:"matchLabels" validate:"required"` }
Click to show internal directories.
Click to hide internal directories.