mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-11-02 09:01:02 +01:00
*: add "update" target to makefile and use it in automatic updater
Signed-off-by: paulfantom <pawel@krupa.net.pl>
This commit is contained in:
parent
acd7cdcde0
commit
ed2ffe9d05
7
.github/workflows/versions.yaml
vendored
7
.github/workflows/versions.yaml
vendored
@ -17,13 +17,10 @@ jobs:
|
||||
# Write to temporary file to make update atomic
|
||||
scripts/generate-versions.sh > /tmp/versions.json
|
||||
mv /tmp/versions.json jsonnet/kube-prometheus/versions.json
|
||||
- name: Install jsonnet bundler
|
||||
run: |
|
||||
go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
|
||||
- name: Update jsonnet dependencies
|
||||
run: |
|
||||
jb update
|
||||
make --always-make generate
|
||||
make update
|
||||
make generate
|
||||
|
||||
# Reset jsonnetfile.lock.json if no dependencies were updated
|
||||
changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json')
|
||||
|
||||
4
Makefile
4
Makefile
@ -38,6 +38,10 @@ vendor: $(JB_BIN) jsonnetfile.json jsonnetfile.lock.json
|
||||
crdschemas: vendor
|
||||
./scripts/generate-schemas.sh
|
||||
|
||||
.PHONY: update
|
||||
update: $(JB_BIN)
|
||||
$(JB_BIN) update
|
||||
|
||||
.PHONY: validate
|
||||
validate: crdschemas manifests $(KUBECONFORM_BIN)
|
||||
$(KUBECONFORM_BIN) -kubernetes-version $(KUBE_VERSION) -schema-location 'default' -schema-location 'crdschemas/{{ .ResourceKind }}.json' -skip CustomResourceDefinition manifests/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user