-
Notifications
You must be signed in to change notification settings - Fork 54
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
Update devfile/api dependency and populate devworkspace.status.message with info about failures #239
Conversation
* Update Makefile to point at latest devfile/api commit and support v2 * Update to devfile/api commit f33d2987d137225cd1e8975f6fdfdd2663195a37 * Adapt code to support new module name (.../v2) (see: devfile/api#280) Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
By default, webhooks get an "unknown" side effects field, which prevents dry-runs on involved resources. Instead we set side-effects to "none" to re-enable dry runs. Note: side-effects in this context refers to changes outside the context of the AdmissionReview that is submitted. Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
/test v5-devworkspaces-operator-e2e |
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.
I haven't tested but changes LGTM
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.
I think ideally INFO
would be in the last column but LGTM
[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:
Approvers can indicate their approval by writing |
I agree, but it'll look ugly no matter how we do it -- WDYT about potentially combining URL and INFO? If a workspace starts correctly, it's populated by the URL where you can access it, otherwise it's populated with an info message. cc: @davidfestal |
Personally, I like the idea. It would keep the output a lot shorter and easier to manage on a terminal. Aren't showing a URL and INFO technically mutually exclusive anyway? Or is there a case that a URL will show when INFO is set as well? |
Even now you don't show in the column the same name as in the status field: INFO v Message So if |
@davidfestal I was thinking of removing |
@amisevsk: PR needs rebase. 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'm OK with the proposed change. |
Putting this one on hold as I'd like to include devfile/api#335, at which point we should bring in at least devfile/api#324 as well. |
Seems it's a time to update the PR or close it ) |
I never thought an 80 line change could conflict with so many files :D I'll create a new PR since we need to update the devfile/api dependency again |
What does this PR do?
v1
webhooks support onlyNone
andNoneOnDryRun
.What issues does this PR fix or reference?
Closes #232
Is it tested? How?
Before testing, it's necessary to run
make update_devworkspace_crds
to the latest devfile/api CRDs (andmake install
to deploy them).Easiest to test on minikube:
We should probably move INFO to be the last column
Additional info
Kubernetes docs on webhooks with side effects: https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#side-effects