-
Notifications
You must be signed in to change notification settings - Fork 573
MON-4359: Add Monitoring Capability #2468
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?
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 | ||||
---|---|---|---|---|---|---|
|
@@ -278,7 +278,7 @@ const ( | |||||
) | ||||||
|
||||||
// ClusterVersionCapability enumerates optional, core cluster components. | ||||||
// +kubebuilder:validation:Enum=openshift-samples;baremetal;marketplace;Console;Insights;Storage;CSISnapshot;NodeTuning;MachineAPI;Build;DeploymentConfig;ImageRegistry;OperatorLifecycleManager;CloudCredential;Ingress;CloudControllerManager;OperatorLifecycleManagerV1 | ||||||
// +kubebuilder:validation:Enum=openshift-samples;baremetal;marketplace;Console;Insights;Storage;CSISnapshot;NodeTuning;MachineAPI;Build;DeploymentConfig;ImageRegistry;OperatorLifecycleManager;CloudCredential;Ingress;CloudControllerManager;OperatorLifecycleManagerV1;OptionalMonitoring | ||||||
type ClusterVersionCapability string | ||||||
|
||||||
const ( | ||||||
|
@@ -399,6 +399,15 @@ const ( | |||||
// Managers deployed on top of OpenShift. They help you to work with cloud | ||||||
// provider API and embeds cloud-specific control logic. | ||||||
ClusterVersionCapabilityCloudControllerManager ClusterVersionCapability = "CloudControllerManager" | ||||||
|
||||||
// ClusterVersionCapabilityOptionalMonitoring manages the cluster monitoring stack which is responsible for gathering and | ||||||
// processing metrics from the in-house and user workloads. The following CRDs are constitute this capability: | ||||||
// - TODO | ||||||
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. Presumably we should not add this capability until we know the full scope of what this capability will and will not do? |
||||||
// | ||||||
// WARNING: This capability will drop all aforementioned CRDs, and may operational issues in the cluster. | ||||||
// The only supported use-case for this capability is to reduce the monitoring stack's resource usage by only | ||||||
// supporting telemetry. | ||||||
Comment on lines
+407
to
+409
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. What operational issues may happen here? 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. What does "only supporting telemetry" mean here? |
||||||
ClusterVersionCapabilityOptionalMonitoring ClusterVersionCapability = "OptionalMonitoring" | ||||||
) | ||||||
|
||||||
// KnownClusterVersionCapabilities includes all known optional, core cluster components. | ||||||
|
@@ -420,6 +429,7 @@ var KnownClusterVersionCapabilities = []ClusterVersionCapability{ | |||||
ClusterVersionCapabilityCloudCredential, | ||||||
ClusterVersionCapabilityIngress, | ||||||
ClusterVersionCapabilityCloudControllerManager, | ||||||
ClusterVersionCapabilityOptionalMonitoring, | ||||||
} | ||||||
|
||||||
// ClusterVersionCapabilitySet defines sets of cluster version capabilities. | ||||||
|
@@ -479,6 +489,18 @@ const ( | |||||
// version of OpenShift is installed. | ||||||
ClusterVersionCapabilitySet4_18 ClusterVersionCapabilitySet = "v4.18" | ||||||
|
||||||
// ClusterVersionCapabilitySet4_19 is the recommended set of | ||||||
// optional capabilities to enable for the 4.18 version of | ||||||
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.
Suggested change
|
||||||
// OpenShift. This list will remain the same no matter which | ||||||
// version of OpenShift is installed. | ||||||
ClusterVersionCapabilitySet4_19 ClusterVersionCapabilitySet = "v4.19" | ||||||
|
||||||
// ClusterVersionCapabilitySet4_20 is the recommended set of | ||||||
// optional capabilities to enable for the 4.18 version of | ||||||
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.
Suggested change
|
||||||
// OpenShift. This list will remain the same no matter which | ||||||
// version of OpenShift is installed. | ||||||
ClusterVersionCapabilitySet4_20 ClusterVersionCapabilitySet = "v4.20" | ||||||
|
||||||
// ClusterVersionCapabilitySetCurrent is the recommended set | ||||||
// of optional capabilities to enable for the cluster's | ||||||
// current version of OpenShift. | ||||||
|
@@ -600,6 +622,46 @@ var ClusterVersionCapabilitySets = map[ClusterVersionCapabilitySet][]ClusterVers | |||||
ClusterVersionCapabilityIngress, | ||||||
ClusterVersionCapabilityCloudControllerManager, | ||||||
}, | ||||||
ClusterVersionCapabilitySet4_19: { | ||||||
ClusterVersionCapabilityBaremetal, | ||||||
ClusterVersionCapabilityConsole, | ||||||
ClusterVersionCapabilityInsights, | ||||||
ClusterVersionCapabilityMarketplace, | ||||||
ClusterVersionCapabilityStorage, | ||||||
ClusterVersionCapabilityOpenShiftSamples, | ||||||
ClusterVersionCapabilityCSISnapshot, | ||||||
ClusterVersionCapabilityNodeTuning, | ||||||
ClusterVersionCapabilityMachineAPI, | ||||||
ClusterVersionCapabilityBuild, | ||||||
ClusterVersionCapabilityDeploymentConfig, | ||||||
ClusterVersionCapabilityImageRegistry, | ||||||
ClusterVersionCapabilityOperatorLifecycleManager, | ||||||
ClusterVersionCapabilityOperatorLifecycleManagerV1, | ||||||
ClusterVersionCapabilityCloudCredential, | ||||||
ClusterVersionCapabilityIngress, | ||||||
ClusterVersionCapabilityCloudControllerManager, | ||||||
ClusterVersionCapabilityOptionalMonitoring, | ||||||
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. Why should this be included in the 4.19 set if the capability does not exist in 4.19? |
||||||
}, | ||||||
ClusterVersionCapabilitySet4_20: { | ||||||
ClusterVersionCapabilityBaremetal, | ||||||
ClusterVersionCapabilityConsole, | ||||||
ClusterVersionCapabilityInsights, | ||||||
ClusterVersionCapabilityMarketplace, | ||||||
ClusterVersionCapabilityStorage, | ||||||
ClusterVersionCapabilityOpenShiftSamples, | ||||||
ClusterVersionCapabilityCSISnapshot, | ||||||
ClusterVersionCapabilityNodeTuning, | ||||||
ClusterVersionCapabilityMachineAPI, | ||||||
ClusterVersionCapabilityBuild, | ||||||
ClusterVersionCapabilityDeploymentConfig, | ||||||
ClusterVersionCapabilityImageRegistry, | ||||||
ClusterVersionCapabilityOperatorLifecycleManager, | ||||||
ClusterVersionCapabilityOperatorLifecycleManagerV1, | ||||||
ClusterVersionCapabilityCloudCredential, | ||||||
ClusterVersionCapabilityIngress, | ||||||
ClusterVersionCapabilityCloudControllerManager, | ||||||
ClusterVersionCapabilityOptionalMonitoring, | ||||||
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. Why should this be included in the 4.20 capability list if this capability does not exist in 4.20? |
||||||
}, | ||||||
ClusterVersionCapabilitySetCurrent: { | ||||||
ClusterVersionCapabilityBaremetal, | ||||||
ClusterVersionCapabilityConsole, | ||||||
|
@@ -618,6 +680,7 @@ var ClusterVersionCapabilitySets = map[ClusterVersionCapabilitySet][]ClusterVers | |||||
ClusterVersionCapabilityCloudCredential, | ||||||
ClusterVersionCapabilityIngress, | ||||||
ClusterVersionCapabilityCloudControllerManager, | ||||||
ClusterVersionCapabilityOptionalMonitoring, | ||||||
}, | ||||||
} | ||||||
|
||||||
|
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.
Is it only these CRDs that are removed when this capability is disabled? Are there default monitoring workloads that may no longer be running on the cluster when this is disabled?