Skip to content

Commit

Permalink
Allow independent configuration of stable & nightly revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Sep 17, 2024
1 parent 550f93c commit 9989135
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/apps/templates/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
project: {{ default .Release.Namespace .Values.project }}
sources:
- repoURL: {{ .Values.graph.repoURL }}
targetRevision: HEAD
targetRevision: {{ .Values.graph.nightlyRevision }}
path: {{ .Values.graph.path }}
helm:
valuesObject:
Expand Down Expand Up @@ -47,7 +47,7 @@ spec:
path: /nightly
- repoURL: {{ .Values.schema.repoURL }}
chart: {{ .Values.schema.chart }}
targetRevision: "*"
targetRevision: {{ .Values.schema.nightlyRevision | quote }}
destination:
name: {{ .Values.destination.name }}
server: {{ .Values.destination.server }}
Expand Down
4 changes: 2 additions & 2 deletions charts/apps/templates/stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
project: {{ default .Release.Namespace .Values.project }}
sources:
- repoURL: {{ .Values.graph.repoURL }}
targetRevision: {{ .Values.graph.targetRevision }}
targetRevision: {{ .Values.graph.stableRevision }}
path: {{ .Values.graph.path }}
helm:
valuesObject:
Expand Down Expand Up @@ -38,7 +38,7 @@ spec:
trace_context: true
- repoURL: {{ .Values.schema.repoURL }}
chart: {{ .Values.schema.chart }}
targetRevision: {{ .Values.schema.targetRevision }}
targetRevision: {{ .Values.schema.stableRevision | quote }}
destination:
name: {{ .Values.destination.name }}
server: {{ .Values.destination.server }}
Expand Down
6 changes: 4 additions & 2 deletions charts/apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ monitoring:

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

schema:
repoURL: ghcr.io/diamondlightsource/graph-federation-supergraph
targetRevision: 0.1.2
nightlyRevision: "*"
stableRevision: 0.1.2
chart: supergraph

destination:
Expand Down

0 comments on commit 9989135

Please sign in to comment.