Skip to content

Commit

Permalink
move (unify) warden integration test to template (#9393)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoipm authored Nov 27, 2023
1 parent 94bc4aa commit f1ff618
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 27 deletions.
61 changes: 34 additions & 27 deletions prow/jobs/kyma-project/warden/integration-test.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,47 @@
presubmits:
# Code generated by rendertemplates. DO NOT EDIT.


presubmits: # runs on PRs
kyma-project/warden:
- name: pull-warden-integration-test
- name: pre-warden-integration-test
annotations:
owner: otters
description: Warden integration test
description: "Warden integration test"
owner: "otters"
labels:
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-k3d-enabled: "true"
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pull-warden-integration-test"
prow.k8s.io/pubsub.runID: "pre-warden-integration-test"
prow.k8s.io/pubsub.topic: "prowjobs"
cluster: untrusted-workload
decorate: true
preset-dind-enabled: "true"
preset-k3d-enabled: "true"
preset-kind-volume-mounts: "true"
skip_if_only_changed: '^docs/|\.md$'
skip_report: false
decorate: true
cluster: untrusted-workload
max_concurrency: 10
branches:
- ^master$
- ^main$
spec:
containers:
- image: europe-docker.pkg.dev/kyma-project/prod/testimages/e2e-dind-k3d:v20231122-2a5515a2
command: ["/init.sh"]
args:
- bash
- -c
- |
kubectl cluster-info
make install run-integration-tests
failed=$?
kubectl logs -l app=warden --prefix=true
k3d cluster delete
exit $failed
resources:
requests:
memory: 1Gi
limits:
memory: 1Gi
- image: "europe-docker.pkg.dev/kyma-project/prod/testimages/e2e-dind-k3d:v20231122-2a5515a2"
securityContext:
privileged: true
seccompProfile:
type: Unconfined
allowPrivilegeEscalation: true
command:
- "/init.sh"
args:
- "bash"
- "-c"
- "kubectl cluster-info;
make install run-integration-tests;
failed=$?;
kubectl logs -l app=warden --prefix=true;
exit $failed"
resources:
requests:
memory: 3Gi
cpu: 2

39 changes: 39 additions & 0 deletions templates/data/warden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,42 @@ templates:
local:
- testing
- skip_if_only_changed_documentation
- from: generic.tmpl
render:
- to: ../../prow/jobs/kyma-project/warden/integration-test.yaml
localSets:
e2e_dind:
labels:
preset-kind-volume-mounts: "true"
preset-dind-enabled: "true"
image: europe-docker.pkg.dev/kyma-project/prod/testimages/e2e-dind-k3d:v20231122-2a5515a2
command: "/init.sh"
skip_if_only_changed_documentation:
skip_if_only_changed: '^docs/|\.md$'
jobConfigs:
- repoName: "github.com/kyma-project/warden"
jobs:
- jobConfig:
name: pre-warden-integration-test
annotations:
owner: otters
description: Warden integration test
labels:
preset-k3d-enabled: "true"
args:
- bash
- -c
- |-
kubectl cluster-info;
make install run-integration-tests;
failed=$?;
kubectl logs -l app=warden --prefix=true;
exit $failed
inheritedConfigs:
global:
- jobConfig_default
- privileged
- jobConfig_presubmit
local:
- e2e_dind
- skip_if_only_changed_documentation

0 comments on commit f1ff618

Please sign in to comment.