Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LabelSuite represents metallb label that can be used for test cases selection. LabelSuite = "metallb" // LabelBFDTestCases represents bfd label that can be used for test cases selection. LabelBFDTestCases = "bfd" // LabelBGPTestCases represents bgp label that can be used for test cases selection. LabelBGPTestCases = "bgp" // LabelDynamicRemoteASTestCases represents dynamic-remote-as label that can be used for test cases selection. LabelDynamicRemoteASTestCases = "dynamic-remote-as" // LabelLayer2TestCases represents layer2 label that can be used for test cases selection. LabelLayer2TestCases = "layer2" // LabelFRRTestCases represents frrk8 label that can be used for test cases selection. LabelFRRTestCases = "frrk8s" // BGPPassword var is used to set password for BGP session between FRR speakers. BGPPassword = "bgp-test" // MlbAddressListError an error message when the ECO_CNF_CORE_NET_MLB_ADDR_LIST is incorrect. MlbAddressListError = "An unexpected error occurred while " + "determining the IP addresses from the ECO_CNF_CORE_NET_MLB_ADDR_LIST environment variable." // DaemonsFile represents FRR default daemon configuration template. DaemonsFile = `` /* 2938-byte string literal not displayed */ // FRRBaseConfig represents FRR daemon minimal configuration. FRRBaseConfig = `` /* 144-byte string literal not displayed */ // FRRDefaultBGPPreConfig represents FRR daemon BGP minimal config. FRRDefaultBGPPreConfig = ` bgp router-id 10.10.10.11 no bgp ebgp-requires-policy no bgp default ipv4-unicast no bgp network import-check ` // FRRDefaultConfigMapName represents default FRR configMap name. FRRDefaultConfigMapName = "frr-config" // LocalBGPASN represents local BGP AS number. LocalBGPASN = 64500 // RemoteBGPASN represents remote BGP AS number. RemoteBGPASN = 64501 )
Variables ¶
View Source
var ( // Labels represents the range of labels that can be used for test cases selection. Labels = append(netparam.Labels, LabelSuite) // ReporterNamespacesToDump tells to the reporter from where to collect logs. ReporterNamespacesToDump = map[string]string{ "openshift-performance-addon-operator": "performance", "metallb-system": "metallb-system", "metallb-test": "other", } // ReporterCRDsToDump tells to the reporter what CRs to dump. ReporterCRDsToDump = []k8sreporter.CRData{ {Cr: setUnstructured(metallb.IPAddressPoolList)}, {Cr: setUnstructured(metallb.BGPAdvertisementListKind)}, {Cr: setUnstructured(metallb.IPAddressPoolList)}, {Cr: setUnstructured(metallb.BFDProfileList)}, {Cr: setUnstructured(metallb.BGPPeerListKind)}, {Cr: setUnstructured(metallb.MetalLBList)}, } // TestNamespaceName metalLb namespace where all test cases are performed. TestNamespaceName = "metallb-tests" // OperatorControllerManager defaults metalLb daemonset controller name. OperatorControllerManager = "metallb-operator-controller-manager" // OperatorWebhook defaults metalLb webhook deployment name. OperatorWebhook = "metallb-operator-webhook-server" // MetalLbIo default metalLb.io resource name. MetalLbIo = "metallb" // MetalLbDsName default metalLb speaker daemonset names. MetalLbDsName = "speaker" // FrrDsName default metalLb frr daemonset name. FrrDsName = "frr-k8s" // FRRK8sDefaultLabel represents the default metalLb FRRK8S pod label. FRRK8sDefaultLabel = "component=frr-k8s" // ExternalMacVlanNADName represents default external NetworkAttachmentDefinition name. ExternalMacVlanNADName = "external" // HubMacVlanNADName represents default external NetworkAttachmentDefinition name. HubMacVlanNADName = "nad-hub" // HubMacVlanNADSecIntName represents a NetworkAttachmentDefinition that includes the master interface. HubMacVlanNADSecIntName = "nad-hub-sec-int" // SleepCMD represents shel sleep command. SleepCMD = []string{"/bin/bash", "-c", "sleep INF"} // FRRContainerName represents default FRR's container name. FRRContainerName = "frr" // FRRSecondContainerName represents second FRR's container name. FRRSecondContainerName = "frr2" // DefaultTimeout represents the default timeout for most of Eventually/PollImmediate functions. DefaultTimeout = 180 * time.Second // DefaultRetryInterval represents the default retry interval for most of Eventually/PollImmediate functions. DefaultRetryInterval = 10 * time.Second // MetalLbSpeakerLabel represents test node label which allows to run metalLb speakers on specific nodes. MetalLbSpeakerLabel = map[string]string{"metal": "test"} // PrometheusMonitoringLabel represents the label which tells prometheus to monitor a given object. PrometheusMonitoringLabel = "openshift.io/cluster-monitoring" // PrometheusMonitoringPodLabel represents monitoring pod label selector. PrometheusMonitoringPodLabel = "app.kubernetes.io/name=prometheus" // EBGPProtocol represents external bgp protocol name. EBGPProtocol = "eBGP" // IBPGPProtocol represents internal bgp protocol name. IBPGPProtocol = "iBGP" // TestLabel represents node label for testing. TestLabel = map[string]string{"test": "label"} // MetalLbBgpMetrics represents the list of expected metallb metrics. MetalLbBgpMetrics = []string{"frrk8s_bgp_keepalives_sent", "frrk8s_bgp_keepalives_received", "frrk8s_bgp_notifications_sent", "frrk8s_bgp_opens_received", "frrk8s_bgp_opens_sent", "frrk8s_bgp_route_refresh_sent", "frrk8s_bgp_session_up", "frrk8s_bgp_total_received", "frrk8s_bgp_total_sent", "frrk8s_bgp_updates_total", "frrk8s_bgp_updates_total_received", "frrk8s_bgp_announced_prefixes_total", "frrk8s_bgp_received_prefixes_total", } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.