Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .tools/nvim/__http__/infra/byok-clusters.graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@ variables:
metadata:
name: "{{.clusterName}}"
---

---
label: Setup Instructions
query: |+
query Infra_getBYOKClusterSetupInstructions($name: String!) {
infrat_getBYOKClusterSetupInstructions(name: $name) {
title
command
}
}
variables:
name: "gke-autopilot-1"
---
14 changes: 14 additions & 0 deletions apps/console/internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package app

import (
"context"
"github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console"
"github.com/kloudlite/api/pkg/k8s"

"github.com/kloudlite/api/pkg/errors"

Expand Down Expand Up @@ -32,6 +34,10 @@ type (
InfraClient grpc.Client
)

type (
ConsoleGrpcServer grpc.Server
)

func toConsoleContext(requestCtx context.Context, accountCookieName string) (domain.ConsoleContext, error) {
sess := httpServer.GetSession[*common.AuthSession](requestCtx)
if sess == nil {
Expand Down Expand Up @@ -142,6 +148,14 @@ var Module = fx.Module("app",

domain.Module,

fx.Provide(func(d domain.Domain, kcli k8s.Client) console.ConsoleServer {
return newConsoleGrpcServer(d, kcli)
}),

fx.Invoke(func(gserver ConsoleGrpcServer, srv console.ConsoleServer) {
console.RegisterConsoleServer(gserver, srv)
}),

fx.Provide(func(jc *nats.JetstreamClient, ev *env.Env, logger logging.Logger) (ErrorOnApplyConsumer, error) {
topic := common.GetPlatformClusterMessagingTopic("*", "*", common.ConsoleReceiver, common.EventErrorOnApply)
consumerName := "console:error-on-apply"
Expand Down
2 changes: 1 addition & 1 deletion apps/console/internal/app/graph/app.resolvers.go

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

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

2 changes: 1 addition & 1 deletion apps/console/internal/app/graph/config.resolvers.go

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

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

2 changes: 1 addition & 1 deletion apps/console/internal/app/graph/entity.resolvers.go

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

2 changes: 1 addition & 1 deletion apps/console/internal/app/graph/environment.resolvers.go

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

2 changes: 1 addition & 1 deletion apps/console/internal/app/graph/externalapp.resolvers.go

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

Loading