Documentation
¶
Index ¶
- Variables
- func Contains(str string, list []string) bool
- func CreateSecretFromEnv(t *testing.T, kubectlOptions *k8s.KubectlOptions, apiKeyEnv, appKeyEnv string) (cleanupFunc func())
- func FilterYamlKeysMultiManifest(manifest string, filterKeys map[string]interface{}) (string, error)
- func GetVolumeNames(ds appsv1.DaemonSet) []string
- func InstallChart(t *testing.T, kubectlOptions *k8s.KubectlOptions, cmd HelmCommand) (cleanupFunc func())
- func LoadFromFile[T any](t *testing.T, filepath string, destObj *T) string
- func ParseArgs()
- func ReadFile(t *testing.T, filepath string) string
- func RenderChart(t *testing.T, cmd HelmCommand) (string, error)
- func SetupConfig() (runner.ConfigMap, error)
- func Unmarshal[T any](t *testing.T, manifest string, destObj *T)
- func WriteToFile(t *testing.T, filepath, content string)
- type HelmCommand
Constants ¶
This section is empty.
Variables ¶
View Source
var UpdateBaselines bool
Functions ¶
func CreateSecretFromEnv ¶
func CreateSecretFromEnv(t *testing.T, kubectlOptions *k8s.KubectlOptions, apiKeyEnv, appKeyEnv string) (cleanupFunc func())
func FilterYamlKeysMultiManifest ¶
func FilterYamlKeysMultiManifest(manifest string, filterKeys map[string]interface{}) (string, error)
Takes multi-document YAML and filter out keys from each document.
func GetVolumeNames ¶
func InstallChart ¶
func InstallChart(t *testing.T, kubectlOptions *k8s.KubectlOptions, cmd HelmCommand) (cleanupFunc func())
func RenderChart ¶
func RenderChart(t *testing.T, cmd HelmCommand) (string, error)
func SetupConfig ¶
func WriteToFile ¶
Types ¶
type HelmCommand ¶
type HelmCommand struct {
ReleaseName string
Namespace string
ChartPath string
ShowOnly []string // helm template `-s, --show-only` flag
Values []string // helm template `-f, --values` flag
Overrides map[string]string // helm template `--set` flag
OverridesJson map[string]string // helm template `--set-json` flag
Logger *logger.Logger // logger to use for helm output. Set to logger.Discard by default.
ExtraArgs []string
}
Click to show internal directories.
Click to hide internal directories.