Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Add helm charts for apollo router
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Mar 13, 2024
1 parent 4efcbad commit e75327c
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
helm repo add opa https://open-policy-agent.github.io/kube-mgmt/charts
helm repo add prometheus https://prometheus-community.github.io/helm-charts
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add router oci://ghcr.io/apollographql/helm-charts
- name: Lint
run: >
Expand Down
7 changes: 5 additions & 2 deletions charts/xchemlab/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ dependencies:
- name: rabbitmq
repository: oci://docker.io/bitnamicharts
version: 12.0.7
- name: router
repository: oci://ghcr.io/apollographql/helm-charts
version: 1.41.1
- name: oauth2-proxy
repository: oci://registry-1.docker.io/bitnamicharts
version: 3.7.4
- name: oauth2-proxy
repository: oci://registry-1.docker.io/bitnamicharts
version: 3.7.4
digest: sha256:a634cb025d1c7c8a262ad068b91942e57b3d01fb93c360c280325025c7847a1f
generated: "2024-03-07T11:33:00.477078341Z"
digest: sha256:392add4e5d0d1eadb60a80376f5422e17b58638eb604042e90381aa8a9ce7f71
generated: "2024-03-13T12:10:55.03395991Z"
6 changes: 5 additions & 1 deletion charts/xchemlab/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.10.0
version: 0.11.0

dependencies:
- name: chimp-chomp
Expand Down Expand Up @@ -55,6 +55,10 @@ dependencies:
repository: oci://docker.io/bitnamicharts
version: 12.0.7
condition: rabbitmq.enabled
- name: router
repository: oci://ghcr.io/apollographql/helm-charts
version: 1.41.1
condition: apollo-router.enabled
- alias: oauth2-proxy-thanos
name: oauth2-proxy
repository: oci://registry-1.docker.io/bitnamicharts
Expand Down
8 changes: 8 additions & 0 deletions charts/xchemlab/templates/router-apikey-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: router-apikey
namespace: xchemlab
data:
managedFederationApiKey: c2VydmljZTp4Y2hlbWxhYjo3OEJRazlNTmlTMTREd0dHZkdOOWZ3
24 changes: 24 additions & 0 deletions charts/xchemlab/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,30 @@ postgresql-ha:
storageClass: db-nvme-storage
size: 50Gi

router:
enabled: true
managedFederation:
existingSecret: router-apikey
graphRef: xchemlab@current
ingress:
enabled: true
hosts:
- host: xchemlab.diamond.ac.uk
paths:
- path: /
pathType: Prefix
router:
args:
- --hot-reload
- --dev
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 1
memory: 128Mi

prometheus:
enabled: true

Expand Down

0 comments on commit e75327c

Please sign in to comment.