-
Notifications
You must be signed in to change notification settings - Fork 33
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
topology CM lookup, inject into console-plugin deployment #920
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #920 +/- ##
==========================================
- Coverage 81.49% 81.40% -0.10%
==========================================
Files 102 115 +13
Lines 7177 7700 +523
==========================================
+ Hits 5849 6268 +419
- Misses 898 996 +98
- Partials 430 436 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Jason Madigan <[email protected]>
127f5b1
to
6b60dab
Compare
Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
Thanks for the verification steps. Working like a charm!! |
@@ -34,6 +34,9 @@ http { | |||
location / { | |||
root /usr/share/nginx/html; | |||
} | |||
location /config.js { |
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.
out of curiosity. What is this doing?
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.
Basically:
- there's a new custom entrypoint script in the plugin image
- that script injects the two env vars into config.js
- the topology view in plugin loads this config.js, with the correct pointers to the ns/name of the topology configmap
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.
Thanks for the explanation.
What
Load the location of the
topology
ConfigMap dynamically. An update to the kuadrant-operator now sets some env-vars on the ConsolePlugin deployment, which the plugin uses to discover the topology resource.Resolves: Kuadrant/kuadrant-console-plugin#48
Verification
Verified on OpenShift v4.15
Follow user guide
kuadrant-system
Install the operator from this branch (
dynamic-topology
):Wait for the Kuadrant Operators to be installed as follows:
After some time, this command should return
complete
.Enable Kuadrant's dynamic plugin: https://docs.kuadrant.io/dev/kuadrant-operator/doc/install/install-openshift/#step-10-configure-the-kuadrant-console-plugin
Deploy resources
Apply the Kuadrant custom resource
Note: a patched version of the
kuadrant-console-plugin
has already been published as:latest
, because I like to live dangerously.Ensure the topology is loaded OK on the Kuadrant > Policy Topology view
Verify the two env vars are set in the kuadrant-console deployment: