mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
[node operator] Add nodemaintenance CRD
Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
1cc8c36052
commit
be27de3b71
3 changed files with 90 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue