-
Notifications
You must be signed in to change notification settings - Fork 74
feat: UIPlugin API - new flag for the cluster-health-analyzer #971
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -161,7 +161,14 @@ type MonitoringConfig struct { | |
| // Incidents feature flag enablement | ||
| // | ||
| // +kubebuilder:validation:Optional | ||
| // Deprecated: Use clusterHealthAnalyzer instead | ||
| // +deprecated | ||
| Incidents *IncidentsReference `json:"incidents,omitempty"` | ||
|
|
||
| // ClusterHealthAnalyzer feature flag enablement | ||
| // | ||
| // +kubebuilder:validation:Optional | ||
| ClusterHealthAnalyzer ClusterHealthAnalyzerReference `json:"clusterHealthAnalyzer,omitempty"` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it should be a pointer if optional
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes this was missed and fixed in the consequent PR. |
||
| } | ||
|
|
||
| // AdvancedClusterManagementReference is used to configure references to the alertmanager and thanosQuerier that should be used | ||
|
|
@@ -221,6 +228,14 @@ type IncidentsReference struct { | |
| Enabled bool `json:"enabled"` | ||
| } | ||
|
|
||
| // ClusterHealthAnalyzerReference is used to configure the cluster health analyzer features. | ||
| type ClusterHealthAnalyzerReference struct { | ||
jgbernalp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| // Indicates if the cluster-health-analyzer features should be enabled. | ||
| // | ||
| // +kubebuilder:validation:Required | ||
| Enabled bool `json:"enabled"` | ||
jan--f marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| // UIPluginSpec is the specification for desired state of UIPlugin. | ||
| // | ||
| // +kubebuilder:validation:XValidation:rule="self.type == 'TroubleshootingPanel' || !has(self.troubleshootingPanel)", message="Troubleshooting Panel configuration is only supported with the TroubleshootingPanel type" | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
has the
+deprecatedmarker any meaning? I don't see it mentioned in https://book.kubebuilder.io/reference/markers/crdThere 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.
Probably not. Definitely not a kubebuilder marker. I thought this is the "official" way in Go, but it's probably not.