Skip to content

Commit 614955e

Browse files
astefanuttiopenshift-merge-robot
authored andcommitted
Add MCAD APIs to runtime scheme
1 parent cf9020b commit 614955e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

main.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323

2424
instascale "github.com/project-codeflare/instascale/controllers"
2525
mcadoptions "github.com/project-codeflare/multi-cluster-app-dispatcher/cmd/kar-controllers/app/options"
26+
mcadv1beta1 "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/apis/controller/v1beta1"
2627
mcad "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/controller/queuejob"
2728
"go.uber.org/zap/zapcore"
2829

@@ -33,8 +34,6 @@ import (
3334
ctrl "sigs.k8s.io/controller-runtime"
3435
"sigs.k8s.io/controller-runtime/pkg/healthz"
3536
"sigs.k8s.io/controller-runtime/pkg/log/zap"
36-
37-
codeflarev1alpha1 "github.com/project-codeflare/codeflare-operator/api/codeflare/v1alpha1"
3837
// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
3938
// to ensure that exec-entrypoint and run can make use of them.
4039
// +kubebuilder:scaffold:imports
@@ -48,9 +47,7 @@ var (
4847

4948
func init() {
5049
utilruntime.Must(clientgoscheme.AddToScheme(scheme))
51-
52-
utilruntime.Must(codeflarev1alpha1.AddToScheme(scheme))
53-
// +kubebuilder:scaffold:scheme
50+
_ = mcadv1beta1.AddToScheme(scheme)
5451
}
5552

5653
func main() {

0 commit comments

Comments
 (0)