Copy paste aws upper bounds for single node
@@ -10,6 +10,7 @@ import (
o "github.com/onsi/gomega"
apiserverv1 "github.com/openshift/api/apiserver/v1"
configv1 "github.com/openshift/api/config/v1"
+ v1 "github.com/openshift/api/config/v1"
apiserverclientv1 "github.com/openshift/client-go/apiserver/clientset/versioned/typed/apiserver/v1"
configclient "github.com/openshift/client-go/config/clientset/versioned"
"github.com/openshift/origin/pkg/test/ginkgo/result"
@@ -278,9 +279,50 @@ var _ = g.Describe("[sig-arch][Late]", func() {
},
}
+ upperBoundsSingleNode := map[configv1.PlatformType]platformUpperBound{
+ configv1.AWSPlatformType: {
+ "authentication-operator": 308,
+ "aws-ebs-csi-driver-operator": 108,
+ "cloud-credential-operator": 62,
+ "cluster-autoscaler-operator": 44,
+ "cluster-baremetal-operator": 31,
+ "cluster-image-registry-operator": 119,
+ "cluster-monitoring-operator": 32,
+ "cluster-node-tuning-operator": 39,
+ "cluster-samples-operator": 23,
+ "cluster-storage-operator": 155,
+ "console-operator": 146,
+ "csi-snapshot-controller-operator": 52,
+ "dns-operator": 59,
+ "etcd-operator": 125,
+ "ingress-operator": 371,
+ "kube-apiserver-operator": 260,
+ "kube-controller-manager-operator": 145,
+ "kube-storage-version-migrator-operator": 36,
+ "machine-api-operator": 48,
+ "marketplace-operator": 12,
+ "openshift-apiserver-operator": 226,
+ "openshift-config-operator": 47,
+ "openshift-controller-manager-operator": 149,
+ "openshift-kube-scheduler-operator": 179,
+ "prometheus-operator": 90,
+ "service-ca-operator": 107,
+ },
+ }
+
+ var upperBound platformUpperBound
+
+ if infra.Status.ControlPlaneTopology == v1.SingleReplicaTopologyMode {
+ if _, exists := upperBoundsSingleNode[infra.Spec.PlatformSpec.Type]; !exists {
+ e2eskipper.Skipf("Unsupported single node platform type: %v", infra.Spec.PlatformSpec.Type)
+ }
+ upperBound = upperBoundsSingleNode[infra.Spec.PlatformSpec.Type]
+ } else {
if _, exists := upperBounds[infra.Spec.PlatformSpec.Type]; !exists {
e2eskipper.Skipf("Unsupported platform type: %v", infra.Spec.PlatformSpec.Type)
}
+ upperBound = upperBounds[infra.Spec.PlatformSpec.Type]
+ }
apiRequestCounts, err := apirequestCountClient.APIRequestCounts().List(ctx, metav1.ListOptions{})
o.Expect(err).NotTo(o.HaveOccurred())
@@ -376,7 +418,7 @@ var _ = g.Describe("[sig-arch][Late]", func() {
fail := false
for _, item := range watchRequestCounts {
operator := strings.Split(item.operator, ":")[3]
- count, exists := upperBounds[infra.Spec.PlatformSpec.Type][operator]
+ count, exists := upperBound[operator]
if !exists {
framework.Logf("Operator %v not found in upper bounds for %v", operator, infra.Spec.PlatformSpec.Type)
