[node operator] Add nodemaintenance CRD

Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
Malte Poll 2022-07-01 16:42:08 +02:00 committed by Malte Poll
parent 1cc8c36052
commit be27de3b71
3 changed files with 90 additions and 2 deletions

View file

@ -9,6 +9,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
nodemaintenancev1beta1 "github.com/medik8s/node-maintenance-operator/api/v1beta1"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"k8s.io/client-go/kubernetes/scheme"
@ -50,7 +51,10 @@ var _ = BeforeSuite(func() {
By("bootstrapping test environment")
testEnv = &envtest.Environment{
CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")},
CRDDirectoryPaths: []string{
filepath.Join("..", "config", "crd", "bases"),
filepath.Join("..", "external", "github.com", "medik8s", "node-maintenance-operator", "config", "crd", "bases"),
},
ErrorIfCRDPathMissing: true,
}
@ -62,6 +66,8 @@ var _ = BeforeSuite(func() {
err = updatev1alpha1.AddToScheme(scheme.Scheme)
Expect(err).NotTo(HaveOccurred())
err = nodemaintenancev1beta1.AddToScheme(scheme.Scheme)
Expect(err).NotTo(HaveOccurred())
//+kubebuilder:scaffold:scheme