Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .conform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ policies:
- deps
- e2e
- export
- gmpctl
- main
- operator
- prometheus
Expand Down
12 changes: 1 addition & 11 deletions ops/gmpctl/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -442,17 +442,7 @@ release-lib::manifests_regen() {
return 1
fi

# TODO(bwplotka): Manage deps better. It's getting confusing what bins we should use (worktree bingo? script bingo?).
go install helm.sh/helm/v3/cmd/helm@latest
go install github.com/google/addlicense@latest
go install github.com/mikefarah/yq/v4@latest

# Hack: Do the bingo variable swap. This allows injecting our own.
# This is faster than running requiring bingo and running bingo get.
cp "${dir}/.bingo/variables.env" "${dir}/.bingo/variables.env.bak"
echo "#!/bin/bash" >"${dir}/.bingo/variables.env" # Clean the file.
YQ="$(which yq)" HELM="$(which helm)" ADDLICENSE="$(which addlicense)" bash "${dir}/hack/presubmit.sh" manifests
cp "${dir}/.bingo/variables.env.bak" "${dir}/.bingo/variables.env"
bash "${dir}/hack/presubmit.sh" manifests

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this won't work across all versions - it only makes it work for 0.19/main.

This could make it work for now: https://github.com/GoogleCloudPlatform/prometheus-engine/pull/1938/changes#r3441808186


echo "✅ Manifests regenerated"
return 0
Expand Down
Loading