Skip to content

fix: Update API's to work for OpenShift 4.9 #556

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

Merged
merged 7 commits into from
Aug 25, 2021
Merged

Conversation

JPinkney
Copy link
Contributor

@JPinkney JPinkney commented Aug 20, 2021

What does this PR do?

This PR builds off of #540 to make everything work for both OpenShift 4.8 and 4.9

What issues does this PR fix or reference?

Is it tested? How?

PR Checklist

  • E2E tests pass (when PR is ready, comment /test v7-devworkspaces-operator-e2e, v7-devworkspace-happy-path to trigger)
    • v7-devworkspaces-operator-e2e: DevWorkspace e2e test
    • v7-devworkspace-happy-path: DevWorkspace e2e test

amisevsk and others added 4 commits August 20, 2021 11:15
extensions/v1beta1 Ingresses are deprecated as of k8s v1.14 and will be
removed in v1.22

Signed-off-by: Angel Misevski <[email protected]>
(cherry picked from commit 22891c4)
Required as v1beta1 webhooks will be unavailable soon.

Also update webhooks configs to apply to v1 Ingresses on k8s
(networking.k8s.io API group)

Signed-off-by: Angel Misevski <[email protected]>
(cherry picked from commit 39969c2)
@openshift-ci
Copy link

openshift-ci bot commented Aug 20, 2021

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@JPinkney JPinkney changed the title WIP: Update API's to work for OpenShift 4.9 Update API's to work for OpenShift 4.9 Aug 24, 2021
@JPinkney JPinkney marked this pull request as ready for review August 24, 2021 16:54
@sleshchenko sleshchenko changed the title Update API's to work for OpenShift 4.9 fix: Update API's to work for OpenShift 4.9 Aug 25, 2021
@sleshchenko
Copy link
Member

/test v7-devworkspaces-operator-e2e, v7-devworkspace-happy-path

APIGroups: []string{"controller.devfile.io"},
APIVersions: []string{"v1alpha1"},
Resources: []string{"devworkspaceroutings", "components"},
},
},
},
AdmissionReviewVersions: []string{"v1beta1", "v1"},
Copy link
Member

Choose a reason for hiding this comment

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

why it's needed? when should we remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IIRC On OpenShift 4.9 it failed without it. I'll double check again though

Copy link
Member

Choose a reason for hiding this comment

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

OK, seems I reproduced the issue you talk about on OpenShift 4.9

Error from server (InternalError): error when creating "./samples/flattened_theia-next.yaml": Internal error occurred: failed calling webhook "mutate.devworkspace-controller.svc": received invalid webhook response: expected response.uid="07b5b66c-0d84-48bb-939f-c4f6bdcaf3a5", got ""

I assume we should be able to remove it after we upgrade controller-runtime in Angel's PR.

@openshift-ci
Copy link

openshift-ci bot commented Aug 25, 2021

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

Test name Commit Details Rerun command
ci/prow/v7-devworkspace-happy-path da3da5e link /test v7-devworkspace-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.

@sleshchenko
Copy link
Member

happy path test fails due #484

@sleshchenko
Copy link
Member

waiting for my OpenShift 4.8, 4.9 clusters to test these changes.

@sleshchenko
Copy link
Member

/test v7-devworkspaces-operator-e2e

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.

Tested on minikube v1.22.0, OpenShift 4.8 and 4.9 and everything seems to work fine.

@openshift-ci
Copy link

openshift-ci bot commented Aug 25, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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,sleshchenko]

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

@sleshchenko sleshchenko merged commit d99fe14 into main Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants