Skip to content

Commit

Permalink
move schema app to stable and nightly sources, restructure values
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Jul 3, 2024
1 parent 3455875 commit f358bb4
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 107 deletions.
2 changes: 1 addition & 1 deletion charts/apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: graph
description: ArgoCD Apps used to deploy the Graph
type: application
version: 0.1.0
version: 0.1.1
6 changes: 3 additions & 3 deletions charts/apps/templates/monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ metadata:
spec:
project: {{ default .Release.Namespace .Values.project }}
source:
repoURL: {{ .Values.source.repoURL }}
targetRevision: {{ .Values.source.targetRevision }}
path: {{ .Values.source.monitoring.path }}
repoURL: {{ .Values.monitoring.repoURL }}
targetRevision: {{ .Values.monitoring.targetRevision }}
path: {{ .Values.monitoring.path }}
destination:
name: {{ .Values.destination.name }}
server: {{ .Values.destination.server }}
Expand Down
69 changes: 36 additions & 33 deletions charts/apps/templates/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,45 @@ metadata:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ default .Release.Namespace .Values.project }}
source:
repoURL: {{ .Values.source.repoURL }}
targetRevision: {{ .Values.source.targetRevision }}
path: {{ .Values.source.graph.path }}
helm:
valuesObject:
router:
sources:
- repoURL: {{ .Values.graph.repoURL }}
targetRevision: {{ .Values.graph.targetRevision }}
path: {{ .Values.graph.path }}
helm:
valuesObject:
router:
configuration:
sandbox:
router:
configuration:
sandbox:
enabled: false
supergraph:
path: /nightly
telemetry:
exporters:
metrics:
common:
resource:
"service.name": "router-nightly"
otlp:
enabled: true
endpoint: 'graph-monitoring-opentelemetry-collector:4317'
protocol: grpc
tracing:
common:
resource:
"service.name": "router-nightly"
otlp:
enabled: true
endpoint: 'graph-monitoring-opentelemetry-collector:4317'
protocol: grpc
propagation:
trace_context: true
oauth2-proxy:
ingress:
path: /nightly
path: /nightly
telemetry:
exporters:
metrics:
common:
resource:
"service.name": "router-nightly"
otlp:
enabled: true
endpoint: 'graph-monitoring-opentelemetry-collector:4317'
protocol: grpc
tracing:
common:
resource:
"service.name": "router-nightly"
otlp:
enabled: true
endpoint: 'graph-monitoring-opentelemetry-collector:4317'
protocol: grpc
propagation:
trace_context: true
oauth2-proxy:
ingress:
path: /nightly
- repoURL: {{ .Values.schema.repoURL }}
chart: {{ .Values.schema.chart }}
targetRevision: 0.1.1
destination:
name: {{ .Values.destination.name }}
server: {{ .Values.destination.server }}
Expand Down
19 changes: 0 additions & 19 deletions charts/apps/templates/schema-nightly.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions charts/apps/templates/schema-stable.yaml

This file was deleted.

59 changes: 31 additions & 28 deletions charts/apps/templates/stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,38 @@ metadata:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ default .Release.Namespace .Values.project }}
source:
repoURL: {{ .Values.source.repoURL }}
targetRevision: {{ .Values.source.targetRevision }}
path: {{ .Values.source.graph.path }}
helm:
valuesObject:
router:
sources:
- repoURL: {{ .Values.graph.repoURL }}
targetRevision: {{ .Values.graph.targetRevision }}
path: {{ .Values.graph.path }}
helm:
valuesObject:
router:
configuration:
telemetry:
exporters:
metrics:
common:
resource:
"service.name": "router-stable"
otlp:
enabled: true
endpoint: 'graph-monitoring-opentelemetry-collector:4317'
protocol: grpc
tracing:
common:
resource:
"service.name": "router-stable"
otlp:
enabled: true
endpoint: 'graph-monitoring-opentelemetry-collector:4317'
protocol: grpc
propagation:
trace_context: true
router:
configuration:
telemetry:
exporters:
metrics:
common:
resource:
"service.name": "router-stable"
otlp:
enabled: true
endpoint: 'graph-monitoring-opentelemetry-collector:4317'
protocol: grpc
tracing:
common:
resource:
"service.name": "router-stable"
otlp:
enabled: true
endpoint: 'graph-monitoring-opentelemetry-collector:4317'
protocol: grpc
propagation:
trace_context: true
- repoURL: {{ .Values.schema.repoURL }}
chart: {{ .Values.schema.chart }}
targetRevision: {{ .Values.schema.targetRevision }}
destination:
name: {{ .Values.destination.name }}
server: {{ .Values.destination.server }}
Expand Down
15 changes: 8 additions & 7 deletions charts/apps/values.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
project: ""

source:
monitoring:
repoURL: https://github.com/DiamondLightSource/graph-federation
targetRevision: HEAD
monitoring:
path: charts/monitoring
graph:
path: charts/graph
path: charts/monitoring

graph:
repoURL: https://github.com/DiamondLightSource/graph-federation
targetRevision: HEAD
path: charts/graph

schema:
repoURL: ghcr.io/diamondlightsource/graph-federation-supergraph
targetRevision: 0.1.1
chart: supergraph
stableVersion: 0.1.1
nightlyVersion: 0.1.1

destination:
name: ""
Expand Down
2 changes: 1 addition & 1 deletion charts/graph/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: graph
description: The Diamond data Graph
type: application
version: 0.9.0
version: 0.9.1
dependencies:
- name: router
repository: oci://ghcr.io/apollographql/helm-charts
Expand Down

0 comments on commit f358bb4

Please sign in to comment.