-
Notifications
You must be signed in to change notification settings - Fork 88
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
feat: CheCluster API v2 #1324
feat: CheCluster API v2 #1324
Conversation
Skipping CI for Draft Pull Request. |
Codecov Report
@@ Coverage Diff @@
## main #1324 +/- ##
==========================================
+ Coverage 62.00% 63.04% +1.03%
==========================================
Files 76 70 -6
Lines 6301 5812 -489
==========================================
- Hits 3907 3664 -243
+ Misses 2008 1785 -223
+ Partials 386 363 -23
Continue to review full report at Codecov.
|
5552c48
to
69d1b79
Compare
2e3741b
to
92e79f2
Compare
I did a review of https://github.com/eclipse-che/che-operator/blob/20758/api/v2/checluster_types.go. Here are a few comments:
|
/test v8-che-behind-proxy |
/test v9-devworkspace-happy-path |
/test v9-upgrade-stable-to-next |
/test v8-che-behind-proxy |
/test v9-devworkspace-happy-path |
/test v9-upgrade-stable-to-next |
1 similar comment
/test v9-upgrade-stable-to-next |
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
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.
@l0rd devEnvironments
/ networking
LGTM
no more suggestions from my end
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.
Approving to not block merge, a few comments below but generally looks good and comments can be addressed in a separate PR if need be.
Deployment Deployment `json:"deployment,omitempty"` | ||
// Maximum number of the running workspaces per user. | ||
// +optional | ||
RunningLimit string `json:"runningLimit,omitempty"` |
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.
This might make more sense as a dashboard option (rather than DevWorkspace). Currently, the dashboard is what imposes the limit on running workspaces, and DWO does not have functionality to do this.
// The editor id to specify default plug-ins for. | ||
Editor string `json:"editor,omitempty"` |
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.
Is this only an ID or can it also be a URI?
// +operator-sdk:csv:customresourcedefinitions:order=0 | ||
// +operator-sdk:csv:customresourcedefinitions:resources={{Ingress,v1},{Route,v1},{ConfigMap,v1},{Service,v1},{Secret,v1},{Deployment,apps/v1},{Role,v1},{RoleBinding,v1},{ClusterRole,v1},{ClusterRoleBinding,v1}} | ||
// +kubebuilder:storageversion | ||
type CheCluster struct { |
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 might have missed it in reading this file, but consider adding +kubebuilder:printcolumn:name
annotations here to automatically print the dashboard URL, etc. when listing objects on the cluster. For example, something like
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.cheClusterRunning",description="Status for the CheCluster"
// +kubebuilder:printcolumn:name="Dashboard URL",type="string",JSONPath=".status.cheURL",description="The URL for the Che Dashboard"
If this is handled by the +operator-sdk
annotations, then ignore this comment.
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.
An example of how this is used in the DevWorkspace CR: [link]
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 it is covered by +operator-sdk annotations
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: amisevsk, ibuziuk, l0rd, mmorhun, tolusha 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 |
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
New changes are detected. LGTM label has been removed. |
/retest |
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.
Hi, I tried to spot every potential edit in the document but I might end up suggesting another batch of edits.
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@deerskindoll |
@tolusha: The following tests failed, say
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. |
* feat: CheCluster API v2 Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko abazko@redhat.com
What does this PR do?
Screenshot/screencast of this PR
N/A
What issues does this PR fix or reference?
eclipse-che/che#20758
How to test this PR?
N/A
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.