Skip to content

Commit

Permalink
fix: spec level and add test
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Mar 1, 2024
1 parent eda2cdf commit 0f491ae
Show file tree
Hide file tree
Showing 29 changed files with 1,142 additions and 841 deletions.
120 changes: 60 additions & 60 deletions packages/kontinuous/tests/__snapshots__/app-simple-options.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,21 +229,21 @@ spec:
emptyDir: {}
- name: kontinuous-io
emptyDir: {}
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
---
apiVersion: batch/v1
kind: Job
Expand Down Expand Up @@ -389,21 +389,21 @@ spec:
path: kubeconfig
- name: kontinuous-io
emptyDir: {}
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
---
apiVersion: batch/v1
kind: Job
Expand Down Expand Up @@ -528,21 +528,21 @@ spec:
emptyDir: {}
- name: kontinuous-io
emptyDir: {}
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
---
apiVersion: batch/v1
kind: Job
Expand Down Expand Up @@ -689,21 +689,21 @@ spec:
emptyDir: {}
- name: kontinuous-io
emptyDir: {}
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
---
apiVersion: apps/v1
kind: Deployment
Expand Down
30 changes: 15 additions & 15 deletions packages/kontinuous/tests/__snapshots__/charts.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,20 @@ spec:
requests:
cpu: 41m
memory: 121Mi
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
"
`;
30 changes: 15 additions & 15 deletions packages/kontinuous/tests/__snapshots__/deactivate.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,20 @@ spec:
path: kubeconfig
- name: kontinuous-io
emptyDir: {}
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
"
`;
60 changes: 30 additions & 30 deletions packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,21 +228,21 @@ spec:
path: kubeconfig
- name: kontinuous-io
emptyDir: {}
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
---
apiVersion: batch/v1
kind: Job
Expand Down Expand Up @@ -392,21 +392,21 @@ spec:
path: kubeconfig
- name: kontinuous-io
emptyDir: {}
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
---
apiVersion: apps/v1
kind: Deployment
Expand Down
60 changes: 30 additions & 30 deletions packages/kontinuous/tests/__snapshots__/extends-ovh.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,21 +388,21 @@ spec:
path: kubeconfig
- name: kontinuous-io
emptyDir: {}
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
---
apiVersion: batch/v1
kind: Job
Expand Down Expand Up @@ -552,21 +552,21 @@ spec:
path: kubeconfig
- name: kontinuous-io
emptyDir: {}
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: nodepool
operator: In
values:
- prod-build
tolerations:
- key: pool
operator: Equal
value: ci
effect: NoSchedule
---
apiVersion: apps/v1
kind: Deployment
Expand Down
Loading

0 comments on commit 0f491ae

Please sign in to comment.