-
Notifications
You must be signed in to change notification settings - Fork 562
WIP: [CCXDEV-15259]: promote InsightConfigAPI and OnDemandDataGather to v1 #2448
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
base: master
Are you sure you want to change the base?
Conversation
Hello @opokornyy! Some important instructions when contributing to openshift/api: |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: opokornyy 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 |
/retest |
/test verify-feature-promotion |
d7b46b0
to
dce787e
Compare
dce787e
to
337fbf2
Compare
382e32d
to
c47f3e9
Compare
Signed-off-by: Ondrej Pokorny <[email protected]>
Signed-off-by: Ondrej Pokorny <[email protected]>
Signed-off-by: Ondrej Pokorny <[email protected]>
Signed-off-by: Ondrej Pokorny <[email protected]>
Signed-off-by: Ondrej Pokorny <[email protected]>
c47f3e9
to
d29ee57
Compare
Signed-off-by: Ondrej Pokorny <[email protected]>
a2b2dec
to
e34bacd
Compare
/retest |
// +kubebuilder:validation:MinProperties=1 | ||
type InsightsDataGatherSpec struct { | ||
// gatherConfig is an optional spec attribute that includes all the configuration options related to gathering of the Insights data and its uploading to the ingress. | ||
// +optional |
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.
Have we considered making this required? It's currently the only spec option and it seems the only purpose of this object so far is to handle the gather config. With the MinProperties:=1, the object cannot exist without it presently?
Are we expecting any future expansion? Any feedback from folks about future features we will need to support alongside gatherConfig
?
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 are no plans to expand the spec. The MinProperties:=1
is forcing the use of gatherConfig
, so maybe we should change this to required. At the moment, it doesn’t really make sense to create this object without gatherConfig defined.
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.
If you make gatherConfig required, then we don't need the MinProperties
anymore
} | ||
|
||
// +kubebuilder:validation:MinProperties=1 | ||
type InsightsDataGatherStatus struct{} |
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.
Still don't need any status?
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.
No, if I am not overlooking anything, we are just reading the Spec
} | ||
|
||
// gathererConfig allows to configure specific gatherers | ||
type GathererConfig struct { |
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.
Have any of the gatherers developed any additional configuration so far, that we might want to think about adding alongside the current fields in this struct?
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.
At the moment this should be sufficient configuration.
@opokornyy: 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. |
No description provided.