Skip to content

Commit

Permalink
group jobs for serverless and keda (#9334)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoipm authored Nov 21, 2023
1 parent 0fac4da commit 4b49bf3
Show file tree
Hide file tree
Showing 12 changed files with 2,227 additions and 2,122 deletions.

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions prow/jobs/kyma-project/keda-manager/keda-manager-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Code generated by rendertemplates. DO NOT EDIT.


presubmits: # runs on PRs
kyma-project/keda-manager:
- name: pre-keda-manager-operator-lint
annotations:
description: "executes the 'golangci-lint lint' command on keda-manager before any pull request."
owner: "otters"
labels:
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pre-keda-manager-operator-lint"
prow.k8s.io/pubsub.topic: "prowjobs"
run_if_changed: '^(go.mod|go.sum|main.go|.golangci.yaml)$|^*/(.*.go|Makefile|.*.sh)$'
optional: true
skip_report: false
decorate: true
cluster: untrusted-workload
max_concurrency: 10
branches:
- ^main$
spec:
containers:
- image: "europe-docker.pkg.dev/kyma-project/prod/test-infra/golangci-lint:v20230821-fdb47ca7"
securityContext:
privileged: false
seccompProfile:
type: RuntimeDefault
allowPrivilegeEscalation: false
command:
- "bash"
args:
- "-c"
- "golangci-lint run -v && echo 'OK!'"
resources:
requests:
memory: 3Gi
cpu: 2

230 changes: 230 additions & 0 deletions prow/jobs/kyma-project/keda-manager/keda-manager-verify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
# Code generated by rendertemplates. DO NOT EDIT.


presubmits: # runs on PRs
kyma-project/keda-manager:
- name: pre-keda-manager-operator-tests
annotations:
description: "keda operator tests"
owner: "otters"
labels:
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pre-keda-manager-operator-tests"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-dind-enabled: "true"
preset-docker-push-repository-kyma: "true"
preset-sa-kyma-push-images: "true"
run_if_changed: '^(go.mod|go.sum)$|^*/(.*.go|Makefile|Dockerfile|.*.sh)'
skip_report: false
decorate: true
cluster: untrusted-workload
max_concurrency: 10
branches:
- ^main$
spec:
containers:
- image: "europe-docker.pkg.dev/kyma-project/prod/testimages/buildpack-go:v20231121-05130964"
securityContext:
privileged: false
seccompProfile:
type: RuntimeDefault
allowPrivilegeEscalation: false
command:
- "bash"
args:
- "-c"
- "make test"
resources:
requests:
memory: 3Gi
cpu: 2
- name: pre-keda-manager-verify
annotations:
description: "runs keda manager verity job on k3d VM"
owner: "otters"
labels:
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pre-keda-manager-verify"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-kyma-guard-bot-github-token: "true"
always_run: true
optional: false
skip_report: false
decorate: true
cluster: untrusted-workload
max_concurrency: 10
branches:
- ^master$
- ^main$
extra_refs:
- org: kyma-project
repo: test-infra
base_ref: main
spec:
containers:
- image: "europe-docker.pkg.dev/kyma-project/prod/testimages/e2e-dind-k3d:v20231121-05130964"
securityContext:
privileged: true
seccompProfile:
type: Unconfined
allowPrivilegeEscalation: true
command:
- "/init.sh"
args:
- "bash"
- "-c"
- "make -C hack/ci k3d-integration-test
"
resources:
requests:
memory: 4Gi
cpu: 3
limits:
memory: 4Gi
cpu: 3

postsubmits: # runs on main
kyma-project/keda-manager:
- name: post-keda-manager-verify
annotations:
description: "runs keda manager verity job on k3d VM"
owner: "otters"
labels:
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "post-keda-manager-verify"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-kyma-guard-bot-github-token: "true"
always_run: true
optional: true
skip_report: false
decorate: true
cluster: trusted-workload
max_concurrency: 10
branches:
- ^master$
- ^main$
extra_refs:
- org: kyma-project
repo: test-infra
base_ref: main
spec:
containers:
- image: "europe-docker.pkg.dev/kyma-project/prod/testimages/e2e-dind-k3d:v20231121-05130964"
securityContext:
privileged: true
seccompProfile:
type: Unconfined
allowPrivilegeEscalation: true
command:
- "/init.sh"
args:
- "bash"
- "-c"
- "make -C hack/ci k3d-lm-integration-test
"
resources:
requests:
memory: 4Gi
cpu: 3
limits:
memory: 4Gi
cpu: 3
- name: post-keda-manager-upgrade-latest-to-main
annotations:
description: "upgrade keda manager test"
owner: "otters"
labels:
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "post-keda-manager-upgrade-latest-to-main"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-kyma-guard-bot-github-token: "true"
always_run: true
optional: true
skip_report: false
decorate: true
cluster: trusted-workload
max_concurrency: 10
branches:
- ^master$
- ^main$
extra_refs:
- org: kyma-project
repo: test-infra
base_ref: main
spec:
containers:
- image: "europe-docker.pkg.dev/kyma-project/prod/testimages/e2e-dind-k3d:v20231121-05130964"
securityContext:
privileged: true
seccompProfile:
type: Unconfined
allowPrivilegeEscalation: true
command:
- "/init.sh"
args:
- "bash"
- "-c"
- "make -C hack/ci k3d-upgrade-test
"
resources:
requests:
memory: 4Gi
cpu: 3
limits:
memory: 4Gi
cpu: 3

periodics: # runs on schedule
- name: keda-operator-nightly-periodic
annotations:
description: "Keda nightly verify"
owner: "otters"
testgrid-dashboards: "keda-nightly"
testgrid-days-of-results: "60"
labels:
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "keda-operator-nightly-periodic"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-kyma-guard-bot-github-token: "true"
cron: "0 6 * * 1-5"
skip_report: false
decorate: true
cluster: trusted-workload
extra_refs:
- org: kyma-project
repo: keda-manager
base_ref: main
- org: kyma-project
repo: test-infra
base_ref: main
spec:
containers:
- image: "europe-docker.pkg.dev/kyma-project/prod/testimages/e2e-dind-k3d:v20231121-05130964"
securityContext:
privileged: true
seccompProfile:
type: Unconfined
allowPrivilegeEscalation: true
command:
- "/init.sh"
args:
- "bash"
- "-c"
- "make -C hack/ci run-with-lifecycle-manager
"
resources:
requests:
memory: 4Gi
cpu: 3
limits:
memory: 4Gi
cpu: 3

Loading

0 comments on commit 4b49bf3

Please sign in to comment.