-
Notifications
You must be signed in to change notification settings - Fork 153
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: Adding ClusterAnalysisTemplate support for Stage verifications #2673
base: main
Are you sure you want to change the base?
feat: Adding ClusterAnalysisTemplate support for Stage verifications #2673
Conversation
Signed-off-by: BenHesketh21 <[email protected]>
Signed-off-by: BenHesketh21 <[email protected]>
Signed-off-by: BenHesketh21 <[email protected]>
✅ Deploy Preview for docs-kargo-akuity-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for docs-kargo-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2673 +/- ##
==========================================
+ Coverage 51.26% 51.39% +0.13%
==========================================
Files 283 286 +3
Lines 25563 25698 +135
==========================================
+ Hits 13104 13207 +103
- Misses 11762 11788 +26
- Partials 697 703 +6 ☔ View full report in Codecov by Sentry. |
Signed-off-by: BenHesketh21 <[email protected]>
Signed-off-by: BenHesketh21 <[email protected]>
Signed-off-by: BenHesketh21 <[email protected]>
@BenHesketh21 thank you for your patience with this. I've finally started reviewing this in earnest. What I've looked at so far looks solid, but this is big and there's a lot more to still look at. Due to the size and complexity, I'm going to ask @hiddeco and @Marvin9 for help with this. Group effort. @hiddeco since this touches the Stages reconciler, which you are actively refactoring, controller changes here probably need to be on your radar. @Marvin9 if you don't mind looking at the UI portions of this, it would be a huge help. I am happy to review the remainder -- e.g. API server changes, docs, and such. We will try to get this into v1.1.0, but it cannot be guaranteed. |
ui/src/features/project/analysis-templates/analysis-templates-list.tsx
Outdated
Show resolved
Hide resolved
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.
Sorry for late review, Overall UI LGTM!
Only thing that is blocking is that since Cluster scoped templates are not really project scoped they should not be in individual projects page. I would suggest to have same clickops experience as in project analysis templates but rather on home page (ie. project list page).
Let me know if you have any question
Signed-off-by: BenHesketh21 <[email protected]>
@Marvin9 Thanks for the review. Definitely makes sense to take it out of projects and into a different page. Would we want to add a "Analysis Templates" section to the left side menu? or introduce a similar tab system to the project list page? |
Signed-off-by: BenHesketh21 <[email protected]>
@Marvin9 I've gone with the approach of adding an Analysis button to the left hand menu for now, let me know if you would rather it be done a different way. |
Signed-off-by: BenHesketh21 <[email protected]>
I would suggest, instead, a "Settings" item on the sidebar (with a gear as the icon) and have the UI for this be under a "Verifications" tab on that settings page. We currently lack any sort of UI for these other "cluster-scoped" things:
As we add those, a tabbed settings page would prevent the left sidebar from getting too noisy. And I think this is a fairly conventional approach anyway. |
I'll get on that, thank you for the pointers |
@Marvin9 One thing I'm not so sure on if you could clarify. I'm looking at a vertical tab using the Menu from Antd. I'm struggling to picture how it would look and where it would go? Here's my thinking so far.
Let me know your thoughts, thanks. |
…se analysis templates Signed-off-by: BenHesketh21 <[email protected]>
Signed-off-by: BenHesketh21 <[email protected]>
Sure thing @BenHesketh21 here is how I imagine it would look like considering more settings incoming Let me know if its feasible to you otherwise I would refactor the layout later this PR and for now we can keep the tab as in your screenshot. I will put my comments after we finalise what are we scoping for this PR. Thanks! |
Signed-off-by: BenHesketh21 <[email protected]>
Signed-off-by: BenHesketh21 <[email protected]>
Signed-off-by: BenHesketh21 <[email protected]>
Signed-off-by: BenHesketh21 <[email protected]>
Signed-off-by: BenHesketh21 <[email protected]>
@Marvin9 Apologies for the delay, I had to re-do a lot of the controller work due to the refactor, I have moved the tab to be vertical. Let me know what you think. |
Signed-off-by: BenHesketh21 <[email protected]>
Signed-off-by: BenHesketh21 <[email protected]>
We're trying to wrap up v1.2 work by 12/20 with plans to release after the holidays. It might be too ambitious for us to get this merged before then. I'm tentatively moving this to the v1.3 milestone, but if it somehow becomes possible to sneak this into v1.2, I won't hesitate. |
closes #2481
ClusterAnalysisTemplate Support
This PR adds the ability to refer to cluster level analysis templates using the
clusterScope
option (inspired by Argo Rollouts).The verification process finds all the templates and combines them in one run, in the same way as before but now will also find referenced ClusterAnalysisTemplates if
clusterScope
is set to true.The UI has also been updated to show both scopes of analysis templates.