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

Remove plugin registry #252

Merged
merged 7 commits into from
Feb 5, 2021
Merged

Conversation

amisevsk
Copy link
Collaborator

@amisevsk amisevsk commented Jan 27, 2021

What does this PR do?

Removes old code related to devfile v1 and plugin meta.yamls:

  • Remove internal registry and related packages
  • Remove plugin registry from deployment (and the requirement to set plugin registry in configmap)
  • Remove the component controller (the spec for Components is not helpful for what we need to do with DevWorkspaces.)
  • Remove pkg/adaptor since that was used in the component controller

Also has minor fixes for issues I encountered while cleaning up the code:

  • Avoid make logging The connection to the server xxxx was refused - did you specify the right host or port? when not connected to a cluster
  • Fix a nil map warning

This PR leaves the Component CRD in place as we should figure out how to deprecate it in WTO.

What issues does this PR fix or reference?

Follow-up to #237, which removes components from the reconcile process and disables support for plugins. Plugins support is re-implemented in #240, without the use of components or related code.

Is it tested? How?

Tested on minikube and crc.

Additional Information

This PR also makes it easier to support cases like using chectl to deploy this operator, as setting the plugin registry URL in the controller's configmap could be complicated to do at build time.

Copy link
Contributor

@JPinkney JPinkney left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@sleshchenko sleshchenko left a comment

Choose a reason for hiding this comment

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

Approved assuming that WTO related stuff will be restored in #252 or in further PR:

  • default WTO container
  • using WTO plugin by id (at least for time being until we did not find better way)
  • RELATED_IMAGE_ stuff

controllers/workspace/provision/routing.go Outdated Show resolved Hide resolved
controllers/workspace/provision/routing.go Outdated Show resolved Hide resolved
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amisevsk, JPinkney, sleshchenko

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [JPinkney,amisevsk,sleshchenko]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link
Collaborator

New changes are detected. LGTM label has been removed.

amisevsk and others added 7 commits February 5, 2021 15:57
As of PR devfile#23,
plugins in the meta.yaml format are no longer supported. Going forward,
only devfiles specifying plugins according to devfile 2.0 conventions
should be handled by the controller. As a result, it no longer makes
sense to maintain a devfile v1 plugin registry alongside the controller.

This also removes the requirement to resolve the plugin registry URL at
deploy time, simplifying the controller deploy process.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
With the move away from devfile v1 plugin meta.yamls, code related to
adapting devfile v2 to devfile v1 is no longer relevant. This commit
removes

* The component controller and its setup (this controller is not
compatible with devfile 2.0 structures and would require extensive,
breaking changes to adapt)
* The adaptor package, which is used to process dockerimage and plugin
components (devfile v1).
* Internal code for processing plugin meta.yamls

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
The internal plugin registry serves deprecated plugin meta.yaml files,
which are compatible with devfile v1 only.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Kubectl/oc log to stderr if they fail to connect to a cluster, which
results in the platform check logging

  The connection to the server xxxx was refused - did you specify the right
  host or port?

on every invocation if not connected to a cluster.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Co-authored-by: Serhii Leshchenko <sleshche@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
@amisevsk amisevsk force-pushed the remove-plugin-registry branch from 621a1ce to 1f83c92 Compare February 5, 2021 20:57
@amisevsk
Copy link
Collaborator Author

amisevsk commented Feb 5, 2021

I've rebased on master. To make rebasing #263 on top of this easier, I've undone some of the changes (remove meta.yamls from the internal registry and re-add some of the image-handling functions.)

@amisevsk
Copy link
Collaborator Author

amisevsk commented Feb 5, 2021

/test v5-devworkspaces-operator-e2e

@amisevsk amisevsk merged commit 0c5d588 into devfile:master Feb 5, 2021
@amisevsk amisevsk deleted the remove-plugin-registry branch February 5, 2021 22:48
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.

4 participants