Skip to content

Commit 8eaf8d7

Browse files
committed
update kubernetes example and lint workflow
1 parent ad092b9 commit 8eaf8d7

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/lint.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ jobs:
1111
name: "Lint"
1212
runs-on: "ubuntu-latest"
1313
steps:
14-
- uses: "actions/checkout@v3"
14+
- uses: "actions/checkout@v4"
1515
- uses: "authzed/actions/yaml-lint@main"
16-
- uses: "instrumenta/kubeval-action@5915e4adba5adccac07cb156b82e54c3fed74921"
17-
with:
18-
files: "kubernetes"
16+
- name: "Set up Kubeconform"
17+
uses: "bmuschko/setup-kubeconform@v1"
18+
- name: "Validate manifests"
19+
run: "kubeconform -summary -verbose ./kubernetes"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Examples in this repository include:
1818

1919
- How to set up SpiceDB with tracing: see [tracing](./tracing)
2020
- How to invoke SpiceDB as a library: see [library](./library)
21+
- How to run SpiceDB in a Kubernetes cluster: see [kubernetes](./kubernetes)
2122
- CI/CD Workflows
2223

2324
Have questions? Join our [Discord].

kubernetes/example.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# - Logging configured at the debug log-level
1212
#
1313
# To apply this configuration execute the following:
14-
# kubectl -n $YOUR_NAMESPACE create secret generic spicedb --from-literal=SPICEDB_GRPC_PRESHARED_KEY=$YOUR_SECRET
15-
# kubectl -n $YOUR_NAMESPACE create -f example.yaml
14+
# kubectl -n tenant create secret generic spicedb --from-literal=SPICEDB_GRPC_PRESHARED_KEY=maria
15+
# kubectl -n tenant create -f example.yaml
1616
---
1717
apiVersion: "v1"
1818
kind: "Service"
@@ -145,7 +145,7 @@ spec:
145145
protocol: "TCP"
146146
readinessProbe:
147147
exec:
148-
command: ["grpc_health_probe", "-v", "-addr=localhost:50051"]
148+
command: [ "grpc_health_probe", "-v", "-addr=localhost:50051" ]
149149
failureThreshold: 5
150150
periodSeconds: 10
151151
successThreshold: 1

0 commit comments

Comments
 (0)