Skip to content

Commit

Permalink
feat: opa
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed May 22, 2024
1 parent 84c0bc8 commit f6cb59e
Show file tree
Hide file tree
Showing 56 changed files with 371 additions and 856 deletions.
12 changes: 2 additions & 10 deletions packages/kontinuous/tests/__snapshots__/app-sidecar.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 41m
memory: 131Mi
limits: {}
requests: {}
- name: cronjob
image: test/background-cronjob
command:
Expand All @@ -194,10 +190,6 @@ spec:
run-background-cronjob
securityContext:
runAsUser: 1000
resources:
requests:
cpu: 41m
memory: 131Mi
---
apiVersion: v1
kind: Service
Expand Down
72 changes: 18 additions & 54 deletions packages/kontinuous/tests/__snapshots__/app-simple-options.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: ghcr.io/socialgouv/docker/psql:6.70.0
Expand Down Expand Up @@ -201,12 +197,8 @@ spec:
set -e
/action/ensure-db.sh
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down Expand Up @@ -310,12 +302,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: bitnami/kubectl:latest
Expand Down Expand Up @@ -351,12 +339,8 @@ spec:
set -e
/action/create-secret.sh
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1001
runAsGroup: 1001
Expand Down Expand Up @@ -473,12 +457,8 @@ spec:
- name: workspace
mountPath: /workspace
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: harbor.fabrique.social.gouv.fr/test-app-simple-options/app:sha-ffac537e6cbbf934b08745a378932722df287a53
Expand All @@ -498,12 +478,8 @@ spec:
set -e
yarn seed
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down Expand Up @@ -611,12 +587,8 @@ spec:
- name: workspace
mountPath: /workspace
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
- name: degit-action
image: ghcr.io/socialgouv/kontinuous/degit:v1.176.2
command:
Expand All @@ -631,12 +603,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: ghcr.io/socialgouv/docker/psql:7.0.0
Expand All @@ -658,12 +626,8 @@ spec:
set -e
/action/seed-db.sh
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
8 changes: 2 additions & 6 deletions packages/kontinuous/tests/__snapshots__/app-simple.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
---
apiVersion: v1
kind: Service
Expand Down
8 changes: 2 additions & 6 deletions packages/kontinuous/tests/__snapshots__/app-simple.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
---
apiVersion: v1
kind: Service
Expand Down
16 changes: 4 additions & 12 deletions packages/kontinuous/tests/__snapshots__/chart-group.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -210,12 +206,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
---
apiVersion: v1
kind: Service
Expand Down
16 changes: 4 additions & 12 deletions packages/kontinuous/tests/__snapshots__/chart-groups.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -210,12 +206,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
---
apiVersion: v1
kind: Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
---
apiVersion: v1
kind: Service
Expand Down
4 changes: 0 additions & 4 deletions packages/kontinuous/tests/__snapshots__/charts.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,6 @@ spec:
set -e
echo Hello World
FOO=\\"barjo\\"\\"
resources:
requests:
cpu: 81m
memory: 262Mi
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down
8 changes: 2 additions & 6 deletions packages/kontinuous/tests/__snapshots__/daemon.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,7 @@ spec:
- image: harbor.fabrique.social.gouv.fr/test-daemon/daemon:sha-ffac537e6cbbf934b08745a378932722df287a53
name: app
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
"
`;
16 changes: 4 additions & 12 deletions packages/kontinuous/tests/__snapshots__/deactivate.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: bitnami/kubectl:latest
Expand All @@ -96,12 +92,8 @@ spec:
kubectl delete namespace \\"$NAMESPACE\\" --now=true --wait=false
fi
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1001
runAsGroup: 1001
Expand Down
40 changes: 10 additions & 30 deletions packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: bitnami/kubectl:latest
Expand Down Expand Up @@ -191,12 +187,8 @@ spec:
set -e
/action/create-secrets.sh
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1001
runAsGroup: 1001
Expand Down Expand Up @@ -310,12 +302,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: bitnami/kubectl:latest
Expand Down Expand Up @@ -354,12 +342,8 @@ spec:
set -e
/action/create-secrets.sh
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1001
runAsGroup: 1001
Expand Down Expand Up @@ -505,12 +489,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
---
apiVersion: v1
kind: Service
Expand Down
Loading

0 comments on commit f6cb59e

Please sign in to comment.