|
1 | 1 | package nhcparams |
2 | 2 |
|
3 | | -import "github.com/rh-ecosystem-edge/eco-gotests/tests/rhwa/internal/rhwaparams" |
| 3 | +import ( |
| 4 | + "time" |
| 5 | + |
| 6 | + "github.com/openshift-kni/k8sreporter" |
| 7 | + "github.com/rh-ecosystem-edge/eco-gotests/tests/rhwa/internal/rhwaparams" |
| 8 | + corev1 "k8s.io/api/core/v1" |
| 9 | +) |
4 | 10 |
|
5 | 11 | var ( |
6 | 12 | // Labels represents the range of labels that can be used for test cases selection. |
7 | 13 | Labels = []string{rhwaparams.Label, Label} |
| 14 | + |
| 15 | + // OperatorDeploymentName represents NHC deployment name. |
| 16 | + OperatorDeploymentName = "node-healthcheck-controller-manager" |
| 17 | + |
| 18 | + // OperatorControllerPodLabel is how the controller pod is labeled. |
| 19 | + OperatorControllerPodLabel = "node-healthcheck-operator" |
| 20 | + |
| 21 | + // ReporterNamespacesToDump tells to the reporter from where to collect logs. |
| 22 | + ReporterNamespacesToDump = map[string]string{ |
| 23 | + rhwaparams.RhwaOperatorNs: rhwaparams.RhwaOperatorNs, |
| 24 | + AppNamespace: AppNamespace, |
| 25 | + } |
| 26 | + |
| 27 | + // ReporterCRDsToDump tells to the reporter what CRs to dump. |
| 28 | + ReporterCRDsToDump = []k8sreporter.CRData{ |
| 29 | + {Cr: &corev1.PodList{}}, |
| 30 | + } |
| 31 | + |
| 32 | + // NodeReadyTimeout is how long to wait for a node Ready condition change. |
| 33 | + NodeReadyTimeout = 2 * time.Minute |
| 34 | + |
| 35 | + // NHCObserveTimeout is how long to wait for NHC to mark a node unhealthy. |
| 36 | + NHCObserveTimeout = 3 * time.Minute |
| 37 | + |
| 38 | + // SNRFenceTimeout is how long to wait for SNR to fence the node. |
| 39 | + SNRFenceTimeout = 5 * time.Minute |
| 40 | + |
| 41 | + // RescheduleTimeout is how long to wait for the pod to reschedule. |
| 42 | + RescheduleTimeout = 5 * time.Minute |
| 43 | + |
| 44 | + // NodeRecoveryTimeout is how long to wait for a node to become Ready after power-on. |
| 45 | + NodeRecoveryTimeout = 25 * time.Minute |
| 46 | + |
| 47 | + // PollingInterval is the default polling interval for Eventually blocks. |
| 48 | + PollingInterval = 10 * time.Second |
| 49 | + |
| 50 | + // BMCTimeout is the Redfish operation timeout. |
| 51 | + BMCTimeout = 6 * time.Minute |
8 | 52 | ) |
0 commit comments