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
Adding helm service endpoints to console #3826
Adding helm service endpoints to console #3826
Conversation
/hold e2es are 100% failing |
Tried building an image using https://github.com/openshift/console/blob/master/Dockerfile , the build failed with the above error. Note: |
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.
How about setting up the namespace context upfront?
eff0686
to
d8d3aa5
Compare
/assign @benjaminapetersen |
pkg/server/server.go
Outdated
@@ -417,3 +422,37 @@ func (s *Server) handleOpenShiftTokenDeletion(user *auth.User, w http.ResponseWr | |||
io.Copy(w, resp.Body) | |||
resp.Body.Close() | |||
} | |||
|
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 it possible to move your handlers
into your helm package
? A handlers.go
file would be fine, and just load them up via imports.
server.go
doesn't need to know any details about helm
, it can include the 3 lines setting up the handle("api/console/helm/....", authHandlerWithUser( helmcatalog.InstallHandler )
. etc.
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.
Would still like to see this change.
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.
Couple items organizationally.
Suggested a couple small changes:
Unless it makes sense to have more than 3 commits, this is probably the best pattern. |
/retest |
899ec1a
to
7e6a472
Compare
Done renamed to
As of now helm handler uses
Added commits the way you suggested, I've been working on adding tests. |
@sbose78 @akashshinde I would name the package simply |
@pedjak Agreed, go for it. |
/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.
See comments, thanks!
d0dbb6b
to
e83e8fd
Compare
a8a1287
to
8eae8a9
Compare
/test images |
/test e2e-gcp-console |
/lgtm |
/test e2e-gcp-console |
/hold cancel |
Ok, give this one a squash down to 2 commits:
And we can take a final look, thanks! |
6a9fc1b
to
cdf6b18
Compare
/test analyze |
plog = capnslog.NewPackageLogger("github.com/openshift/console", "serverutils") | ||
) | ||
|
||
// Copied from Server package to maintain error response consistency |
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.
A follow, we can eliminate this comment since its no longer copied
. This is the only occurance.
/retest
Your code doesn't touch the frontend, flake. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akashshinde, benjaminapetersen, pedjak 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 |
/test e2e-gcp-console |
NOTE: Need to get #3992 and #4007 merged before this PR.
This PR adds following helm service routes CC: @sbose78 @pedjak
helm template
and renders manifest files.To Test
Get Releases GET
/api/helm/releases
Test :
curl http://localhost:9000/api/helm/releases
Install Release POST
/api/helm/release
Test:
curl -X POST http://localhost:9000/api/helm/release
Body