Skip to content

Commit

Permalink
fixup! fixup! fixup! fix: certificate injection
Browse files Browse the repository at this point in the history
  • Loading branch information
olexii4 committed Mar 17, 2023
1 parent 39cfc27 commit d650365
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,12 @@ class StepApplyDevfile extends AbstractLoaderStep<Props, State> {
}

private async createWorkspaceFromDevfile(devfile: devfileApi.Devfile): Promise<void> {
const params = Object.fromEntries(this.props.searchParams);
const optionalFilesContent = this.props.factoryResolver?.optionalFilesContent || {};
await this.props.createWorkspaceFromDevfile(devfile, params, optionalFilesContent);
await this.props.createWorkspaceFromDevfile(
devfile,
this.state.factoryParams,
optionalFilesContent,
);
}

private handleCreateWorkspaceError(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ export type ActionCreators = {
updateWorkspace: (workspace: devfileApi.DevWorkspace) => AppThunk<KnownAction, Promise<void>>;
createWorkspaceFromDevfile: (
devfile: devfileApi.Devfile,
attributes: Partial<FactoryParams>,
attributes: FactoryParams,
optionalFilesContent: {
[fileName: string]: string;
},
) => AppThunk<KnownAction, Promise<void>>;
createWorkspaceFromResources: (
devWorkspace: devfileApi.DevWorkspace,
devWorkspaceTemplate: devfileApi.DevWorkspaceTemplate,
editor?: string,
editorId?: string,
) => AppThunk<KnownAction, Promise<void>>;

handleWebSocketMessage: (
Expand Down Expand Up @@ -574,7 +574,7 @@ export const actionCreators: ActionCreators = {
createWorkspaceFromDevfile:
(
devfile: devfileApi.Devfile,
attributes: Partial<FactoryParams>,
attributes: FactoryParams,
optionalFilesContent: {
[fileName: string]: string;
},
Expand Down
4 changes: 2 additions & 2 deletions packages/dashboard-frontend/src/store/Workspaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export type ActionCreators = {
updateWorkspace: (workspace: Workspace) => AppThunk<KnownAction, Promise<void>>;
createWorkspaceFromDevfile: (
devfile: devfileApi.Devfile,
attributes: Partial<FactoryParams>,
attributes: FactoryParams,
optionalFilesContent?: {
[fileName: string]: string;
},
Expand Down Expand Up @@ -215,7 +215,7 @@ export const actionCreators: ActionCreators = {
createWorkspaceFromDevfile:
(
devfile: devfileApi.Devfile,
attributes: Partial<FactoryParams>,
attributes: FactoryParams,
optionalFilesContent?: {
[fileName: string]: string;
},
Expand Down

0 comments on commit d650365

Please sign in to comment.