Skip to content

Commit

Permalink
merge release
Browse files Browse the repository at this point in the history
  • Loading branch information
nxtcoder19 committed Sep 23, 2024
2 parents 95b1fd2 + 50094a4 commit d106908
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 79 deletions.
35 changes: 16 additions & 19 deletions gql-queries-generator/doc/queries.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -6482,6 +6482,22 @@ query authCli_getRemoteLogin($loginId: String!, $secret: String!) {
}
}

query authCli_listAccountClusters($pagination: CursorPaginationIn) {
infra_listBYOKClusters(pagination: $pagination) {
edges {
node {
clusterToken
displayName
id
metadata {
name
labels
}
}
}
}
}

mutation authCli_createClusterReference($cluster: BYOKClusterIn!) {
infra_createBYOKCluster(cluster: $cluster) {
id
Expand Down Expand Up @@ -6626,25 +6642,6 @@ query authCli_listImportedManagedResources($envName: String!, $search: SearchImp
}
}

query authCli_listByokClusters($search: SearchCluster, $pagination: CursorPaginationIn) {
infra_listBYOKClusters(search: $search, pagination: $pagination) {
edges {
cursor
node {
clusterToken
displayName
id
metadata {
name
namespace
}
updateTime
}
}
totalCount
}
}

mutation authSetRemoteAuthHeader($loginId: String!, $authHeader: String) {
auth_setRemoteAuthHeader(loginId: $loginId, authHeader: $authHeader)
}
Expand Down
54 changes: 23 additions & 31 deletions src/apps/auth/server/gql/cli-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,29 @@ export const cliQueries = (executor: IExecutor) => ({
vars: (_: any) => {},
}
),
cli_listAccountClusters: executor(
gql`
query Infra_listBYOKClusters($pagination: CursorPaginationIn) {
infra_listBYOKClusters(pagination: $pagination) {
edges {
node {
clusterToken
displayName
id
metadata {
name
labels
}
}
}
}
}
`,
{
transformer: (data: any) => data.infra_listBYOKClusters,
vars(_: any) {},
}
),
cli_createClusterReference: executor(
gql`
mutation Infra_createBYOKCluster($cluster: BYOKClusterIn!) {
Expand Down Expand Up @@ -905,35 +928,4 @@ export const cliQueries = (executor: IExecutor) => ({
vars(_: any) {},
}
),
cli_listByokClusters: executor(
gql`
query Infra_listBYOKClusters(
$search: SearchCluster
$pagination: CursorPaginationIn
) {
infra_listBYOKClusters(search: $search, pagination: $pagination) {
edges {
cursor
node {
clusterToken
displayName
id
metadata {
name
namespace
}
updateTime
}
}
totalCount
}
}
`,
{
transformer: (data: any) => {
return data.infra_listBYOKClusters;
},
vars(_: any) {},
}
),
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ export const RegistryImageInstruction = ({
const { data, isLoading, error } = useCustomSwr(
'registry-image-instructions',
async () => {
return api.getRegistryImageUrl({
// image: '<image_name:image_tag>',
// meta: {},
});
return api.getRegistryImageUrl();
}
);

Expand Down
8 changes: 4 additions & 4 deletions src/apps/console/server/gql/queries/registry-image-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const registryImagesQueries = (executor: IExecutor) => ({
{
transformer: (data: ConsoleDeleteRegistryImageMutation) =>
data.core_deleteRegistryImage,
vars(_: ConsoleDeleteRegistryImageMutationVariables) { },
vars(_: ConsoleDeleteRegistryImageMutationVariables) {},
}
),
getRegistryImage: executor(
Expand All @@ -51,7 +51,7 @@ export const registryImagesQueries = (executor: IExecutor) => ({
{
transformer: (data: ConsoleGetRegistryImageQuery) =>
data.core_getRegistryImage,
vars(_: ConsoleGetRegistryImageQueryVariables) { },
vars(_: ConsoleGetRegistryImageQueryVariables) {},
}
),
getRegistryImageUrl: executor(
Expand All @@ -66,7 +66,7 @@ export const registryImagesQueries = (executor: IExecutor) => ({
{
transformer: (data: ConsoleGetRegistryImageUrlQuery) =>
data.core_getRegistryImageURL,
vars(_: ConsoleGetRegistryImageUrlQueryVariables) { },
vars(_: ConsoleGetRegistryImageUrlQueryVariables) {},
}
),
listRegistryImages: executor(
Expand Down Expand Up @@ -101,7 +101,7 @@ export const registryImagesQueries = (executor: IExecutor) => ({
transformer: (data: ConsoleListRegistryImagesQuery) => {
return data.core_listRegistryImages;
},
vars(_: ConsoleListRegistryImagesQueryVariables) { },
vars(_: ConsoleListRegistryImagesQueryVariables) {},
}
),
});
38 changes: 17 additions & 21 deletions src/generated/gql/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8132,6 +8132,23 @@ export type AuthCli_GetRemoteLoginQuery = {
auth_getRemoteLogin?: { authHeader?: string; status: string };
};

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

export type AuthCli_ListAccountClustersQuery = {
infra_listBYOKClusters?: {
edges: Array<{
node: {
clusterToken: string;
displayName: string;
id: string;
metadata: { name: string; labels?: any };
};
}>;
};
};

export type AuthCli_CreateClusterReferenceMutationVariables = Exact<{
cluster: ByokClusterIn;
}>;
Expand Down Expand Up @@ -8275,27 +8292,6 @@ export type AuthCli_ListImportedManagedResourcesQuery = {
};
};

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

export type AuthCli_ListByokClustersQuery = {
infra_listBYOKClusters?: {
totalCount: number;
edges: Array<{
cursor: string;
node: {
clusterToken: string;
displayName: string;
id: string;
updateTime: any;
metadata: { name: string; namespace?: string };
};
}>;
};
};

export type AuthSetRemoteAuthHeaderMutationVariables = Exact<{
loginId: Scalars['String']['input'];
authHeader?: InputMaybe<Scalars['String']['input']>;
Expand Down

0 comments on commit d106908

Please sign in to comment.