Skip to content

Commit

Permalink
cli query update for creating cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
nxtcoder36 committed Sep 9, 2024
1 parent 0241725 commit 59eaaee
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 1 deletion.
1 change: 1 addition & 0 deletions gql-queries-generator/doc/queries.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -6421,6 +6421,7 @@ query authCli_getRemoteLogin($loginId: String!, $secret: String!) {
mutation authCli_createClusterReference($cluster: BYOKClusterIn!) {
infra_createBYOKCluster(cluster: $cluster) {
id
clusterToken
metadata {
name
}
Expand Down
1 change: 1 addition & 0 deletions src/apps/auth/server/gql/cli-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ export const cliQueries = (executor: IExecutor) => ({
mutation Infra_createBYOKCluster($cluster: BYOKClusterIn!) {
infra_createBYOKCluster(cluster: $cluster) {
id
clusterToken
metadata {
name
}
Expand Down
84 changes: 84 additions & 0 deletions src/generated/gql/sdl.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type App {
lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy!
markedForDeletion: Boolean
metadata: Metadata
onlineStatus: OnlineStatus
recordVersion: Int!
serviceHost: String
spec: Github__com___kloudlite___operator___apis___crds___v1__AppSpec!
Expand Down Expand Up @@ -425,6 +426,7 @@ enum ConsoleResType {
imported_managed_resource
managed_resource
managed_service
registry_image
router
secret
vpn_device
Expand Down Expand Up @@ -577,6 +579,7 @@ type Environment {
lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy!
markedForDeletion: Boolean
metadata: Metadata
onlineStatus: OnlineStatus
recordVersion: Int!
spec: Github__com___kloudlite___operator___apis___crds___v1__EnvironmentSpec
status: Github__com___kloudlite___operator___pkg___operator__Status
Expand Down Expand Up @@ -2214,6 +2217,7 @@ type ImportedManagedResource {
managedResourceRef: Github__com___kloudlite___api___apps___console___internal___entities__ManagedResourceRef!
markedForDeletion: Boolean
name: String!
onlineStatus: OnlineStatus
recordVersion: Int!
secretRef: Github__com___kloudlite___operator___apis___common____types__SecretRef!
syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus!
Expand Down Expand Up @@ -3580,6 +3584,7 @@ type Mutation {
core_deleteImagePullSecret(name: String!): Boolean!
core_deleteImportedManagedResource(envName: String!, importName: String!): Boolean!
core_deleteManagedResource(mresName: String!, msvcName: String!): Boolean!
core_deleteRegistryImage(image: String!): Boolean!
core_deleteRouter(envName: String!, routerName: String!): Boolean!
core_deleteSecret(envName: String!, secretName: String!): Boolean!
core_importManagedResource(envName: String!, importName: String!, mresName: String!, msvcName: String!): ImportedManagedResource
Expand Down Expand Up @@ -3813,6 +3818,11 @@ type OAuthProviderStatus {
provider: String!
}

type OnlineStatus {
lastOnlineAt: Date!
willBeOfflineAt: Date!
}

type PageInfo {
endCursor: String
hasNextPage: Boolean
Expand Down Expand Up @@ -3940,6 +3950,8 @@ type Query {
core_getManagedResouceOutputKeys(envName: String, msvcName: String, name: String!): [String!]!
core_getManagedResouceOutputKeyValues(envName: String, keyrefs: [ManagedResourceKeyRefIn], msvcName: String): [ManagedResourceKeyValueRef!]!
core_getManagedResource(envName: String, msvcName: String, name: String!): ManagedResource
core_getRegistryImage(image: String!): RegistryImage
core_getRegistryImageURL(image: String!, meta: Map!): RegistryImageURL!
core_getRouter(envName: String!, name: String!): Router
core_getSecret(envName: String!, name: String!): Secret
core_getSecretValues(envName: String!, queries: [SecretKeyRefIn!]): [SecretKeyValueRef!]
Expand All @@ -3950,6 +3962,7 @@ type Query {
core_listImagePullSecrets(pq: CursorPaginationIn, search: SearchImagePullSecrets): ImagePullSecretPaginatedRecords
core_listImportedManagedResources(envName: String!, pq: CursorPaginationIn, search: SearchImportedManagedResources): ImportedManagedResourcePaginatedRecords
core_listManagedResources(pq: CursorPaginationIn, search: SearchManagedResources): ManagedResourcePaginatedRecords
core_listRegistryImages(pq: CursorPaginationIn): RegistryImagePaginatedRecords
core_listRouters(envName: String!, pq: CursorPaginationIn, search: SearchRouters): RouterPaginatedRecords
core_listSecrets(envName: String!, pq: CursorPaginationIn, search: SearchSecrets): SecretPaginatedRecords
core_restartApp(appName: String!, envName: String!): Boolean!
Expand Down Expand Up @@ -4021,6 +4034,73 @@ type Query {
oAuth_requestLogin(provider: String!, state: String): URL!
}

type RegistryImage {
accountName: String!
creationTime: Date!
id: ID!
imageName: String!
imageTag: String!
markedForDeletion: Boolean
meta: Map!
recordVersion: Int!
updateTime: Date!
}

type RegistryImageCredentials {
accountName: String!
createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy!
creationTime: Date!
id: ID!
markedForDeletion: Boolean
password: String!
recordVersion: Int!
updateTime: Date!
}

type RegistryImageCredentialsEdge {
cursor: String!
node: RegistryImageCredentials!
}

input RegistryImageCredentialsIn {
accountName: String!
password: String!
}

type RegistryImageCredentialsPaginatedRecords {
edges: [RegistryImageCredentialsEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}

type RegistryImageEdge {
cursor: String!
node: RegistryImage!
}

input RegistryImageIn {
accountName: String!
imageName: String!
imageTag: String!
meta: Map!
}

type RegistryImagePaginatedRecords {
edges: [RegistryImageEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}

type RegistryImageURL {
scriptUrl: String!
url: String!
}

input RegistryImageURLIn {
scriptUrl: String!
url: String!
}

type RemoteLogin {
authHeader: String
status: String!
Expand Down Expand Up @@ -4255,6 +4335,10 @@ input SearchProviderSecret {
text: MatchFilterIn
}

input SearchRegistryImages {
text: MatchFilterIn
}

input SearchRepos {
text: MatchFilterIn
}
Expand Down
28 changes: 27 additions & 1 deletion src/generated/gql/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export type ConsoleResType =
| 'imported_managed_resource'
| 'managed_resource'
| 'managed_service'
| 'registry_image'
| 'router'
| 'secret'
| 'vpn_device';
Expand Down Expand Up @@ -1754,6 +1755,23 @@ export type PortIn = {
targetPort?: InputMaybe<Scalars['Int']['input']>;
};

export type RegistryImageCredentialsIn = {
accountName: Scalars['String']['input'];
password: Scalars['String']['input'];
};

export type RegistryImageIn = {
accountName: Scalars['String']['input'];
imageName: Scalars['String']['input'];
imageTag: Scalars['String']['input'];
meta: Scalars['Map']['input'];
};

export type RegistryImageUrlIn = {
scriptUrl: Scalars['String']['input'];
url: Scalars['String']['input'];
};

export type SearchProjectManagedService = {
isReady?: InputMaybe<MatchFilterIn>;
managedServiceName?: InputMaybe<MatchFilterIn>;
Expand All @@ -1767,6 +1785,10 @@ export type SearchProjects = {
text?: InputMaybe<MatchFilterIn>;
};

export type SearchRegistryImages = {
text?: InputMaybe<MatchFilterIn>;
};

export type SecretKeyValueRefIn = {
key: Scalars['String']['input'];
secretName: Scalars['String']['input'];
Expand Down Expand Up @@ -8041,7 +8063,11 @@ export type AuthCli_CreateClusterReferenceMutationVariables = Exact<{
}>;

export type AuthCli_CreateClusterReferenceMutation = {
infra_createBYOKCluster?: { id: string; metadata: { name: string } };
infra_createBYOKCluster?: {
id: string;
clusterToken: string;
metadata: { name: string };
};
};

export type AuthCli_DeleteClusterReferenceMutationVariables = Exact<{
Expand Down

0 comments on commit 59eaaee

Please sign in to comment.