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

Restore v1alpha1 DevWorkspace CRD #738

Merged
merged 2 commits into from
Jan 26, 2022
Merged

Conversation

amisevsk
Copy link
Contributor

What does this PR do?:

This commit effectively reverts #639, restoring the v1alpha1 version of the DevWorkspace to the devfile API. This is required as, after we merged the PR above, we discovered that the OpenShift Console still depends on the v1alpha1 apiVersion.

Which issue(s) this PR fixes:

Closes #721

PR acceptance criteria:

  • Unit/Functional tests

  • QE Integration test

    • I believe no changes are required here
  • Documentation

    • Documenation is unchanged
  • Client Impact

    • No breaking changes

How to test changes / Special notes to the reviewer:

Test that v1alpha1 API is restored to CRDs. The Devfile schema should be unchanged.

Copy link
Contributor

@yangcao77 yangcao77 left a comment

Choose a reason for hiding this comment

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

Since it's a revert of #639 , I don't see any difference compare with files before changes in #639 . Just need to add one missing vendor.

@yangcao77
Copy link
Contributor

changes look good. just need to pass the ci, and I will add the label.

@amisevsk
Copy link
Contributor Author

Running build.sh makes no changes locally, and trying ./docker-run.sh ./build.sh gives

check ./build.sh
Building image quay.io/devfile/kubernetes-api-build-prerequisites:latest...[OK]
Running ./build.sh
bash: line 1: ./build.sh: Permission denied
Fail to run the script

🤔

The v1alpha1 apiVersion of the DevWorkspace (and DevWorkspaceTemplate)
CRD was removed prematurely as there are existing users that depend on
it.

This commit restores the v1alpha1 API as removed in PR devfile#639 in order to
allow dependents of the DevWorkspace API to update to later versions of
the v1alpha2 API without breaking v1alpha1 compatibility.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Jan 25, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: amisevsk, yangcao77

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

@amisevsk amisevsk merged commit f6d7cd8 into devfile:main Jan 26, 2022
@amisevsk amisevsk deleted the restore-v1alpha1 branch January 26, 2022 14:41
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.

Restore v1alpha1 DevWorkspace and DevWorkspaceTemplate CRDs
2 participants