diff --git a/config/prow/k8s-testgrid/k8s-testgrid.yaml b/config/prow/k8s-testgrid/k8s-testgrid.yaml index 7d3e25d53..88847ce02 100644 --- a/config/prow/k8s-testgrid/k8s-testgrid.yaml +++ b/config/prow/k8s-testgrid/k8s-testgrid.yaml @@ -17,6 +17,7 @@ dashboard_groups: - utilities name: knative - dashboard_names: + - autoscaler-keda - backstage-plugins - eventing-autoscaler-keda - eventing-awssqs @@ -52,6 +53,7 @@ dashboard_groups: - serving-progressive-rollout name: knative-extensions dashboards: +- name: autoscaler-keda - name: backstage-plugins - name: client - name: client-pkg diff --git a/prow/jobs/generated/knative-extensions/autoscaler-keda-main.gen.yaml b/prow/jobs/generated/knative-extensions/autoscaler-keda-main.gen.yaml new file mode 100644 index 000000000..391c9faa9 --- /dev/null +++ b/prow/jobs/generated/knative-extensions/autoscaler-keda-main.gen.yaml @@ -0,0 +1,241 @@ +# ####################################################################### +# #### #### +# #### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. #### +# #### USE "./hack/generate-configs.sh" TO REGENERATE THIS FILE. #### +# #### #### +# ####################################################################### + +periodics: +- annotations: + testgrid-dashboards: autoscaler-keda + testgrid-tab-name: continuous + cluster: prow-build + cron: 21 */9 * * * + decorate: true + extra_refs: + - base_ref: main + org: knative-extensions + path_alias: knative.dev/autoscaler-keda + repo: autoscaler-keda + name: continuous_autoscaler-keda_main_periodic + spec: + containers: + - command: + - runner.sh + - ./test/presubmit-tests.sh + - --all-tests + env: + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /etc/test-account/service-account.json + image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240417-d0a9ee0eb + name: "" + resources: {} + securityContext: + privileged: true + volumeMounts: + - mountPath: /etc/test-account + name: test-account + readOnly: true + nodeSelector: + kubernetes.io/arch: amd64 + type: testing + volumes: + - name: test-account + secret: + items: + - key: service-account-key.json + path: service-account.json + secretName: prow-google-credentials +- annotations: + testgrid-dashboards: autoscaler-keda + testgrid-tab-name: nightly + cluster: prow-build + cron: 35 9 * * * + decorate: true + extra_refs: + - base_ref: main + org: knative-extensions + path_alias: knative.dev/autoscaler-keda + repo: autoscaler-keda + max_concurrency: 1 + name: nightly_autoscaler-keda_main_periodic + spec: + containers: + - command: + - runner.sh + - ./hack/release.sh + - --publish + - --tag-release + env: + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /etc/nightly-account/service-account.json + - name: SIGN_IMAGES + value: "true" + - name: ATTEST_IMAGES + value: "true" + image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240417-d0a9ee0eb + name: "" + resources: {} + securityContext: + privileged: true + volumeMounts: + - mountPath: /etc/nightly-account + name: nightly-account + readOnly: true + nodeSelector: + kubernetes.io/arch: amd64 + type: testing + volumes: + - name: nightly-account + secret: + items: + - key: nightly.json + path: service-account.json + secretName: prow-google-credentials +- annotations: + testgrid-dashboards: autoscaler-keda + testgrid-tab-name: release + cluster: prow-build + cron: 11 */9 * * * + decorate: true + extra_refs: + - base_ref: main + org: knative-extensions + path_alias: knative.dev/autoscaler-keda + repo: autoscaler-keda + max_concurrency: 1 + name: release_autoscaler-keda_main_periodic + spec: + containers: + - command: + - runner.sh + - ./hack/release.sh + - --auto-release + - --release-gcs + - knative-releases/autoscaler-keda + - --release-gcr + - gcr.io/knative-releases + - --github-token + - /etc/hub-token/token + env: + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /etc/release-account/service-account.json + - name: E2E_CLUSTER_REGION + value: us-central1 + - name: ORG_NAME + value: knative-extensions + - name: ATTEST_IMAGES + value: "true" + image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240417-d0a9ee0eb + name: "" + resources: {} + securityContext: + privileged: true + volumeMounts: + - mountPath: /etc/hub-token + name: hub-token + readOnly: true + - mountPath: /etc/release-account + name: release-account + readOnly: true + nodeSelector: + kubernetes.io/arch: amd64 + type: testing + volumes: + - name: hub-token + secret: + items: + - key: hub_token + path: token + secretName: github-credentials + - name: release-account + secret: + items: + - key: release.json + path: service-account.json + secretName: prow-google-credentials +presubmits: + knative-extensions/autoscaler-keda: + - always_run: true + branches: + - ^main$ + cluster: prow-build + decorate: true + name: build-tests_autoscaler-keda_main + path_alias: knative.dev/autoscaler-keda + rerun_command: /test build-tests + spec: + containers: + - command: + - runner.sh + - ./test/presubmit-tests.sh + - --build-tests + image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240417-d0a9ee0eb + name: "" + resources: {} + securityContext: + privileged: true + nodeSelector: + kubernetes.io/arch: amd64 + type: testing + trigger: ((?m)^/test( | .* )build-tests,?($|\s.*))|((?m)^/test( | .* )build-tests_autoscaler-keda_main,?($|\s.*)) + - always_run: true + branches: + - ^main$ + cluster: prow-build + decorate: true + name: unit-tests_autoscaler-keda_main + path_alias: knative.dev/autoscaler-keda + rerun_command: /test unit-tests + spec: + containers: + - command: + - runner.sh + - ./test/presubmit-tests.sh + - --unit-tests + image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240417-d0a9ee0eb + name: "" + resources: {} + securityContext: + privileged: true + nodeSelector: + kubernetes.io/arch: amd64 + type: testing + trigger: ((?m)^/test( | .* )unit-tests,?($|\s.*))|((?m)^/test( | .* )unit-tests_autoscaler-keda_main,?($|\s.*)) + - always_run: true + branches: + - ^main$ + cluster: prow-build + decorate: true + name: integration-tests_autoscaler-keda_main + path_alias: knative.dev/autoscaler-keda + rerun_command: /test integration-tests + spec: + containers: + - command: + - runner.sh + - ./test/presubmit-tests.sh + - --integration-tests + env: + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /etc/test-account/service-account.json + image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240417-d0a9ee0eb + name: "" + resources: {} + securityContext: + privileged: true + volumeMounts: + - mountPath: /etc/test-account + name: test-account + readOnly: true + nodeSelector: + kubernetes.io/arch: amd64 + type: testing + volumes: + - name: test-account + secret: + items: + - key: service-account-key.json + path: service-account.json + secretName: prow-google-credentials + trigger: ((?m)^/test( | .* )integration-tests,?($|\s.*))|((?m)^/test( | .* )integration-tests_autoscaler-keda_main,?($|\s.*)) diff --git a/prow/jobs_config/knative-extensions/autoscaler-keda.yaml b/prow/jobs_config/knative-extensions/autoscaler-keda.yaml new file mode 100644 index 000000000..3e9acc93b --- /dev/null +++ b/prow/jobs_config/knative-extensions/autoscaler-keda.yaml @@ -0,0 +1,37 @@ +org: knative-extensions +repo: autoscaler-keda +branches: [main] +image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240417-d0a9ee0eb + +jobs: + - name: build-tests + types: [presubmit] + command: [runner.sh, ./test/presubmit-tests.sh, --build-tests] + excluded_requirements: [gcp] + + - name: unit-tests + types: [presubmit] + command: [runner.sh, ./test/presubmit-tests.sh, --unit-tests] + excluded_requirements: [gcp] + + - name: integration-tests + types: [presubmit] + command: [runner.sh, ./test/presubmit-tests.sh, --integration-tests] + + - name: continuous + types: [periodic] + command: [runner.sh, ./test/presubmit-tests.sh, --all-tests] + + - name: nightly + types: [periodic] + command: [runner.sh, ./hack/release.sh, --publish, --tag-release] + requirements: [nightly] + excluded_requirements: [gcp] + max_concurrency: 1 + + - name: release + types: [periodic] + command: [runner.sh, ./hack/release.sh, --auto-release, --release-gcs, knative-releases/autoscaler-keda, --release-gcr, gcr.io/knative-releases, --github-token, /etc/hub-token/token] + requirements: [release] + excluded_requirements: [gcp] + max_concurrency: 1