-
Notifications
You must be signed in to change notification settings - Fork 4.8k
[WIP] CNTRLPLANE-3052: remove unnecessary exceptions from monitoring test #30924
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: main
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 |
|---|---|---|
|
|
@@ -42,55 +42,14 @@ func exceptionWithJira(prefix, jiraURL string) func(corev1.Pod) (string, bool) { | |
|
|
||
| // OpenShift components should not be using the default service account. | ||
| // Therefore, no new components should be added to this list. | ||
| // The following are current exceptions due to not being part of the core OpenShift | ||
| // payload, or we are waiting on components to reach GA. | ||
| var exceptions = []func(pod corev1.Pod) (string, bool){ | ||
| exceptionWithJira("openshift-cluster-version/cluster-version-operator-", "https://issues.redhat.com/browse/OCPBUGS-65621"), | ||
| exceptionWithJira("openshift-console/downloads-", "https://issues.redhat.com/browse/OCPBUGS-65622"), | ||
| exceptionWithJira("openshift-etcd/etcd-guard-", "https://issues.redhat.com/browse/OCPBUGS-65626"), | ||
| exceptionWithJira("openshift-ingress-canary/ingress-canary-", "https://issues.redhat.com/browse/OCPBUGS-65629"), | ||
| exceptionWithJira("openshift-kube-apiserver/kube-apiserver-guard-", "https://issues.redhat.com/browse/OCPBUGS-65626"), | ||
| exceptionWithJira("openshift-kube-controller-manager/kube-controller-manager-guard-", "https://issues.redhat.com/browse/OCPBUGS-65626"), | ||
| exceptionWithJira("openshift-kube-scheduler/openshift-kube-scheduler-guard-", "https://issues.redhat.com/browse/OCPBUGS-65626"), | ||
| exceptionWithJira("openshift-monitoring/monitoring-plugin-", "https://issues.redhat.com/browse/OCPBUGS-65630"), | ||
| exceptionWithJira("openshift-multus/multus-", "https://issues.redhat.com/browse/OCPBUGS-65631"), | ||
| exceptionWithJira("openshift-network-console/networking-console-plugin-", "https://issues.redhat.com/browse/OCPBUGS-65633"), | ||
| exceptionWithJira("openshift-network-diagnostics/network-check-target-", "https://issues.redhat.com/browse/OCPBUGS-65633"), | ||
| exceptionWithJira("default/verify-all-openshiftcommunityoperators-", "https://issues.redhat.com/browse/OCPBUGS-65634"), | ||
| exceptionWithJira("default/verify-all-openshiftredhatmarketplace-", "https://issues.redhat.com/browse/OCPBUGS-65634"), | ||
| exceptionWithJira("default/verify-all-openshiftcertifiedoperators-", "https://issues.redhat.com/browse/OCPBUGS-65634"), | ||
| exceptionWithJira("default/verify-all-openshiftredhatoperators-", "https://issues.redhat.com/browse/OCPBUGS-65634"), | ||
| exceptionWithJira("openshift-cluster-version/version-", "https://issues.redhat.com/browse/OCPBUGS-65621"), | ||
| exceptionWithJira("kube-system/konnectivity-agent-", "https://issues.redhat.com/browse/OCPBUGS-65636"), | ||
| exceptionWithJira("openshift-multus/multus-additional-cni-plugins-", "https://issues.redhat.com/browse/OCPBUGS-65631"), | ||
| exceptionWithJira("openshift-multus/cni-sysctl-allowlist-ds-", "https://issues.redhat.com/browse/OCPBUGS-65631"), | ||
| exceptionWithJira("default/verify-metas-openshiftcertifiedoperators-", "https://issues.redhat.com/browse/OCPBUGS-65634"), | ||
| exceptionWithJira("default/verify-metas-openshiftcommunityoperators-", "https://issues.redhat.com/browse/OCPBUGS-65634"), | ||
| exceptionWithJira("default/verify-metas-openshiftredhatmarketplace-", "https://issues.redhat.com/browse/OCPBUGS-65634"), | ||
| exceptionWithJira("default/verify-metas-openshiftredhatoperators-", "https://issues.redhat.com/browse/OCPBUGS-65634"), | ||
| exceptionWithJira("openshift-cluster-api/capv-controller-manager-", "https://issues.redhat.com/browse/OCPBUGS-65637"), // keep until CAPV goes GA. | ||
|
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. We can now also remove this one as it is implemented. |
||
|
|
||
| // Handle the one outlier (Namespace only check) manually | ||
| func(pod corev1.Pod) (string, bool) { | ||
| if pod.Namespace == "openshift-marketplace" { | ||
| return "https://issues.redhat.com/browse/OCPBUGS-65867", true | ||
| } | ||
| return "", false | ||
| }, | ||
|
|
||
| // These exceptions were found after the monitor test was merged. | ||
| exceptionWithJira("openshift-cnv/kubevirt-apiserver-proxy-", "https://issues.redhat.com/browse/OCPBUGS-70353"), | ||
| exceptionWithJira("openshift-cnv/kubevirt-console-plugin-", "https://issues.redhat.com/browse/OCPBUGS-70353"), | ||
| exceptionWithJira("kube-system/global-pull-secret-syncer-", "https://issues.redhat.com/browse/OCPBUGS-70354"), | ||
| exceptionWithJira("openshift-nmstate/nmstate-console-plugin-", "https://issues.redhat.com/browse/OCPBUGS-77474"), | ||
|
|
||
| // Handle the outlier (Namespace only check) manually | ||
| func(pod corev1.Pod) (string, bool) { | ||
| if pod.Namespace == "openshift-cluster-csi-drivers" { | ||
| return "https://issues.redhat.com/browse/OCPBUGS-70355", true | ||
| } | ||
| return "", false | ||
| }, | ||
| // Handle the outlier manually | ||
| // This one checks if it is a debug pod or not. | ||
|
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. I'm thinking we should probably add a comment here to explain why we are keeping it e.g.
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. Since this will be the only item here, we should probably provide stronger justification in the comments e.g. |
||
| // debug pod does not run by default on an OpenShift cluster | ||
| func(pod corev1.Pod) (string, bool) { | ||
| for annotation := range pod.Annotations { | ||
| if strings.Contains(annotation, "debug.openshift.io") { | ||
|
|
||
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.
We could also add a comment here e.g.
// The following are current exceptions due to not being part of the core OpenShift payload, or we are waiting on components to reach GA.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.
We can simplify this to
// The following are current exceptions due to not being part of the core OpenShift payload