mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
[node operator] controller client doubles
Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
daf236975f
commit
9e1cb8ec47
7 changed files with 1014 additions and 89 deletions
|
@ -0,0 +1,20 @@
|
|||
package controllers
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
updatev1alpha1 "github.com/edgelesssys/constellation/operators/constellation-node-operator/api/v1alpha1"
|
||||
nodemaintenancev1beta1 "github.com/medik8s/node-maintenance-operator/api/v1beta1"
|
||||
"github.com/stretchr/testify/require"
|
||||
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
|
||||
)
|
||||
|
||||
func getScheme(t *testing.T) *runtime.Scheme {
|
||||
scheme := runtime.NewScheme()
|
||||
require.NoError(t, clientgoscheme.AddToScheme(scheme))
|
||||
require.NoError(t, updatev1alpha1.AddToScheme(scheme))
|
||||
require.NoError(t, nodemaintenancev1beta1.AddToScheme(scheme))
|
||||
return scheme
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue