Skip to content

Commit

Permalink
feat: external pgweb chart (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Aug 2, 2023
1 parent 5725c8b commit 721aaf4
Show file tree
Hide file tree
Showing 19 changed files with 456 additions and 510 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ node_modules
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
!.yarn/
Chart.lock

/.env
/kontinuous-dist
178 changes: 0 additions & 178 deletions packages/kontinuous/tests/__snapshots__/jobs-build.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -945,115 +945,6 @@ spec:
- configMapRef:
name: hasura-configmap
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
component: pgweb
application: test-jobs-build
kontinuous/deployment: test-jobs-build-feature-branch-1-ffac537e6cbbf934b087-50be2a5c
kontinuous/deployment.env: test-jobs-build-feature-branch-1
kontinuous/ref: feature-branch-1
kontinuous/gitSha: ffac537e6cbbf934b08745a378932722df287a53
kontinuous/appVersion: ffac537e6cbbf934b08745a378932722df287a53
kontinuous/resourceName: deployment-pgweb-5afr2ikf
app.kubernetes.io/manifest-managed-by: kontinuous
app.kubernetes.io/manifest-created-by: kontinuous
name: pgweb
namespace: test-jobs-build-feature-branch-1
annotations:
kontinuous/chartPath: project.fabrique.contrib.pgweb
kontinuous/source: project/charts/fabrique/charts/contrib/charts/pgweb/templates/deployment.yaml
kontinuous/plugin.needs: '[\\"db\\"]'
kontinuous/deployment: test-jobs-build-feature-branch-1-ffac537e6cbbf934b087-50be2a5c
kontinuous/depname.full: project.fabrique.contrib.pgweb.deployment.pgweb
kontinuous/depname.chartResource: pgweb.deployment.pgweb
kontinuous/depname.chartName: pgweb
kontinuous/depname.chartPath: project.fabrique.contrib.pgweb
kontinuous/depname.resourcePath: deployment.pgweb
kontinuous/depname.resourceName: pgweb
kontinuous/depname.chartNameTopFull: pgweb
kontinuous/depname.chartNameTop: pgweb
kontinuous/plugin.log: \\"false\\"
reloader.stakater.com/auto: \\"true\\"
spec:
replicas: 1
selector:
matchLabels:
component: pgweb
template:
metadata:
labels:
component: pgweb
application: test-jobs-build
kontinuous/deployment: test-jobs-build-feature-branch-1-ffac537e6cbbf934b087-50be2a5c
kontinuous/deployment.env: test-jobs-build-feature-branch-1
kontinuous/ref: feature-branch-1
kontinuous/gitSha: ffac537e6cbbf934b08745a378932722df287a53
kontinuous/appVersion: ffac537e6cbbf934b08745a378932722df287a53
kontinuous/resourceName: deployment-pgweb-5afr2ikf
app.kubernetes.io/manifest-managed-by: kontinuous
app.kubernetes.io/manifest-created-by: kontinuous
annotations:
kontinuous/deployment: test-jobs-build-feature-branch-1-ffac537e6cbbf934b087-50be2a5c
spec:
initContainers:
- name: wait-for-postgres
image: ghcr.io/socialgouv/docker/wait-for-postgres:6.56.1
imagePullPolicy: Always
env:
- name: WAIT_FOR_RETRIES
value: \\"24\\"
envFrom:
- secretRef:
name: pg-user
resources:
limits:
cpu: 20m
memory: 32Mi
requests:
cpu: 5m
memory: 16Mi
containers:
- image: sosedoff/pgweb:0.11.8
name: pgweb
envFrom:
- secretRef:
name: pg-user
ports:
- containerPort: 8081
name: http
livenessProbe:
failureThreshold: 6
httpGet:
path: /
port: http
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5
readinessProbe:
failureThreshold: 15
httpGet:
path: /
port: http
initialDelaySeconds: 1
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
startupProbe:
failureThreshold: 12
httpGet:
path: /
port: http
periodSeconds: 5
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 100m
memory: 64Mi
---
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -1114,36 +1005,6 @@ spec:
component: hasura
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
labels:
component: pgweb
application: test-jobs-build
kontinuous/deployment: test-jobs-build-feature-branch-1-ffac537e6cbbf934b087-50be2a5c
kontinuous/deployment.env: test-jobs-build-feature-branch-1
kontinuous/ref: feature-branch-1
kontinuous/gitSha: ffac537e6cbbf934b08745a378932722df287a53
kontinuous/appVersion: ffac537e6cbbf934b08745a378932722df287a53
kontinuous/resourceName: service-pgweb-2rlshjo0
app.kubernetes.io/manifest-managed-by: kontinuous
app.kubernetes.io/manifest-created-by: kontinuous
name: pgweb
namespace: test-jobs-build-feature-branch-1
annotations:
kontinuous/chartPath: project.fabrique.contrib.pgweb
kontinuous/source: project/charts/fabrique/charts/contrib/charts/pgweb/templates/service.yaml
kontinuous/plugin.needs: '[\\"db\\"]'
kontinuous/deployment: test-jobs-build-feature-branch-1-ffac537e6cbbf934b087-50be2a5c
spec:
ports:
- name: http
port: 8081
targetPort: 8081
selector:
component: pgweb
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand Down Expand Up @@ -1221,44 +1082,5 @@ spec:
- hosts:
- hasura-test-jobs-build-feature-branch-1.dev.fabrique.social.gouv.fr
secretName: wildcard-crt
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
kontinuous/chartPath: project.fabrique.contrib.pgweb
kontinuous/source: project/charts/fabrique/charts/contrib/charts/pgweb/templates/ingress.yaml
kontinuous/plugin.needs: '[\\"db\\"]'
kontinuous/deployment: test-jobs-build-feature-branch-1-ffac537e6cbbf934b087-50be2a5c
labels:
component: pgweb
application: test-jobs-build
kontinuous/deployment: test-jobs-build-feature-branch-1-ffac537e6cbbf934b087-50be2a5c
kontinuous/deployment.env: test-jobs-build-feature-branch-1
kontinuous/ref: feature-branch-1
kontinuous/gitSha: ffac537e6cbbf934b08745a378932722df287a53
kontinuous/appVersion: ffac537e6cbbf934b08745a378932722df287a53
kontinuous/resourceName: ingress-pgweb-2mnfw5rd
app.kubernetes.io/manifest-managed-by: kontinuous
app.kubernetes.io/manifest-created-by: kontinuous
name: pgweb
namespace: test-jobs-build-feature-branch-1
spec:
rules:
- host: pgweb-test-jobs-build-feature-branch-1.dev.fabrique.social.gouv.fr
http:
paths:
- backend:
service:
name: pgweb
port:
name: http
path: /
pathType: Prefix
tls:
- hosts:
- pgweb-test-jobs-build-feature-branch-1.dev.fabrique.social.gouv.fr
secretName: wildcard-crt
"
`;
Loading

0 comments on commit 721aaf4

Please sign in to comment.