Skip to content

Commit

Permalink
add stableRevision and nightlyRevision to values, and enable auto-syn…
Browse files Browse the repository at this point in the history
…c for stable release
  • Loading branch information
iamvigneshwars committed Jul 3, 2024
1 parent 0689c7d commit 7385fb0
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rust-service
.devcontainer
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.1
version: 0.2.0
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: {{ .Values.graph.targetRevision }}
targetRevision: HEAD
path: {{ .Values.graph.path }}
helm:
valuesObject:
Expand Down Expand Up @@ -45,7 +45,7 @@ spec:
path: /nightly
- repoURL: {{ .Values.schema.repoURL }}
chart: {{ .Values.schema.chart }}
targetRevision: 0.1.1
targetRevision: "*"
destination:
name: {{ .Values.destination.name }}
server: {{ .Values.destination.server }}
Expand Down
4 changes: 4 additions & 0 deletions charts/apps/templates/stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ spec:
name: {{ .Values.destination.name }}
server: {{ .Values.destination.server }}
namespace: {{ default .Release.Namespace .Values.destination.namespace }}
syncPolicy:
automated:
prune: true
selfHeal: true
2 changes: 1 addition & 1 deletion charts/apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ graph:

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

destination:
Expand Down
17 changes: 17 additions & 0 deletions docs/how-tos/rust_service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Rust Service

## Preface

This guide will explain how to develop a Rust service to serve data to the Graph.
We will cover:

- Setting up the HTTP/GraphQL Server in [Serving GraphQL Requests](#serving-graphql-requests)
- Creating GraphQL Objects and providing field resolvers in [Defining Objects](#defining-objects)
- Exporting the GraphQL schema for use in federation in [Schema Generation](#schema-generation)

## Dependencies

This guide will utilize the following dependencies:

- `rocket` as the HTTP server
- `async-graphql` for GraphQL request handling

0 comments on commit 7385fb0

Please sign in to comment.