From 1b03875a5fd00c30c475f8e2fde83bdc84f60849 Mon Sep 17 00:00:00 2001 From: Mohammad Yosefpor Date: Mon, 28 Feb 2022 04:03:07 +0330 Subject: [PATCH] fix: add grafana crd to scheme --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 1a1eba0..c0f5a6c 100644 --- a/main.go +++ b/main.go @@ -24,6 +24,7 @@ import ( // to ensure that exec-entrypoint and run can make use of them. _ "k8s.io/client-go/plugin/pkg/client/auth" + grafanav1alpha1 "github.com/grafana-operator/grafana-operator/v4/api/integreatly/v1alpha1" "k8s.io/apimachinery/pkg/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime" clientgoscheme "k8s.io/client-go/kubernetes/scheme" @@ -43,6 +44,7 @@ var ( func init() { utilruntime.Must(clientgoscheme.AddToScheme(scheme)) + utilruntime.Must(grafanav1alpha1.AddToScheme(scheme)) //+kubebuilder:scaffold:scheme }