-
Notifications
You must be signed in to change notification settings - Fork 158
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
allow extending flux runtime ui beyond flux to create gitops runtime #4162
Conversation
next is to refactor logic to:
|
890a77f
to
2463ec5
Compare
Some tests are failing. Will test the current PR after I am done with testing my enterprise PR (building it now). |
@opudrovs sorry i assigned request too early, ignore it so far ... just reviewing the PR and need to add questions to ask. |
@enekofb ah got it, np. 👌 |
73c6e0b
to
7e0c72a
Compare
880b207
to
7f16f80
Compare
❔ Will any of new components/hooks/functions be used in enterprise directly? I mean, should anything be added to exports in |
❔ It's not an issue, just a minor question, related to usability (and I am not sure who will use this new UI, so don't know if it's of any importance). Since the routes of both views are slightly different:
if the user toggles the feature flag and just refreshes the page (while browser stays at the same route), there will be a page not found error displayed: Is it possible that someone will share a link to a runtime page (in a documentation, for example) and then the flag will be toggled and the users will bump into page not working? Would a redirect or keeping both routes functional help? If it does not matter (or like in "if anyone starts screaming about it, we'll figure it out then" 😅 ), never mind. |
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.
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.
Nice! ✨
ui/components/FluxRuntime.tsx
Outdated
|
||
const supportMultipleFlux = | ||
Object.keys(fluxVersions).length > 1 ? true : false; | ||
const supportMultipleFlux = true; |
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's great this condition was replaced, ? true : false
was redundant here.
❔ But now it looks like the condition below on line 84:
{!supportMultipleFlux && deployments[0]?.labels[fluxVersionLabel] && (
<FluxVersionText color="neutral30" titleHeight={true}>
This cluster is running Flux version:
<span>{deployments[0].labels[fluxVersionLabel]}</span>
</FluxVersionText>
)}
will never be true because supportMultipleFlux
is always true? Does it mean that this FluxVersionText
component will never get rendered? Or are you going to change this condition later?
And this check on line 71 is not needed too, because now it is always true:
if (supportMultipleFlux) {
tabs.unshift({
name: "Flux Versions",
path: `${path}/flux`,
component: () => {
return <FluxVersionsTable versions={Object.values(fluxVersions)} />;
},
visible: true,
});
}
If it's a temp change which will be fixed later, like commenting out code for the time being, could you please add a comment explaining if it's temporary or in which cases a developer might want to set this value to false?
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.
good shout, I wanted to remove it all together under the assumption of having a consistent experience between OSS and EE (using the multi-cluster scenario as baseline) ...
how do you feel and @jpellizzari about it?
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.
Fine with me!
ui/components/FluxRuntime.tsx
Outdated
|
||
// FIXME: make it generic enough so it fits for both FluxRuntime or WeaveGitopsRuntime |
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.
❔ When will this FIXME be addressed? Is there a follow-up issue for this or is it just "nice to do one day"?
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.
removed cause was original design to have a single component ... the design i am now behind is to just replace fluxruntime
charts/gitops-server/values.yaml
Outdated
@@ -24,6 +24,11 @@ envVars: | |||
value: "true" | |||
- name: WEAVE_GITOPS_FEATURE_CLUSTER | |||
value: "false" | |||
# -- Enable feature this feature flag if you want to expand Flux Runtime UI with other Weave GitOps components like Policy Agent or TF-Controller. | |||
# Ensure that Weave GitOps Deployment and CRDs are labelled with Label 'app.kubernetes.io/part-of=weave-gitops'. |
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 replace one label
in labelled with Label
with another word (for readability)? Maybe just labeled with
or, if the word Label
is required, have Label/contain Label
, whatever.
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.
yup, reads better now
Signed-off-by: Eneko Fernandez <[email protected]>
Signed-off-by: Eneko Fernandez <[email protected]>
Signed-off-by: Eneko Fernandez <[email protected]>
Signed-off-by: Eneko Fernandez <[email protected]> Signed-off-by: Eneko Fernandez <[email protected]>
418a553
to
0d07ba2
Compare
Signed-off-by: Eneko Fernandez <[email protected]>
Interesting question that clashes with my existing FE knowledge: yes, we would like to use the feature as is in EE. it is the second story on this epic weaveworks/weave-gitops-enterprise#3725 What changes needs to do in this PR to just use it in EE? |
Yes, it is a bit annoying but think of a limited impact ( i think only once) as you face that situation in a scenario where there an existing WEGO installed. Given that its a configuration issue, it will be noticed by the platfrom eng or the dev doing the upgrade or configuration. The rest of the wego users, given there is a new release of the app would need to relogin and use whatever route is there via navigation so hopefully not that impacted. Having both routes My 2cts is that we could deliver as is and as proven value, we deprecate How do you feel about that @opudrovs ? |
Signed-off-by: Eneko Fernandez <[email protected]>
Signed-off-by: Eneko Fernandez <[email protected]>
…y between oss and ee Signed-off-by: Eneko Fernandez <[email protected]>
2e34f4a
to
2168725
Compare
@opudrovs re-requested review after addressing comments. PTAL 🙏 |
Co-authored-by: Olga Pudrovska <[email protected]>
Co-authored-by: Yiannis Triantafyllopoulos <[email protected]>
@enekofb I see, thanks, fine with me. |
It's more related to our specific product setup and to how we build the OSS package ( In order to be able to import an identifier in enterprise from OSS (I mean directly, if it's not a part of an already imported component), you need to export it from OSS in Line 143 in 78d5f6d
I am not sure what should be added to the exports, it depends on what will be imported when the new components/function are used in enterprise. So, feel free to add the exports now or in the next issue. |
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.
Re-tested it with the flag on and off, LGTM!
Signed-off-by: Eneko Fernandez <[email protected]>
Co-authored-by: Olga Pudrovska <[email protected]>
Co-authored-by: Olga Pudrovska <[email protected]>
Signed-off-by: Eneko Fernandez <[email protected]>
Co-authored-by: Olga Pudrovska <[email protected]>
done! |
Signed-off-by: Eneko Fernandez <[email protected]>
Closes of #4174
What changed?
Why was this change made?
How was this change implemented?
How did you validate the change?
Release notes
Documentation Changes