-
Notifications
You must be signed in to change notification settings - Fork 91
mongodb: vendor chart via git subtree from bitnami/charts #2420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bert-e
merged 17 commits into
development/2.15
from
improvement/ZENKO-5281/vendor-bitnami-charts-from-git
May 28, 2026
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
668d4ac
mongodb: clear vendored chart tree ahead of subtree migration
delthas dcc2412
Squashed 'solution-base/mongodb/charts/mongodb-sharded/' content from…
delthas f94b3f6
Merge commit 'dcc241281d25dca30ec0bb48d5dc7efe8c90f2a3' as 'solution-…
delthas e5cda7c
mongodb: resolve `common` library chart from OCI
delthas 567c0cd
mongodb: add config server service template
delthas 9738114
mongodb: update default Helm values for Zenko
delthas 25cd071
mongodb: configure exporter extra args and collectors
delthas 23e053b
mongodb: add configServer.serviceName helper
delthas 3fe46dc
mongodb: add PV selector to config-server statefulset
delthas 736ea4b
mongodb: fix shard-data podmonitor template
delthas 21b1b2e
mongodb: override mongos entrypoint via configmap
delthas cc3604a
mongodb: populate replicaset entrypoint configmap
delthas f7e1d25
mongodb: adjust statefulset volume permissions
delthas bfd904c
mongodb: redirect mongodb logs to stdout
delthas 8414833
mongodb: drop --collect-all from exporter command
delthas c09177b
mongodb: remove patches/ directory
delthas fdace38
mongodb: switch Makefile + docs to git-subtree vendoring
delthas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,23 +1,52 @@ | ||
| ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
| CHART_DIR:="${ROOT_DIR}/charts" | ||
| BITNAMI_REMOTE := bitnami-charts | ||
| BITNAMI_REPO := https://github.com/bitnami/charts.git | ||
|
|
||
| CHART_REPO:="https://charts.bitnami.com/bitnami" | ||
| CHART_MONGO_SHARDED_VERSION:="9.4.4" | ||
| CHART := mongodb-sharded | ||
| CHART_VERSION := 9.4.4 | ||
| CHART_REF := $(CHART)/$(CHART_VERSION) | ||
|
|
||
| PATCH_DIR:="${ROOT_DIR}/patches" | ||
| PATCH_FILES:=$(shell ls -d ${PATCH_DIR}/*) | ||
| HELM=helm | ||
| # Repo-relative path of the vendored chart (needed by `git subtree`). | ||
| REPO_CHART_PREFIX := solution-base/mongodb/charts/$(CHART) | ||
| # Path relative to this Makefile's directory (where `helm` runs). | ||
| LOCAL_CHART_PREFIX := charts/$(CHART) | ||
|
|
||
| .PHONY: fetch patch | ||
| # Stable scratch branch name (no version) so `git subtree split` re-creates it | ||
| # in place each run; the merge base is resolved from the `git-subtree-split` | ||
| # trailer in history, not from this branch's identity. | ||
| VENDOR_BRANCH := vendor/charts/$(CHART) | ||
|
|
||
| fetch-mongodb-sharded: | ||
| @rm -rf ${CHART_DIR} | ||
| @${HELM} fetch mongodb-sharded \ | ||
| --repo ${CHART_REPO} \ | ||
| --version ${CHART_MONGO_SHARDED_VERSION} \ | ||
| --untar \ | ||
| --untardir ${CHART_DIR} | ||
| HELM := helm | ||
|
|
||
| patch: | ||
| @git apply --check ${PATCH_FILES} | ||
| @git apply ${PATCH_FILES} | ||
| .PHONY: create-remote fetch-remote update-vendor-branch vendor-sync deps | ||
|
|
||
| create-remote: | ||
| @git remote get-url $(BITNAMI_REMOTE) >/dev/null 2>&1 || \ | ||
| git remote add $(BITNAMI_REMOTE) $(BITNAMI_REPO) | ||
|
|
||
| # Fetch full main + the target chart tag so `git subtree split` can synthesize | ||
| # the chart's history. `--no-tags` avoids importing bitnami/charts' ~1000 tags | ||
| # (one per chart-version bump across every chart) into the Zenko repo. | ||
| fetch-remote: create-remote | ||
| git fetch --no-tags $(BITNAMI_REMOTE) main | ||
| git fetch --no-tags $(BITNAMI_REMOTE) refs/tags/$(CHART_REF):refs/tags/$(CHART_REF) | ||
|
|
||
| update-vendor-branch: fetch-remote | ||
| -git branch -D $(VENDOR_BRANCH) | ||
| git subtree split --prefix=bitnami/$(CHART) $(CHART_REF) -b $(VENDOR_BRANCH) | ||
|
|
||
| # Maintainer-only: bump CHART_VERSION above, then `make vendor-sync` to merge | ||
| # upstream into our prefix. Resolves merge conflicts against our local commits | ||
| # the same way any git merge does. | ||
| vendor-sync: update-vendor-branch | ||
| git subtree merge --prefix=$(REPO_CHART_PREFIX) $(VENDOR_BRANCH) --squash | ||
| @$(MAKE) deps | ||
|
|
||
| # Resolve and extract the `bitnami/common` library chart so it appears as a | ||
| # subdirectory (required by `solution-base/build.sh`'s `helm template`). | ||
| deps: | ||
| @$(HELM) dependency build $(LOCAL_CHART_PREFIX) | ||
| @cd $(LOCAL_CHART_PREFIX)/charts && \ | ||
| for tgz in *.tgz; do \ | ||
| [ -f "$$tgz" ] || continue; \ | ||
| tar xzf "$$tgz" && rm "$$tgz"; \ | ||
| done | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.