Skip to content

Commit

Permalink
Merge pull request #57 from kloudlite/features/release-checklist
Browse files Browse the repository at this point in the history
Features/release-checklist
  • Loading branch information
karthik1729 authored Dec 24, 2023
2 parents a47ac94 + 9fc6b6d commit 10d6171
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/apps/auth/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const restActions = async (ctx: IExtRemixCtx) => {
const { data, errors } = await GQLServerHandler(
ctx.request
).setRemoteAuthHeader({
loginId: cookie.get('cliLogin'),
loginId: cookie.get('cliLogin') || '',
authHeader: ctx?.request?.headers?.get('cookie'),
});

Expand Down
4 changes: 2 additions & 2 deletions src/apps/console/components/commons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { WorkspacesLogo } from '~/components/branding/workspace-logo';
import useClipboard from '~/root/lib/client/hooks/use-clipboard';
import { generateKey, titleCase } from '~/components/utils';
import {
Kloudlite__Io___Pkg___Types__SyncStatusState as SyncState,
Kloudlite__Io___Pkg___Types__SyncStatusAction as SyncAction,
Github__Com___Kloudlite___Api___Pkg___Types__SyncStatusState as SyncState,
Github__Com___Kloudlite___Api___Pkg___Types__SyncStatusAction as SyncAction,
} from '~/root/src/generated/gql/server';
import Tooltip from '~/components/atoms/tooltip';
import { Link } from '@remix-run/react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const HandleBackendResources = ({
};
}, {}),
}),
onSubmit: async (val) => {
onSubmit: async (_) => {
try {
const { errors: e } = await api.createManagedResource({
mres: {
Expand All @@ -113,17 +113,20 @@ const HandleBackendResources = ({
namespace: parseTargetNs(workspace),
},
spec: {
mresKind: {
kind: selectedType?.resource.kind || '',
},
msvcRef: {
apiVersion: template.apiVersion || '',
name: parseName(backendService),
kind: template.kind!,
},
inputs: {
...val,
resourceTemplate: {
spec: ``,
msvcRef: {
apiVersion: template.apiVersion || '',
name: parseName(backendService),
kind: template.kind!,
},
},
// mresKind: {
// kind: selectedType?.resource.kind || '',
// },
// inputs: {
// ...val,
// },
},
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ const BackingResources = () => {
template={
getManagedTemplate({
templates: managedTemplates,
kind: backendService.spec.msvcKind.kind || '',
apiVersion: backendService.spec.msvcKind.apiVersion,
kind: backendService.spec.serviceTemplate.kind || '',
apiVersion: backendService.spec.serviceTemplate.apiVersion,
})!
}
setShow={setShowBackendResourceDialog}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const parseItem = (
) => {
const template = getManagedTemplate({
templates,
kind: item.spec.msvcKind.kind || '',
apiVersion: item.spec.msvcKind.apiVersion,
kind: item.spec.serviceTemplate.kind || '',
apiVersion: item.spec.serviceTemplate.apiVersion,
});
return {
name: item?.displayName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,18 @@ const HandleBackendService = ({
annotations: {},
},
spec: {
msvcKind: {
apiVersion: selectedService?.service.apiVersion || '',
kind: selectedService?.service.kind || '',
},
inputs: {
...tempVal,
serviceTemplate: {
spec: {
...tempVal,
},
},
// msvcKind: {
// apiVersion: selectedService?.service.apiVersion || '',
// kind: selectedService?.service.kind || '',
// },
// inputs: {
// ...tempVal,
// },
},
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useConsoleApi } from '~/console/server/gql/api-provider';
import useForm from '~/root/lib/client/hooks/use-form';
import Yup from '~/root/lib/server/helpers/yup';
import { handleError } from '~/root/lib/utils/common';
import { Kloudlite__Io___Apps___Iam___Types__Role as Role } from '~/root/src/generated/gql/server';
import { Github__Com___Kloudlite___Api___Apps___Iam___Types__Role as Role } from '~/root/src/generated/gql/server';
import { parseName } from '~/console/server/r-utils/common';
import { IAccountContext } from '../_.$account';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { titleCase, useMapper } from '~/components/utils';
import useForm from '~/root/lib/client/hooks/use-form';
import Yup from '~/root/lib/server/helpers/yup';
import { handleError } from '~/root/lib/utils/common';
import { Kloudlite__Io___Apps___Iam___Types__Role as Role } from '~/root/src/generated/gql/server';
import { Github__Com___Kloudlite___Api___Apps___Iam___Types__Role as Role } from '~/root/src/generated/gql/server';
import { ListBody, ListItem } from '../components/console-list-components';
import DynamicPagination from '../components/dynamic-pagination';
import List from '../components/list';
Expand Down
4 changes: 2 additions & 2 deletions src/apps/console/server/r-utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
Github__Com___Kloudlite___Operator___Apis___Common____Types__CloudProvider as CloudProvider,
Github__Com___Kloudlite___Operator___Apis___Clusters___V1__ClusterSpecAvailabilityMode as AvailabilityMode,
ProjectId,
Kloudlite__Io___Pkg___Types__SyncStatusAction as SyncStatusAction,
Kloudlite__Io___Pkg___Types__SyncStatusState as SyncStatusState,
Github__Com___Kloudlite___Api___Pkg___Types__SyncStatusAction as SyncStatusAction,
Github__Com___Kloudlite___Api___Pkg___Types__SyncStatusState as SyncStatusState,
WorkspaceOrEnvId,
} from '~/root/src/generated/gql/server';

Expand Down

0 comments on commit 10d6171

Please sign in to comment.