Skip to content
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

Merged
merged 5 commits into from
Oct 26, 2022

Conversation

akurinnoy
Copy link
Contributor

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 property spec.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?

@akurinnoy akurinnoy requested a review from ibuziuk October 21, 2022 11:13
@akurinnoy akurinnoy self-assigned this Oct 21, 2022
@akurinnoy akurinnoy requested a review from olexii4 as a code owner October 21, 2022 11:13
@che-bot
Copy link
Contributor

che-bot commented Oct 21, 2022

Click here to review and test in web IDE: Contribute

@@ -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)}`);
Copy link
Contributor

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 } = {};
Copy link
Contributor

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

Copy link
Contributor

@olexii4 olexii4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openshift-ci openshift-ci bot removed the lgtm label Oct 21, 2022
@che-bot
Copy link
Contributor

che-bot commented Oct 21, 2022

Click here to review and test in web IDE: Contribute

@github-actions
Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-655

@che-bot
Copy link
Contributor

che-bot commented Oct 21, 2022

Click here to review and test in web IDE: Contribute

@github-actions
Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-655

@openshift-ci
Copy link

openshift-ci bot commented Oct 21, 2022

@akurinnoy: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v10-images 181d14d link true /test v10-images
ci/prow/v10-dashboard-happy-path 181d14d link true /test v10-dashboard-happy-path

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.

@openshift-ci
Copy link

openshift-ci bot commented Oct 21, 2022

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@akurinnoy akurinnoy merged commit e5eb307 into main Oct 26, 2022
@akurinnoy akurinnoy deleted the che-21756 branch October 26, 2022 13:15
@che-bot che-bot added this to the 7.56 milestone Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dashboard should inject controller.devfile.io/scc: container-build based on the CR property
4 participants