This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Julien Bouquillon
committed
Dec 5, 2020
1 parent
541303a
commit 1147a8a
Showing
15 changed files
with
3,864 additions
and
191 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
152 changes: 152 additions & 0 deletions
152
.k8s/__tests__/__snapshots__/kosko generate --env dev.ts.snap
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,152 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`kosko generate --dev 1`] = ` | ||
"--- | ||
metadata: | ||
annotations: | ||
field.cattle.io/creatorId: gitlab | ||
field.cattle.io/projectId: 'c-f8qps:p-46tj7' | ||
git/branch: beta-db-12 | ||
git/remote: >- | ||
https://gitlab-ci-token:[MASKED]@gitlab.factory.social.gouv.fr/SocialGouv/socialgouv-github-io.git | ||
app.gitlab.com/app: socialgouv-emjpm-portail | ||
app.gitlab.com/env: beta-db-12-dev2 | ||
app.gitlab.com/env.name: beta-db-12-dev2 | ||
labels: | ||
azure-pg-admin-user: emjpm-portail | ||
application: beta-db-12-dev2-emjpm-portail | ||
owner: emjpm-portail | ||
team: emjpm-portail | ||
cert: wildcard | ||
name: emjpm-portail-85-beta-db-12-dev2 | ||
apiVersion: v1 | ||
kind: Namespace | ||
--- | ||
metadata: | ||
annotations: | ||
app.gitlab.com/app: socialgouv-emjpm-portail | ||
app.gitlab.com/env: beta-db-12-dev2 | ||
app.gitlab.com/env.name: beta-db-12-dev2 | ||
labels: | ||
app: app | ||
application: beta-db-12-dev2-emjpm-portail | ||
owner: emjpm-portail | ||
team: emjpm-portail | ||
cert: wildcard | ||
component: nginx | ||
name: app | ||
namespace: emjpm-portail-85-beta-db-12-dev2 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: app | ||
template: | ||
metadata: | ||
annotations: | ||
app.gitlab.com/app: socialgouv-emjpm-portail | ||
app.gitlab.com/env: beta-db-12-dev2 | ||
app.gitlab.com/env.name: beta-db-12-dev2 | ||
labels: | ||
app: app | ||
application: beta-db-12-dev2-emjpm-portail | ||
owner: emjpm-portail | ||
team: emjpm-portail | ||
cert: wildcard | ||
component: nginx | ||
spec: | ||
containers: | ||
- image: >- | ||
registry.gitlab.factory.social.gouv.fr/socialgouv/emjpm-portail/app:c58c0974f7023063b1296d3a5a285b46b92771f8 | ||
livenessProbe: | ||
failureThreshold: 6 | ||
httpGet: | ||
path: /index.html | ||
port: http | ||
initialDelaySeconds: 30 | ||
periodSeconds: 5 | ||
timeoutSeconds: 5 | ||
name: app | ||
ports: | ||
- containerPort: 80 | ||
name: http | ||
readinessProbe: | ||
failureThreshold: 15 | ||
httpGet: | ||
path: /index.html | ||
port: http | ||
initialDelaySeconds: 0 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 128Mi | ||
requests: | ||
cpu: 5m | ||
memory: 32Mi | ||
startupProbe: | ||
failureThreshold: 12 | ||
httpGet: | ||
path: /index.html | ||
port: http | ||
periodSeconds: 5 | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
--- | ||
metadata: | ||
labels: | ||
app: app | ||
application: beta-db-12-dev2-emjpm-portail | ||
owner: emjpm-portail | ||
team: emjpm-portail | ||
cert: wildcard | ||
name: app | ||
annotations: | ||
app.gitlab.com/app: socialgouv-emjpm-portail | ||
app.gitlab.com/env: beta-db-12-dev2 | ||
app.gitlab.com/env.name: beta-db-12-dev2 | ||
namespace: emjpm-portail-85-beta-db-12-dev2 | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
targetPort: 80 | ||
selector: | ||
app: app | ||
type: ClusterIP | ||
apiVersion: v1 | ||
kind: Service | ||
--- | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
app.gitlab.com/app: socialgouv-emjpm-portail | ||
app.gitlab.com/env: beta-db-12-dev2 | ||
app.gitlab.com/env.name: beta-db-12-dev2 | ||
labels: | ||
app: app | ||
application: beta-db-12-dev2-emjpm-portail | ||
owner: emjpm-portail | ||
team: emjpm-portail | ||
cert: wildcard | ||
name: app | ||
namespace: emjpm-portail-85-beta-db-12-dev2 | ||
spec: | ||
rules: | ||
- host: beta-db-12-dev2-emjpm-portail.dev2.fabrique.social.gouv.fr | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: app | ||
servicePort: 80 | ||
path: / | ||
tls: | ||
- hosts: | ||
- beta-db-12-dev2-emjpm-portail.dev2.fabrique.social.gouv.fr | ||
secretName: wildcard-crt | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
" | ||
`; |
152 changes: 152 additions & 0 deletions
152
.k8s/__tests__/__snapshots__/kosko generate --env preprod.ts.snap
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,152 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`kosko generate --preprod 1`] = ` | ||
"--- | ||
metadata: | ||
annotations: | ||
field.cattle.io/creatorId: gitlab | ||
field.cattle.io/projectId: 'c-f8qps:p-46tj7' | ||
git/branch: beta-db-12 | ||
git/remote: >- | ||
https://gitlab-ci-token:[MASKED]@gitlab.factory.social.gouv.fr/SocialGouv/socialgouv-github-io.git | ||
app.gitlab.com/app: socialgouv-emjpm-portail | ||
app.gitlab.com/env: preprod-dev2 | ||
app.gitlab.com/env.name: preprod-dev2 | ||
labels: | ||
azure-pg-admin-user: emjpm-portail | ||
application: v1-2-3-emjpm-portail | ||
owner: emjpm-portail | ||
team: emjpm-portail | ||
cert: wildcard | ||
name: emjpm-portail-site-24-preprod-dev2 | ||
apiVersion: v1 | ||
kind: Namespace | ||
--- | ||
metadata: | ||
annotations: | ||
app.gitlab.com/app: socialgouv-emjpm-portail | ||
app.gitlab.com/env: preprod-dev2 | ||
app.gitlab.com/env.name: preprod-dev2 | ||
labels: | ||
app: app | ||
application: v1-2-3-emjpm-portail | ||
owner: emjpm-portail | ||
team: emjpm-portail | ||
cert: wildcard | ||
component: nginx | ||
name: app | ||
namespace: emjpm-portail-site-24-preprod-dev2 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: app | ||
template: | ||
metadata: | ||
annotations: | ||
app.gitlab.com/app: socialgouv-emjpm-portail | ||
app.gitlab.com/env: preprod-dev2 | ||
app.gitlab.com/env.name: preprod-dev2 | ||
labels: | ||
app: app | ||
application: v1-2-3-emjpm-portail | ||
owner: emjpm-portail | ||
team: emjpm-portail | ||
cert: wildcard | ||
component: nginx | ||
spec: | ||
containers: | ||
- image: >- | ||
registry.gitlab.factory.social.gouv.fr/socialgouv/emjpm-portail/app:1.2.3 | ||
livenessProbe: | ||
failureThreshold: 6 | ||
httpGet: | ||
path: /index.html | ||
port: http | ||
initialDelaySeconds: 30 | ||
periodSeconds: 5 | ||
timeoutSeconds: 5 | ||
name: app | ||
ports: | ||
- containerPort: 80 | ||
name: http | ||
readinessProbe: | ||
failureThreshold: 15 | ||
httpGet: | ||
path: /index.html | ||
port: http | ||
initialDelaySeconds: 0 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 128Mi | ||
requests: | ||
cpu: 5m | ||
memory: 32Mi | ||
startupProbe: | ||
failureThreshold: 12 | ||
httpGet: | ||
path: /index.html | ||
port: http | ||
periodSeconds: 5 | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
--- | ||
metadata: | ||
labels: | ||
app: app | ||
application: v1-2-3-emjpm-portail | ||
owner: emjpm-portail | ||
team: emjpm-portail | ||
cert: wildcard | ||
name: app | ||
annotations: | ||
app.gitlab.com/app: socialgouv-emjpm-portail | ||
app.gitlab.com/env: preprod-dev2 | ||
app.gitlab.com/env.name: preprod-dev2 | ||
namespace: emjpm-portail-site-24-preprod-dev2 | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
targetPort: 80 | ||
selector: | ||
app: app | ||
type: ClusterIP | ||
apiVersion: v1 | ||
kind: Service | ||
--- | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
app.gitlab.com/app: socialgouv-emjpm-portail | ||
app.gitlab.com/env: preprod-dev2 | ||
app.gitlab.com/env.name: preprod-dev2 | ||
labels: | ||
app: app | ||
application: v1-2-3-emjpm-portail | ||
owner: emjpm-portail | ||
team: emjpm-portail | ||
cert: wildcard | ||
name: app | ||
namespace: emjpm-portail-site-24-preprod-dev2 | ||
spec: | ||
rules: | ||
- host: preprod-emjpm-portail.dev2.fabrique.social.gouv.fr | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: app | ||
servicePort: 80 | ||
path: / | ||
tls: | ||
- hosts: | ||
- preprod-emjpm-portail.dev2.fabrique.social.gouv.fr | ||
secretName: wildcard-crt | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
" | ||
`; |
Oops, something went wrong.