INNER CODE UNIT · Go

TestInstallUsingHelmChart

senthilrch/kube-fledged · e2etest/install_using_helm_chart_test.go:28

func TestInstallUsingHelmChart(t *testing.T) {
	ctrlPlaneHandler := &controlplane.Handler{}

	installControlPlaneUsingHelmChart := features.New("install kube-fledged using helm chart").
		Setup(
			func(ctx context.Context, t *testing.T, cfg *envconf.Config) context.Context {
				ctrlPlaneHandler = controlplane.NewHandler(t, controlplane.HandlerConfig{
					Strategy:            controlplane.DeployUsingHelmChart,
					HelmChartDir:        helmChartDir,
					TestEnvConfig:       cfg,
					Namespace:           controlPlaneNamespace,
					EnableWebhookServer: true,
				})
				err := ctrlPlaneHandler.CreateFn(ctx)
				if err != nil {
					t.Fatalf("failed to setup control plane using helm chart: %s", err.Error())
				}
				return ctx

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…