-
Notifications
You must be signed in to change notification settings - Fork 52
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
Enable the container build capabilities on workspace startup #655
Conversation
@@ -27,6 +27,6 @@ export async function getServerConfig(): Promise<api.IServerConfig> { | |||
const response = await axios.get(url); | |||
return response.data ? response.data : []; | |||
} catch (e) { | |||
throw `Failed to fetch default plugins. ${common.helpers.errors.getMessage(e)}`; | |||
throw new Error(`Failed to fetch default plugins. ${common.helpers.errors.getMessage(e)}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a wrong message:
'Failed to fetch default plugins...'
@@ -97,7 +98,7 @@ export function devWorkspaceToDevfile(devworkspace: devfileApi.DevWorkspace): de | |||
template.events = devworkspace.spec.template.events; | |||
} | |||
if (devworkspace.spec.template.attributes) { | |||
const devWorkspaceAttributes: { [key: string]: any } = {}; | |||
const devWorkspaceAttributes: { [key: string]: unknown } = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have the needed type:
{ [key: string]: unknown }
=>
DevWorkspaceSpecTemplateAttribute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-655 |
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-655 |
@akurinnoy: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akurinnoy, ibuziuk, olexii4 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What does this PR do?
Inject (or remove) the container build attribute. CR property
spec.devEnvironments.disableContainerBuildCapabilities
defines when to enable the container build capabilities; another CR propertyspec.devEnvironments.containerBuildConfiguration.openShiftSecurityContextConstraint
contains the container build attribute value the dashboard injects on a workspace startup.What issues does this PR fix or reference?
resolves eclipse-che/che#21756
Is it tested? How?