Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Martin <[email protected]>
  • Loading branch information
d80tb7 committed Feb 12, 2024
1 parent e84e073 commit 992cc1c
Show file tree
Hide file tree
Showing 27 changed files with 14 additions and 1,073 deletions.
13 changes: 0 additions & 13 deletions build/queryapi/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions build_goreleaser/queryapi/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions deployment/queryapi/Chart.yaml

This file was deleted.

43 changes: 0 additions & 43 deletions deployment/queryapi/templates/_helpers.tpl

This file was deleted.

95 changes: 0 additions & 95 deletions deployment/queryapi/templates/deployment.yaml

This file was deleted.

43 changes: 0 additions & 43 deletions deployment/queryapi/templates/ingress.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions deployment/queryapi/templates/secret.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions deployment/queryapi/templates/service.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions deployment/queryapi/templates/serviceaccount.yaml

This file was deleted.

42 changes: 0 additions & 42 deletions deployment/queryapi/values.yaml

This file was deleted.

1 change: 0 additions & 1 deletion internal/armada/permissions/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ const (
WatchAllEvents = "watch_all_events"
CreateQueue = "create_queue"
DeleteQueue = "delete_queue"
ExecuteJobs = "execute_jobs"
CordonNodes = "cordon_nodes"
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package server
package queryapi

import (
"context"

"github.com/jackc/pgx/v5/pgxpool"

"github.com/armadaproject/armada/internal/armada/queryapi/database"
"github.com/armadaproject/armada/internal/common/database/lookout"
"github.com/armadaproject/armada/internal/queryapi/database"
"github.com/armadaproject/armada/pkg/queryapi"

Check failure on line 10 in internal/armada/queryapi/query_api.go

View workflow job for this annotation

GitHub Actions / python-client-integration-tests

no required module provides package github.com/armadaproject/armada/pkg/queryapi; to add it:

Check failure on line 10 in internal/armada/queryapi/query_api.go

View workflow job for this annotation

GitHub Actions / airflow-integration-tests

no required module provides package github.com/armadaproject/armada/pkg/queryapi; to add it:
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package server
package queryapi

import (
"context"
Expand Down
8 changes: 8 additions & 0 deletions internal/armada/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package armada
import (
"context"
"fmt"
"github.com/armadaproject/armada/internal/armada/queryapi"
"math"
"net"
"time"
Expand Down Expand Up @@ -256,8 +257,15 @@ func Serve(ctx *armadacontext.Context, config *configuration.ArmadaConfig, healt
jobRepository,
)

queryDb, err := database.OpenPgxPool(config.Postgres)
if err != nil {
return errors.WithMessage(err, "error creating postgres pool")
}
queryapiServer := queryapi.New(queryDb)

api.RegisterSubmitServer(grpcServer, pulsarSubmitServer)
api.RegisterEventServer(grpcServer, eventServer)
api.RegisterQueryApiServer(grpcServer, queryapiServer)

Check failure on line 268 in internal/armada/server.go

View workflow job for this annotation

GitHub Actions / lint / Lint Go

undefined: api.RegisterQueryApiServer (typecheck)
schedulerobjects.RegisterSchedulerReportingServer(grpcServer, schedulingReportsServer)
grpc_prometheus.Register(grpcServer)

Expand Down
Loading

0 comments on commit 992cc1c

Please sign in to comment.