Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
EVEREST-203 Generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
gen1us2k committed Sep 25, 2023
1 parent 23f7073 commit a0cf96a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
3 changes: 3 additions & 0 deletions pkg/install/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import (
//go:generate ../../bin/mockery --name=everestClientConnector --case=snake --inpackage --testonly

type everestClientConnector interface {
ListKubernetesClusters(
ctx context.Context,
) ([]client.KubernetesCluster, error)
RegisterKubernetesCluster(
ctx context.Context,
body client.RegisterKubernetesClusterJSONRequestBody,
Expand Down
28 changes: 27 additions & 1 deletion pkg/install/mock_everest_client_connector_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/install/operators.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,9 @@ func (o *Operators) connectToEverest(ctx context.Context) (*client.KubernetesClu
return nil, errors.Join(err, errors.New("could not list kubernetes clusters"))
}
for _, cluster := range clusters {
if cluster.Name == &o.config.Name {
if cluster.Name == o.config.Name {
// Cluster is already registered. Do nothing
return cluster, nil
return &cluster, nil
}
}
if err := o.prepareServiceAccount(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/kubernetes/client/mock_kube_client_connector.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a0cf96a

Please sign in to comment.