Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
ed2ffe9d
Unverified
Commit
ed2ffe9d
authored
3 years ago
by
paulfantom
Browse files
Options
Downloads
Patches
Plain Diff
*: add "update" target to makefile and use it in automatic updater
Signed-off-by:
paulfantom
<
pawel@krupa.net.pl
>
parent
acd7cdcd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/versions.yaml
+2
-5
2 additions, 5 deletions
.github/workflows/versions.yaml
Makefile
+4
-0
4 additions, 0 deletions
Makefile
with
6 additions
and
5 deletions
.github/workflows/versions.yaml
+
2
−
5
View file @
ed2ffe9d
...
...
@@ -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')
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
4
−
0
View file @
ed2ffe9d
...
...
@@ -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/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment