Skip to content

Commit

Permalink
add update graph for memory datastore
Browse files Browse the repository at this point in the history
there are no migrations or persistance between instances, but it's nicer
UX to be able to install from a channel and version anyway
  • Loading branch information
ecordell committed Feb 15, 2023
1 parent f71d6d4 commit a11c766
Show file tree
Hide file tree
Showing 3 changed files with 269 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
e2e:
needs: "paths-filter"
if: |
needs.paths-filter.outputs.codechange == 'true'
needs.paths-filter.outputs.codechange == 'true' || needs.paths-filter.outputs.graphchange == 'true'
name: "E2E Tests"
runs-on: "ubuntu-latest-8-cores"
steps:
Expand Down
215 changes: 215 additions & 0 deletions proposed-update-graph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -684,4 +684,219 @@ channels:
- id: v1.8.0
migration: add-metadata-and-counters
tag: v1.8.0
- edges:
v1.2.0:
- v1.3.0
- v1.4.0
- v1.5.0
- v1.6.0
- v1.7.1
- v1.8.0
- v1.9.0
- v1.10.0
- v1.11.0
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.3.0:
- v1.4.0
- v1.5.0
- v1.6.0
- v1.7.1
- v1.8.0
- v1.9.0
- v1.10.0
- v1.11.0
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.4.0:
- v1.5.0
- v1.6.0
- v1.7.1
- v1.8.0
- v1.9.0
- v1.10.0
- v1.11.0
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.5.0:
- v1.6.0
- v1.7.1
- v1.8.0
- v1.9.0
- v1.10.0
- v1.11.0
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.6.0:
- v1.7.1
- v1.8.0
- v1.9.0
- v1.10.0
- v1.11.0
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.7.0:
- v1.7.1
- v1.8.0
- v1.9.0
- v1.10.0
- v1.11.0
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.7.1:
- v1.8.0
- v1.9.0
- v1.10.0
- v1.11.0
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.8.0:
- v1.9.0
- v1.10.0
- v1.11.0
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.9.0:
- v1.10.0
- v1.11.0
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.10.0:
- v1.11.0
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.11.0:
- v1.12.0
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.12.0:
- v1.13.0
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.13.0:
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.14.0:
- v1.14.1
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.14.1:
- v1.15.0
- v1.16.0
- v1.16.1
- v1.16.2
v1.15.0:
- v1.16.0
- v1.16.1
- v1.16.2
v1.16.0:
- v1.16.1
- v1.16.2
v1.16.1:
- v1.16.2
metadata:
datastore: memory
default: "true"
name: stable
nodes:
- id: v1.16.2
tag: v1.16.2
- id: v1.16.1
tag: v1.16.1
- id: v1.16.0
tag: v1.16.0
- id: v1.15.0
tag: v1.15.0
- id: v1.14.1
tag: v1.14.1
- id: v1.14.0
tag: v1.14.0
- id: v1.13.0
tag: v1.13.0
- id: v1.12.0
tag: v1.12.0
- id: v1.11.0
tag: v1.11.0
- id: v1.10.0
tag: v1.10.0
- id: v1.9.0
tag: v1.9.0
- id: v1.8.0
tag: v1.8.0
- id: v1.7.1
tag: v1.7.1
- id: v1.7.0
tag: v1.7.0
- id: v1.6.0
tag: v1.6.0
- id: v1.5.0
tag: v1.5.0
- id: v1.4.0
tag: v1.4.0
- id: v1.3.0
tag: v1.3.0
- id: v1.2.0
tag: v1.2.0
imageName: ghcr.io/authzed/spicedb
53 changes: 53 additions & 0 deletions tools/generate-update-graph/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func main() {
crdbChannel(),
mysqlChannel(),
spannerChannel(),
memoryChannel(),
}},
}

Expand Down Expand Up @@ -225,3 +226,55 @@ func spannerChannel() updates.Channel {
},
}
}

func memoryChannel() updates.Channel {
releases := []updates.State{
{ID: "v1.16.2", Tag: "v1.16.2"},
{ID: "v1.16.1", Tag: "v1.16.1"},
{ID: "v1.16.0", Tag: "v1.16.0"},
{ID: "v1.15.0", Tag: "v1.15.0"},
{ID: "v1.14.1", Tag: "v1.14.1"},
{ID: "v1.14.0", Tag: "v1.14.0"},
{ID: "v1.13.0", Tag: "v1.13.0"},
{ID: "v1.12.0", Tag: "v1.12.0"},
{ID: "v1.11.0", Tag: "v1.11.0"},
{ID: "v1.10.0", Tag: "v1.10.0"},
{ID: "v1.9.0", Tag: "v1.9.0"},
{ID: "v1.8.0", Tag: "v1.8.0"},
{ID: "v1.7.1", Tag: "v1.7.1"},
{ID: "v1.7.0", Tag: "v1.7.0"},
{ID: "v1.6.0", Tag: "v1.6.0"},
{ID: "v1.5.0", Tag: "v1.5.0"},
{ID: "v1.4.0", Tag: "v1.4.0"},
{ID: "v1.3.0", Tag: "v1.3.0"},
{ID: "v1.2.0", Tag: "v1.2.0"},
}
return updates.Channel{
Name: "stable",
Metadata: map[string]string{
"datastore": "memory",
"default": "true",
},
Nodes: releases,
Edges: map[string][]string{
"v1.16.1": {"v1.16.2"},
"v1.16.0": {"v1.16.1", "v1.16.2"},
"v1.15.0": {"v1.16.0", "v1.16.1", "v1.16.2"},
"v1.14.1": {"v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.14.0": {"v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.13.0": {"v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.12.0": {"v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.11.0": {"v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.10.0": {"v1.11.0", "v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.9.0": {"v1.10.0", "v1.11.0", "v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.8.0": {"v1.9.0", "v1.10.0", "v1.11.0", "v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.7.1": {"v1.8.0", "v1.9.0", "v1.10.0", "v1.11.0", "v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.7.0": {"v1.7.1", "v1.8.0", "v1.9.0", "v1.10.0", "v1.11.0", "v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.6.0": {"v1.7.1", "v1.8.0", "v1.9.0", "v1.10.0", "v1.11.0", "v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.5.0": {"v1.6.0", "v1.7.1", "v1.8.0", "v1.9.0", "v1.10.0", "v1.11.0", "v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.4.0": {"v1.5.0", "v1.6.0", "v1.7.1", "v1.8.0", "v1.9.0", "v1.10.0", "v1.11.0", "v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.3.0": {"v1.4.0", "v1.5.0", "v1.6.0", "v1.7.1", "v1.8.0", "v1.9.0", "v1.10.0", "v1.11.0", "v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
"v1.2.0": {"v1.3.0", "v1.4.0", "v1.5.0", "v1.6.0", "v1.7.1", "v1.8.0", "v1.9.0", "v1.10.0", "v1.11.0", "v1.12.0", "v1.13.0", "v1.14.1", "v1.15.0", "v1.16.0", "v1.16.1", "v1.16.2"},
},
}
}

0 comments on commit a11c766

Please sign in to comment.