Skip to content

Commit

Permalink
Update elasticsearch apiv1 for dashboard
Browse files Browse the repository at this point in the history
Signed-off-by: obaydullahmhs <[email protected]>
  • Loading branch information
obaydullahmhs committed Jul 1, 2024
1 parent 05e5f09 commit b5b87fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion elasticsearchdashboard/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions elasticsearchdashboard/kubedb-client-builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit b5b87fc

Please sign in to comment.