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 15, 2024
1 parent 8de5568 commit b2824f6
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/data-gateway/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ dependencies:
- name: router
repository: oci://ghcr.io/apollographql/helm-charts
version: 1.41.1
digest: sha256:c33267c54daddb2c5ce7934886e0c734a1c2a04eb1c4360e8be0aacc191120c6
generated: "2024-03-14T15:16:23.516231741Z"
digest: sha256:05955c12f807a3dea366a4d9422c0a769e9c0ea8e35135c866f5a68335b62950
generated: "2024-03-15T09:58:08.939820307Z"
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

25 changes: 22 additions & 3 deletions charts/data-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ opentelemetry-collector:
router:
enabled: true
managedFederation:
graphRef: data-gateway@current
existingSecret: router-apikey
graphRef: data-gateway-n63jcf@current
ingress:
enabled: true
hosts:
Expand All @@ -218,12 +219,30 @@ router:
pathType: Prefix
router:
args:
- --hot-reload
- --dev
- --hot-reload
- --dev
configuration:
telemetry:
instrumentation:
spans:
mode: spec_compliant
exporters:
metrics:
otlp:
enabled: true
endpoint: '{{ .Release.Name }}-opentelemetry-collector:4317'
protocol: grpc
tracing:
otlp:
enabled: true
endpoint: '{{ .Release.Name }}-opentelemetry-collector:4317'
protocol: grpc

resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 1
memory: 128Mi

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

View workflow job for this annotation

GitHub Actions / lint

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

0 comments on commit b2824f6

Please sign in to comment.