Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli query for listing of byok clusters added #231

Closed
wants to merge 1 commit into from
Closed
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
14 changes: 14 additions & 0 deletions gql-queries-generator/doc/queries.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -6407,6 +6407,20 @@ query authCli_listClusters($pagination: CursorPaginationIn) {
}
}

query authCli_listByokClusters($pagination: CursorPaginationIn) {
infra_listBYOKClusters(pagination: $pagination) {
edges {
node {
displayName
metadata {
name
}
lastOnlineAt
}
}
}
}

query authCli_listAccounts {
accounts_listAccounts {
metadata {
Expand Down
21 changes: 21 additions & 0 deletions src/apps/auth/server/gql/cli-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,27 @@ export const cliQueries = (executor: IExecutor) => ({
vars: (_: any) => {},
}
),
cli_listByokClusters: executor(
gql`
query Node($pagination: CursorPaginationIn) {
infra_listBYOKClusters(pagination: $pagination) {
edges {
node {
displayName
metadata {
name
}
lastOnlineAt
}
}
}
}
`,
{
transformer: (data: any) => data.infra_listBYOKClusters,
vars: (_: any) => {},
}
),
cli_listAccounts: executor(
gql`
query Accounts_listAccounts {
Expand Down
3 changes: 3 additions & 0 deletions src/generated/gql/sdl.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ type BYOKCluster {
displayName: String!
globalVPN: String!
id: ID!
lastOnlineAt: Date
lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy!
markedForDeletion: Boolean
messageQueueTopicName: String!
Expand Down Expand Up @@ -265,6 +266,7 @@ type Cluster {
globalVPN: String
id: ID!
kind: String
lastOnlineAt: Date
lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy!
markedForDeletion: Boolean
metadata: Metadata!
Expand Down Expand Up @@ -598,6 +600,7 @@ type Environment {
creationTime: Date!
displayName: String!
id: ID!
isArchived: Boolean
kind: String
lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy!
markedForDeletion: Boolean
Expand Down
16 changes: 16 additions & 0 deletions src/generated/gql/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7996,6 +7996,22 @@ export type AuthCli_ListClustersQuery = {
};
};

export type AuthCli_ListByokClustersQueryVariables = Exact<{
pagination?: InputMaybe<CursorPaginationIn>;
}>;

export type AuthCli_ListByokClustersQuery = {
infra_listBYOKClusters?: {
edges: Array<{
node: {
displayName: string;
lastOnlineAt?: any;
metadata: { name: string };
};
}>;
};
};

export type AuthCli_ListAccountsQueryVariables = Exact<{
[key: string]: never;
}>;
Expand Down
Loading