Skip to content

Commit 2cc85d4

Browse files
author
Per Goncalves da Silva
committed
fix validating roundtripper scheme
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 8735be1 commit 2cc85d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/controller/operators/catalog/operator.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"encoding/json"
66
"errors"
77
"fmt"
8+
apiregistrationv1 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1"
89
"reflect"
910
"sort"
1011
"strings"
@@ -149,6 +150,8 @@ func NewOperator(ctx context.Context, kubeconfigPath string, clock utilclock.Clo
149150
}
150151

151152
// create a config that validates we're creating objects with labels
153+
_ = apiextensionsv1.AddToScheme(scheme)
154+
_ = apiregistrationv1.AddToScheme(scheme)
152155
validatingConfig := validatingroundtripper.Wrap(config, scheme)
153156

154157
// Create a new client for dynamic types (CRs)

0 commit comments

Comments
 (0)