Skip to content

Commit

Permalink
Merge pull request #1849 from zimnx/mz/scheme-builder
Browse files Browse the repository at this point in the history
Add Scheme Builder
  • Loading branch information
scylla-operator-bot[bot] authored Mar 20, 2024
2 parents 8b32358 + 28af2b0 commit 1520cf7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pkg/scheme/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ var (
Strict: true,
},
)
localSchemeBuilder = runtime.SchemeBuilder{
kscheme.AddToScheme,
scyllav1.Install,
scyllav1alpha1.Install,
cqlclientv1alpha1.Install,
monitoringv1.Install,
}

AddToScheme = localSchemeBuilder.AddToScheme
)

func init() {
utilruntime.Must(kscheme.AddToScheme(Scheme))

utilruntime.Must(scyllav1.Install(Scheme))
utilruntime.Must(scyllav1alpha1.Install(Scheme))

utilruntime.Must(cqlclientv1alpha1.Install(Scheme))

utilruntime.Must(monitoringv1.Install(Scheme))
utilruntime.Must(AddToScheme(Scheme))
}

0 comments on commit 1520cf7

Please sign in to comment.