forked from grafana/tempo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add make kube-manifests-check (grafana#991)
* Add make kube-manifests-check * Only diff .yaml files: jsonnetfile.lock.json will change all the time * Install Tanka in CI * Regen kube-manifests
- Loading branch information
Koenraad Verheyden
authored
Sep 29, 2021
1 parent
07ff464
commit f20104e
Showing
19 changed files
with
69 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ jobs: | |
run: make tempo-query | ||
|
||
tempo-mixin: | ||
name: Check tempo-mixin | ||
name: Check kube-manifests & tempo-mixin | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
|
@@ -54,13 +54,16 @@ jobs: | |
with: | ||
go-version: 1.16 | ||
|
||
- name: Install jsonnet & jsonnet-bundler | ||
- name: Install jsonnet, jsonnet-bundler & tanka | ||
run: | | ||
brew install jsonnet | ||
brew install jsonnet tanka | ||
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/[email protected] | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check kube-manifests | ||
run: make kube-manifests-check | ||
|
||
- name: Check tempo-mixin | ||
run: make tempo-mixin-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
data: | ||
overrides.yaml: | | ||
overrides: {} | ||
kind: ConfigMap | ||
metadata: | ||
name: tempo-overrides | ||
namespace: tracing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.PHONY: gen check | ||
|
||
gen: | ||
jb update | ||
tk export out/ example --format "{{.kind}}-{{or .metadata.name .metadata.generateName}}" | ||
|
||
cp out/*.yaml ../ | ||
rm -r out/ | ||
|
||
check: gen | ||
git diff --exit-code -- ../*.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
To generate the manifests from this directory, run the following | ||
# kube-manifests | ||
|
||
``` | ||
jb update | ||
Example Kubernetes manifests to deploy Tempo distributed. | ||
|
||
tk export out_dir generator --format "{{.kind}}-{{or .metadata.name .metadata.generateName}}" | ||
``` | ||
### Build | ||
|
||
The manifests will be generated in the out_dir. | ||
To generate the manifests from this directory, run `make gen`. | ||
|
||
This requires [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler) and [Tanka](https://tanka.dev/) to be installed. |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters