Skip to content

Commit 9414dce

Browse files
committed
SingleOwnNSInstallSupport feature gate reset
Signed-off-by: Brett Tofel <btofel@redhat.com>
1 parent 9ab708e commit 9414dce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/operator-controller/applier/helm_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ import (
1717
"helm.sh/helm/v3/pkg/storage/driver"
1818
corev1 "k8s.io/api/core/v1"
1919
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
20+
featuregatetesting "k8s.io/component-base/featuregate/testing"
2021
"sigs.k8s.io/controller-runtime/pkg/client"
2122

2223
helmclient "github.com/operator-framework/helm-operator-plugins/pkg/client"
2324

2425
ocv1 "github.com/operator-framework/operator-controller/api/v1"
2526
"github.com/operator-framework/operator-controller/internal/operator-controller/applier"
2627
"github.com/operator-framework/operator-controller/internal/operator-controller/authorization"
28+
"github.com/operator-framework/operator-controller/internal/operator-controller/features"
2729
"github.com/operator-framework/operator-controller/internal/operator-controller/rukpak/convert"
2830
)
2931

@@ -523,6 +525,7 @@ func TestApply_Upgrade(t *testing.T) {
523525
}
524526

525527
func TestApply_InstallationWithSingleOwnNamespaceInstallSupportEnabled(t *testing.T) {
528+
featuregatetesting.SetFeatureGateDuringTest(t, features.OperatorControllerFeatureGate, features.SingleOwnNamespaceInstallSupport, true)
526529
t.Run("generates bundle resources using the configured watch namespace", func(t *testing.T) {
527530
var expectedWatchNamespace = "watch-namespace"
528531

0 commit comments

Comments
 (0)