-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add cors headers to components' server admin routes #5351
Conversation
core/invoker/src/main/scala/org/apache/openwhisk/core/invoker/FPCInvokerReactive.scala
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #5351 +/- ##
==========================================
- Coverage 81.26% 76.35% -4.92%
==========================================
Files 240 240
Lines 14393 14407 +14
Branches 603 618 +15
==========================================
- Hits 11697 11000 -697
- Misses 2696 3407 +711
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
It generally looks good to me.
BTW, do you have the plan to contribute an admin UI too?
@@ -78,6 +76,7 @@ case class DeletionContainer(deletionMessage: ContainerDeletionMessage) | |||
case object Remove | |||
case class Keep(timeout: FiniteDuration) | |||
case class PrewarmContainer(maxConcurrent: Int) | |||
case object GetState |
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 there any reason we should define another GetState
here?
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 see what happened now, I had this in progress for awhile and had a bad merge somewhere with your recent commits. Should all be cleaned up now.
...rc/main/scala/org/apache/openwhisk/core/containerpool/v2/FunctionPullingContainerProxy.scala
Outdated
Show resolved
Hide resolved
Not at the moment don't have bandwidth to do any ui work, but maybe down the road |
* add container pool state route to invoker * scalafmt * wip * add cors headers to components server admin routes * scalafmt * fix bad merge Co-authored-by: Brendan Doyle <brendand@qualtrics.com>
Description
This pr adds cors headers to the server admin routes of each component plus the options route which is needed for pre-flight requests from browsers when auth is included in the request. The reason for this is to lay the ground work for future ui work for an admin portal.
Related issue and scope
My changes affect the following components
Types of changes
Checklist: