From f1b49979265ab905ad1ab88adbc95a0e6a9ab64e Mon Sep 17 00:00:00 2001 From: frherrer Date: Tue, 24 Sep 2024 15:39:52 +0000 Subject: [PATCH] Adding multicluster testing to sail operator Signed-off-by: frherrer --- ...stio-ecosystem.sail-operator.main.gen.yaml | 68 +++++++++++++++++++ prow/config/jobs/sail-operator.yaml | 5 ++ 2 files changed, 73 insertions(+) diff --git a/prow/cluster/jobs/istio-ecosystem/sail-operator/istio-ecosystem.sail-operator.main.gen.yaml b/prow/cluster/jobs/istio-ecosystem/sail-operator/istio-ecosystem.sail-operator.main.gen.yaml index 785910e6de..9609f9d9ab 100644 --- a/prow/cluster/jobs/istio-ecosystem/sail-operator/istio-ecosystem.sail-operator.main.gen.yaml +++ b/prow/cluster/jobs/istio-ecosystem/sail-operator/istio-ecosystem.sail-operator.main.gen.yaml @@ -67,6 +67,74 @@ periodics: name: build-cache presubmits: istio-ecosystem/sail-operator: + - always_run: true + annotations: + testgrid-dashboards: istio-ecosystem_main_sail-operator + branches: + - ^main$ + decorate: true + name: e2e-kind-multicluster_sail-operator_main + rerun_command: /test e2e-kind-multicluster + spec: + automountServiceAccountToken: false + containers: + - command: + - entrypoint + - make + - -e + - MULTICLUSTER=true + - test.e2e.kind + env: + - name: BUILD_WITH_CONTAINER + value: "0" + - name: GOMAXPROCS + value: "5" + image: gcr.io/istio-testing/build-tools:master-688c4823afae1884e0a8faef2eeefd70af9d5e5c + name: "" + resources: + limits: + cpu: "5" + memory: 24Gi + requests: + cpu: "5" + memory: 3Gi + securityContext: + privileged: true + volumeMounts: + - mountPath: /home/prow/go/pkg + name: build-cache + subPath: gomod + - mountPath: /gocache + name: build-cache + subPath: gocache + - mountPath: /lib/modules + name: modules + readOnly: true + - mountPath: /sys/fs/cgroup + name: cgroup + readOnly: true + - mountPath: /var/lib/docker + name: docker-root + nodeSelector: + kubernetes.io/arch: amd64 + testing: test-pool + volumes: + - hostPath: + path: /var/tmp/prow/cache + type: DirectoryOrCreate + name: build-cache + - hostPath: + path: /lib/modules + type: Directory + name: modules + - hostPath: + path: /sys/fs/cgroup + type: Directory + name: cgroup + - emptyDir: {} + name: docker-root + trigger: ((?m)^/test( | .* )e2e-kind-multicluster,?($|\s.*))|((?m)^/test( | .* + )e2e-kind-multicluster_sail-operator_main,?($|\s.*)) - always_run: true annotations: testgrid-dashboards: istio-ecosystem_main_sail-operator diff --git a/prow/config/jobs/sail-operator.yaml b/prow/config/jobs/sail-operator.yaml index 341b6ba5f5..52d7583c0b 100644 --- a/prow/config/jobs/sail-operator.yaml +++ b/prow/config/jobs/sail-operator.yaml @@ -35,6 +35,11 @@ jobs: command: [entrypoint, make, -e, "OLM=true", test.e2e.kind] requirements: [kind] + - name: e2e-kind-multicluster + types: [presubmit] + command: [entrypoint, make, -e, "MULTICLUSTER=true", test.e2e.kind] + requirements: [kind] + - name: scorecard types: [presubmit] command: [entrypoint, make, test.scorecard]