Skip to content

Commit

Permalink
[kube-prometheus-stack] Move CRDs into sub-charts
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke committed Jul 3, 2023
1 parent 990fcbc commit 0d0cc73
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions charts/kube-prometheus-stack/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Python development for hack
venv
pyvenv.cfg
!**
charts/*
!charts/kube-prometheus-stack-crds/
!charts/kube-prometheus-stack-crds/**
Chart.lock
2 changes: 2 additions & 0 deletions charts/kube-prometheus-stack/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ ci/
kube-prometheus-*.tgz

unittests/
CONTRIBUTING.md
README.md
4 changes: 3 additions & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 47.2.0
version: 48.0.0
appVersion: v0.66.0
kubeVersion: ">=1.16.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand All @@ -39,6 +39,8 @@ annotations:
url: https://github.com/prometheus-operator/kube-prometheus
dependencies:
- name: kube-prometheus-stack-crds
version: "0.0.0"
- name: kube-state-metrics
version: "5.8.*"
repository: https://prometheus-community.github.io/helm-charts
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
apiVersion: v2
name: kube-prometheus-stack-crds
version: 0.0.0
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/hack/update_crds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ for line in "${FILES[@]}"; do

echo -e "Downloading Prometheus Operator CRD with Version ${VERSION}:\n${URL}\n"

echo "# ${URL}" > ../crds/"${DESTINATION}"
echo "# ${URL}" > ../charts/kube-prometheus-stack-crds/crds/"${DESTINATION}"

if ! curl --silent --retry-all-errors --fail --location "${URL}" >> ../crds/"${DESTINATION}"; then
echo -e "Failed to download ${URL}!"
Expand Down

0 comments on commit 0d0cc73

Please sign in to comment.