INNER CODE UNIT · Go

TestInstallUsingOperator

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

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

	installControlPlaneUsingOperator := features.New("install kube-fledged using the helm operator").
		Setup(
			func(ctx context.Context, t *testing.T, cfg *envconf.Config) context.Context {
				ctrlPlaneHandler = controlplane.NewHandler(t, controlplane.HandlerConfig{
					Strategy:            controlplane.DeployUsingOperator,
					OperatorDir:         operatorDir,
					TestEnvConfig:       cfg,
					Namespace:           controlPlaneNamespace,
					OperatorNamespace:   operatorNamespace,
					EnableWebhookServer: true,
				})
				err := ctrlPlaneHandler.CreateFn(ctx)
				if err != nil {
					t.Fatalf("failed to setup control plane using helm operator: %s", err.Error())
				}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…