Skip to content

Commit

Permalink
Added test job for PRs (#66)
Browse files Browse the repository at this point in the history
* Added test job for PRs

* Added gitRepo volume and mount point
  • Loading branch information
saidsef authored Dec 14, 2023
1 parent c29707b commit fbb2c37
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
34 changes: 34 additions & 0 deletions deployment/base/job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: v1
kind: Pod
metadata:
name: tracing-node
labels:
app.kubernetes.io/name: tracing-node
spec:
activeDeadlineSeconds: 120
automountServiceAccountToken: false
enableServiceLinks: false
restartPolicy: Never
preemptionPolicy: PreemptLowerPriority
containers:
- name: tracing-node
image: docker.io/node:20-alpine3.19
workingDir: "/app"
command:
- /bin/sh
args:
- -c
- "npm install && node libs/index.js"
resources:
limits:
memory: "1Gi"
cpu: "500m"
volumeMounts:
- name: git
mountPath: /app
volumes:
- name: git
gitRepo:
directory: "."
repository: "https://github.com/saidsef/tracing-node.git"
revision: "add-test-job"
5 changes: 5 additions & 0 deletions deployment/base/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- job.yml
5 changes: 5 additions & 0 deletions deployment/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- base/

0 comments on commit fbb2c37

Please sign in to comment.