Skip to content

Commit

Permalink
Setup api secrets and metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Mar 14, 2024
1 parent 2f44915 commit e374a57
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/data-gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: data-gateway
description: A GraphQL router deployment forming the Diamond Data Gateway
type: application

version: 0.1.0
version: 0.2.0

dependencies:
- name: router
Expand Down
15 changes: 15 additions & 0 deletions charts/data-gateway/templates/graph-apikey-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: router-apikey
namespace: data-gateway
spec:
encryptedData:
managedFederationApiKey: AgAFF9OYxROjOaslDdnA+TUs+EWiXbAmAoqj3fZrqqqfFHu64LJIHs8UtF2WDfmh9GpU0kNaPo86xDO8hPPIyIEtlcvkmMIdzgt9AUhN9JsqpLqDXJZau9Oe91Y1R63sOIIZH2c3rFYzUhbmWeM32AYtWuxlLTZvjYI08l3Y5rY6vBcFhgO2mnLuHW0ajKPh/DTz3tEr7my3wQmG9cjrLzqITSWot04rMOjfj9Ky4t6RAxvReZx6u1oBlstHNfjzr2dWTsTyvBQhi1+hx7UlkqDwON1YbPkcXiqsRXpAzTrp7a0HyZbSlxrfsrguygzzCm3algIG1iu8OSc/M0YUEvZA37kc4USMh/LaUOSUgn5RbLtUdRpwMbTAc/hIQJpxW0aGYXKjEgZ0MSYYLWyAfyt/rcWaB0kjDWzJwAYNzsW1OBYA4G525xAUoWXm00CAwXLCdPn9tr1Fdj+1l7jypnbIq0wXcdlUJWcq+ec+ZJIxIQbVP2PY80eVCLuP9dw3llmyxotjlbHhnKipEFfJlifLCZErJMLsn7NBx8rol0dmcl8jczMvS4favxoxhzwXbeAydXtkQDQcygpHGMzYJ7lOWQ6igGLHxNNhYGMtVndC5/xv44to1rrXMp6pZVBbrtoL3TO9i5HZcqehNBNSNDB6103Siw0ZviR1BG6GOBDV7MZ2Lps0MthSEIq8pVGGQ2Z83RgBjZ7zjsovMgRPUc8d3+Kkb01q28GrBwPQvQ4/1IINe2BTgxGEY+jFCihUnwjA9w==
template:
metadata:
creationTimestamp: null
name: router-apikey
namespace: data-gateway

11 changes: 9 additions & 2 deletions charts/data-gateway/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
router:
enabled: true
managedFederation:
graphRef: data-gateway@current
existingSecret: router-apikey
graphRef: data-gateway-n63jcf@current
ingress:
enabled: true
hosts:
Expand All @@ -12,11 +13,17 @@ router:
router:
args:
- --hot-reload
- --dev
configuration:
metrics:

Check failure on line 17 in charts/data-gateway/values.yaml

View workflow job for this annotation

GitHub Actions / lint

17:9 [indentation] wrong indentation: expected 6 but found 8
prometheus:
enabled: true
listen: 0.0.0.0:9090
path: "/metrics"
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 1
memory: 128Mi

Check failure on line 29 in charts/data-gateway/values.yaml

View workflow job for this annotation

GitHub Actions / lint

29:1 [empty-lines] too many blank lines (1 > 0)

0 comments on commit e374a57

Please sign in to comment.