-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from epoch8/datapipe-env
datapipe 0.2.1
- Loading branch information
Showing
6 changed files
with
135 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# 0.2.1 | ||
|
||
* Add support for `.Values.env` to loop-cronjob | ||
* Add unit tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
All manifests should match snapshot: | ||
1: | | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: datapipe | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: datapipe | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: datapipe-0.1.0 | ||
name: loop-hourly | ||
spec: | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- command: | ||
- datapipe | ||
- step | ||
- --labels=stage=loop-hourly | ||
- run | ||
env: | ||
- name: TEST_ENV | ||
value: test | ||
image: test-datapipe:1.1.1 | ||
name: loop-hourly | ||
ports: | ||
- containerPort: 8265 | ||
name: ray-dash-http | ||
restartPolicy: OnFailure | ||
schedule: 0 * * * * | ||
2: | | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: datapipe | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: datapipe | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: datapipe-0.1.0 | ||
name: loop-daily | ||
spec: | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- command: | ||
- datapipe | ||
- step | ||
- --labels=stage=loop-daily | ||
- run | ||
env: | ||
- name: TEST_ENV | ||
value: test | ||
image: test-datapipe:1.1.1 | ||
name: loop-daily | ||
ports: | ||
- containerPort: 8265 | ||
name: ray-dash-http | ||
restartPolicy: OnFailure | ||
schedule: 0 0 * * * | ||
3: | | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: datapipe | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: datapipe | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: datapipe-0.1.0 | ||
name: datapipe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# yaml-language-server: $schema=../values.schema.json | ||
|
||
image: | ||
repository: test-datapipe | ||
tag: 1.1.1 | ||
|
||
env: | ||
- name: TEST_ENV | ||
value: "test" | ||
|
||
loops: | ||
- name: loop-hourly | ||
schedule: "0 * * * *" | ||
labels: "stage=loop-hourly" | ||
- name: loop-daily | ||
schedule: "0 0 * * *" | ||
labels: "stage=loop-daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
suite: datapipe simple case | ||
|
||
values: | ||
- simple-values.yaml | ||
|
||
chart: | ||
version: 0.1.0 | ||
|
||
release: | ||
name: datapipe | ||
namespace: default | ||
|
||
tests: | ||
- it: All manifests should match snapshot | ||
templates: | ||
- loops-cronjob.yaml | ||
- serviceaccount.yaml | ||
asserts: | ||
- matchSnapshot: {} |