Skip to content

Commit 30e07a6

Browse files
committed
feat: uiplugin API - new flag for the cluster-health-analyzer
1 parent 1b6a208 commit 30e07a6

File tree

5 files changed

+98
-3
lines changed

5 files changed

+98
-3
lines changed

bundle/manifests/observability.openshift.io_uiplugins.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,21 @@ spec:
186186
- enabled
187187
- thanosQuerier
188188
type: object
189+
clusterHealthAnalyzer:
190+
description: ClusterHealthAnalyzer feature flag enablement
191+
properties:
192+
enabled:
193+
description: Indicates if the cluster-health-analyzer features
194+
should be enabled.
195+
type: boolean
196+
required:
197+
- enabled
198+
type: object
189199
incidents:
190-
description: Incidents feature flag enablement
200+
description: |-
201+
Incidents feature flag enablement
202+
203+
Deprecated: Use clusterHealthAnalyzer instead
191204
properties:
192205
enabled:
193206
description: Indicates if incidents-related feature(s) should

deploy/crds/common/observability.openshift.io_uiplugins.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,21 @@ spec:
186186
- enabled
187187
- thanosQuerier
188188
type: object
189+
clusterHealthAnalyzer:
190+
description: ClusterHealthAnalyzer feature flag enablement
191+
properties:
192+
enabled:
193+
description: Indicates if the cluster-health-analyzer features
194+
should be enabled.
195+
type: boolean
196+
required:
197+
- enabled
198+
type: object
189199
incidents:
190-
description: Incidents feature flag enablement
200+
description: |-
201+
Incidents feature flag enablement
202+
203+
Deprecated: Use clusterHealthAnalyzer instead
191204
properties:
192205
enabled:
193206
description: Indicates if incidents-related feature(s) should

docs/api.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5450,11 +5450,20 @@ Monitoring contains configuration for the monitoring console plugin.
54505450
ACM points to the alertmanager and thanosQuerier instance services of which it should create a proxy to.<br/>
54515451
</td>
54525452
<td>false</td>
5453+
</tr><tr>
5454+
<td><b><a href="#uipluginspecmonitoringclusterhealthanalyzer">clusterHealthAnalyzer</a></b></td>
5455+
<td>object</td>
5456+
<td>
5457+
ClusterHealthAnalyzer feature flag enablement<br/>
5458+
</td>
5459+
<td>false</td>
54535460
</tr><tr>
54545461
<td><b><a href="#uipluginspecmonitoringincidents">incidents</a></b></td>
54555462
<td>object</td>
54565463
<td>
5457-
Incidents feature flag enablement<br/>
5464+
Incidents feature flag enablement
5465+
5466+
Deprecated: Use clusterHealthAnalyzer instead<br/>
54585467
</td>
54595468
<td>false</td>
54605469
</tr><tr>
@@ -5563,13 +5572,42 @@ ThanosQuerier points to the thanos-querier service of which it should create a p
55635572
</table>
55645573

55655574

5575+
### UIPlugin.spec.monitoring.clusterHealthAnalyzer
5576+
<sup><sup>[↩ Parent](#uipluginspecmonitoring)</sup></sup>
5577+
5578+
5579+
5580+
ClusterHealthAnalyzer feature flag enablement
5581+
5582+
<table>
5583+
<thead>
5584+
<tr>
5585+
<th>Name</th>
5586+
<th>Type</th>
5587+
<th>Description</th>
5588+
<th>Required</th>
5589+
</tr>
5590+
</thead>
5591+
<tbody><tr>
5592+
<td><b>enabled</b></td>
5593+
<td>boolean</td>
5594+
<td>
5595+
Indicates if the cluster-health-analyzer features should be enabled.<br/>
5596+
</td>
5597+
<td>true</td>
5598+
</tr></tbody>
5599+
</table>
5600+
5601+
55665602
### UIPlugin.spec.monitoring.incidents
55675603
<sup><sup>[↩ Parent](#uipluginspecmonitoring)</sup></sup>
55685604

55695605

55705606

55715607
Incidents feature flag enablement
55725608

5609+
Deprecated: Use clusterHealthAnalyzer instead
5610+
55735611
<table>
55745612
<thead>
55755613
<tr>

pkg/apis/uiplugin/v1alpha1/types.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,14 @@ type MonitoringConfig struct {
161161
// Incidents feature flag enablement
162162
//
163163
// +kubebuilder:validation:Optional
164+
// Deprecated: Use clusterHealthAnalyzer instead
165+
// +deprecated
164166
Incidents *IncidentsReference `json:"incidents,omitempty"`
167+
168+
// ClusterHealthAnalyzer feature flag enablement
169+
//
170+
// +kubebuilder:validation:Optional
171+
ClusterHealthAnalyzer ClusterHealthAnalyzerReference `json:"clusterHealthAnalyzer,omitempty"`
165172
}
166173

167174
// AdvancedClusterManagementReference is used to configure references to the alertmanager and thanosQuerier that should be used
@@ -221,6 +228,14 @@ type IncidentsReference struct {
221228
Enabled bool `json:"enabled"`
222229
}
223230

231+
// ClusterHealthAnalyzerReference is used to configure the cluster health analyzer features.
232+
type ClusterHealthAnalyzerReference struct {
233+
// Indicates if the cluster-health-analyzer features should be enabled.
234+
//
235+
// +kubebuilder:validation:Required
236+
Enabled bool `json:"enabled"`
237+
}
238+
224239
// UIPluginSpec is the specification for desired state of UIPlugin.
225240
//
226241
// +kubebuilder:validation:XValidation:rule="self.type == 'TroubleshootingPanel' || !has(self.troubleshootingPanel)", message="Troubleshooting Panel configuration is only supported with the TroubleshootingPanel type"

pkg/apis/uiplugin/v1alpha1/zz_generated.deepcopy.go

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)