diff --git a/elasticsearchdashboard/client.go b/elasticsearchdashboard/client.go index cb9bbaa84..7cc4d5c84 100644 --- a/elasticsearchdashboard/client.go +++ b/elasticsearchdashboard/client.go @@ -23,7 +23,7 @@ import ( catalog "kubedb.dev/apimachinery/apis/catalog/v1alpha1" esapi "kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1" - api "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + api "kubedb.dev/apimachinery/apis/kubedb/v1" core "k8s.io/api/core/v1" "sigs.k8s.io/controller-runtime/pkg/client" diff --git a/elasticsearchdashboard/kubedb-client-builder.go b/elasticsearchdashboard/kubedb-client-builder.go index 6c4daca7b..f0600f296 100644 --- a/elasticsearchdashboard/kubedb-client-builder.go +++ b/elasticsearchdashboard/kubedb-client-builder.go @@ -27,7 +27,7 @@ import ( catalog "kubedb.dev/apimachinery/apis/catalog/v1alpha1" esapi "kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1" - "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + dbapi "kubedb.dev/apimachinery/apis/kubedb/v1" "github.com/Masterminds/semver/v3" "github.com/go-resty/resty/v2" @@ -41,7 +41,7 @@ import ( type KubeDBClientBuilder struct { kc client.Client dashboard *esapi.ElasticsearchDashboard - db *v1alpha2.Elasticsearch + db *dbapi.Elasticsearch dbVersion *catalog.ElasticsearchVersion dbVersionInfo *DbVersionInfo authSecret *core.Secret @@ -72,7 +72,7 @@ func (o *KubeDBClientBuilder) WithAuthSecret(secret *core.Secret) *KubeDBClientB return o } -func (o *KubeDBClientBuilder) WithDatabaseRef(db *v1alpha2.Elasticsearch) *KubeDBClientBuilder { +func (o *KubeDBClientBuilder) WithDatabaseRef(db *dbapi.Elasticsearch) *KubeDBClientBuilder { o.db = db return o }