This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
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 #118 from SocialGouv/kosko4
fix: ci deps upgrade
- Loading branch information
Showing
13 changed files
with
3,867 additions
and
198 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: '' | ||
git/branch: master | ||
git/remote: >- | ||
https://gitlab-ci-token:[MASKED]@gitlab.factory.social.gouv.fr/SocialGouv/archifiltre-site.git | ||
app.gitlab.com/app: socialgouv-archifiltre-site | ||
app.gitlab.com/env: master-dev2 | ||
app.gitlab.com/env.name: master-dev2 | ||
labels: | ||
azure-pg-admin-user: archifiltre-site | ||
application: master-dev2-archifiltre-site | ||
owner: archifiltre-site | ||
team: archifiltre-site | ||
cert: wildcard | ||
name: archifiltre-site-85-master-dev2 | ||
apiVersion: v1 | ||
kind: Namespace | ||
--- | ||
metadata: | ||
annotations: | ||
app.gitlab.com/app: socialgouv-archifiltre-site | ||
app.gitlab.com/env: master-dev2 | ||
app.gitlab.com/env.name: master-dev2 | ||
labels: | ||
app: app | ||
application: master-dev2-archifiltre-site | ||
owner: archifiltre-site | ||
team: archifiltre-site | ||
cert: wildcard | ||
component: nginx | ||
name: app | ||
namespace: archifiltre-site-85-master-dev2 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: app | ||
template: | ||
metadata: | ||
annotations: | ||
app.gitlab.com/app: socialgouv-archifiltre-site | ||
app.gitlab.com/env: master-dev2 | ||
app.gitlab.com/env.name: master-dev2 | ||
labels: | ||
app: app | ||
application: master-dev2-archifiltre-site | ||
owner: archifiltre-site | ||
team: archifiltre-site | ||
cert: wildcard | ||
component: nginx | ||
spec: | ||
containers: | ||
- image: >- | ||
registry.gitlab.factory.social.gouv.fr/socialgouv/archifiltre-site/app:0123456789abcdefghijklmnopqrstuvwxyz0123 | ||
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: master-dev2-archifiltre-site | ||
owner: archifiltre-site | ||
team: archifiltre-site | ||
cert: wildcard | ||
name: app | ||
annotations: | ||
app.gitlab.com/app: socialgouv-archifiltre-site | ||
app.gitlab.com/env: master-dev2 | ||
app.gitlab.com/env.name: master-dev2 | ||
namespace: archifiltre-site-85-master-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-archifiltre-site | ||
app.gitlab.com/env: master-dev2 | ||
app.gitlab.com/env.name: master-dev2 | ||
labels: | ||
app: app | ||
application: master-dev2-archifiltre-site | ||
owner: archifiltre-site | ||
team: archifiltre-site | ||
cert: wildcard | ||
name: app | ||
namespace: archifiltre-site-85-master-dev2 | ||
spec: | ||
rules: | ||
- host: master-dev2-archifiltre-site.dev2.fabrique.social.gouv.fr | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: app | ||
servicePort: 80 | ||
path: / | ||
tls: | ||
- hosts: | ||
- master-dev2-archifiltre-site.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: '' | ||
git/branch: v1.2.3 | ||
git/remote: >- | ||
https://gitlab-ci-token:[MASKED]@gitlab.factory.social.gouv.fr/SocialGouv/archifiltre-site.git | ||
app.gitlab.com/app: socialgouv-archifiltre-site | ||
app.gitlab.com/env: preprod-dev2 | ||
app.gitlab.com/env.name: preprod-dev2 | ||
labels: | ||
azure-pg-admin-user: archifiltre-site | ||
application: v1-2-3-archifiltre-site | ||
owner: archifiltre-site | ||
team: archifiltre-site | ||
cert: wildcard | ||
name: archifiltre-site-85-preprod-dev2 | ||
apiVersion: v1 | ||
kind: Namespace | ||
--- | ||
metadata: | ||
annotations: | ||
app.gitlab.com/app: socialgouv-archifiltre-site | ||
app.gitlab.com/env: preprod-dev2 | ||
app.gitlab.com/env.name: preprod-dev2 | ||
labels: | ||
app: app | ||
application: v1-2-3-archifiltre-site | ||
owner: archifiltre-site | ||
team: archifiltre-site | ||
cert: wildcard | ||
component: nginx | ||
name: app | ||
namespace: archifiltre-site-85-preprod-dev2 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: app | ||
template: | ||
metadata: | ||
annotations: | ||
app.gitlab.com/app: socialgouv-archifiltre-site | ||
app.gitlab.com/env: preprod-dev2 | ||
app.gitlab.com/env.name: preprod-dev2 | ||
labels: | ||
app: app | ||
application: v1-2-3-archifiltre-site | ||
owner: archifiltre-site | ||
team: archifiltre-site | ||
cert: wildcard | ||
component: nginx | ||
spec: | ||
containers: | ||
- image: >- | ||
registry.gitlab.factory.social.gouv.fr/socialgouv/archifiltre-site/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-archifiltre-site | ||
owner: archifiltre-site | ||
team: archifiltre-site | ||
cert: wildcard | ||
name: app | ||
annotations: | ||
app.gitlab.com/app: socialgouv-archifiltre-site | ||
app.gitlab.com/env: preprod-dev2 | ||
app.gitlab.com/env.name: preprod-dev2 | ||
namespace: archifiltre-site-85-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-archifiltre-site | ||
app.gitlab.com/env: preprod-dev2 | ||
app.gitlab.com/env.name: preprod-dev2 | ||
labels: | ||
app: app | ||
application: v1-2-3-archifiltre-site | ||
owner: archifiltre-site | ||
team: archifiltre-site | ||
cert: wildcard | ||
name: app | ||
namespace: archifiltre-site-85-preprod-dev2 | ||
spec: | ||
rules: | ||
- host: preprod-archifiltre-site.dev2.fabrique.social.gouv.fr | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: app | ||
servicePort: 80 | ||
path: / | ||
tls: | ||
- hosts: | ||
- preprod-archifiltre-site.dev2.fabrique.social.gouv.fr | ||
secretName: wildcard-crt | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
" | ||
`; |
Oops, something went wrong.