-
Notifications
You must be signed in to change notification settings - Fork 21
NETOBSERV-1942 config / status views + NETOBSERV-1945 resource calculator #763
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
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #763 +/- ##
==========================================
- Coverage 55.51% 55.37% -0.14%
==========================================
Files 197 200 +3
Lines 10522 10633 +111
Branches 1226 1247 +21
==========================================
+ Hits 5841 5888 +47
- Misses 4312 4374 +62
- Partials 369 371 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
5d6fd6f
to
12ec282
Compare
7c1c429
to
28d93a4
Compare
f69f0df
to
6ec375c
Compare
Rebased without changes |
Co-authored-by: Mehul Modi <[email protected]>
(Yet another) Rebased without changes |
New image: It will expire after two weeks. To deploy this build, run from the operator repo, assuming the operator is running: USER=netobserv VERSION=b61a44a make set-plugin-image |
import { K8sResourceKind } from '@openshift-console/dynamic-plugin-sdk'; | ||
import { safeYAMLToJS } from '../../../utils/yaml'; | ||
|
||
export const FlowCollector = ` |
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.
this also will need to be auto-generated somehow; TODO as a follow-up
@@ -0,0 +1,33 @@ | |||
export const K8S_UI_SCHEMA = { |
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.
nit / ok for a follow-up: constants are not all-caps (see previously #541)
@@ -0,0 +1,57 @@ | |||
import { prune } from './utils'; | |||
|
|||
const PRUNE_DATA = { |
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.
same here: pruneData
import * as _ from 'lodash'; | ||
import { DynamicFormSchemaError } from './types'; | ||
|
||
const UNSUPPORTED_SCHEMA_PROPERTIES = ['allOf', 'anyOf', 'oneOf']; |
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.
same 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.
/lgtm
there will be some code style (all-capitals to camelcase) and linter warnings to fix in a follow-up
Other follow-ups that I can think of:
- Auto-generate schema & samples
- 2d pass on text refinement and review again which fields to hide
- Ellipsed text: append "..."
@jpinsonneau: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
FYI I added my comments above in this follow-up task: https://issues.redhat.com/browse/NETOBSERV-2350 (feel free to add more feedback) |
another round of testing will be done post-merge; merging now! |
Description
console.page/route
to replace original implementationsdynamic-form
folder comes from https://github.com/openshift/console/tree/main/frontend/packages/console-shared/src/components/dynamic-formcompressed.webm
This is a Poc. Code can be divided into multiple PRs if you feel it's needed:
Dependencies
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.