From e75327c0b8b7b95f7f6ed60cc5d34c9862c73bbd Mon Sep 17 00:00:00 2001 From: iamvigneshwars Date: Wed, 13 Mar 2024 13:02:35 +0000 Subject: [PATCH] Add helm charts for apollo router --- .github/workflows/charts.yml | 1 + charts/xchemlab/Chart.lock | 7 ++++-- charts/xchemlab/Chart.yaml | 6 ++++- .../templates/router-apikey-secret.yaml | 8 +++++++ charts/xchemlab/values.yaml | 24 +++++++++++++++++++ 5 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 charts/xchemlab/templates/router-apikey-secret.yaml diff --git a/.github/workflows/charts.yml b/.github/workflows/charts.yml index bf911a9e..b2df9028 100644 --- a/.github/workflows/charts.yml +++ b/.github/workflows/charts.yml @@ -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: > diff --git a/charts/xchemlab/Chart.lock b/charts/xchemlab/Chart.lock index b5dd775f..7566ce56 100644 --- a/charts/xchemlab/Chart.lock +++ b/charts/xchemlab/Chart.lock @@ -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" diff --git a/charts/xchemlab/Chart.yaml b/charts/xchemlab/Chart.yaml index 49ea2d76..c6ea8493 100644 --- a/charts/xchemlab/Chart.yaml +++ b/charts/xchemlab/Chart.yaml @@ -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 @@ -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 diff --git a/charts/xchemlab/templates/router-apikey-secret.yaml b/charts/xchemlab/templates/router-apikey-secret.yaml new file mode 100644 index 00000000..5acadbe6 --- /dev/null +++ b/charts/xchemlab/templates/router-apikey-secret.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: Secret +type: Opaque +metadata: + name: router-apikey + namespace: xchemlab +data: + managedFederationApiKey: c2VydmljZTp4Y2hlbWxhYjo3OEJRazlNTmlTMTREd0dHZkdOOWZ3 diff --git a/charts/xchemlab/values.yaml b/charts/xchemlab/values.yaml index 3a21215f..db51690c 100644 --- a/charts/xchemlab/values.yaml +++ b/charts/xchemlab/values.yaml @@ -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