Repository navigation
[#1880, #1881] config-server chart: local/native repo fixes (develop) - #1883
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Address CodeRabbit review on the release-1.3.x cherry-pick: mount the volume and create the PVC when localRepo is enabled or a composite repo of type native is configured (config-server.needsVolume). (cherry picked from commit 86a25d7, copy_cm_func.sh changes dropped because develop removed that file in e6940df) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: bhumi46 <thisisbn46@gmail.com>
… settings Lowercase hyphenated names such as spring_cloud_config_server_native_search-locations are not bound by Spring Boot, so native search-locations fell back to its default and files on the mounted config repo volume were never served. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 4d5eb07) Signed-off-by: bhumi46 <thisisbn46@gmail.com>
Native composite entries only received git-style settings (URI, CLONE_ON_START, FORCE_PULL, REFRESH_RATE). Spring's native repository reads search-locations, so files on the mounted config repo volume were never served. Map uri to SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_<n>_SEARCHLOCATIONS for type native. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit b1bae98) Signed-off-by: bhumi46 <thisisbn46@gmail.com>
bhumi46
force-pushed
the
issue-1828-develop
branch
from
October 22, 2026 12:01
2f23f86 to
c067f64
Compare
ckm007
approved these changes
Oct 23, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Forward-port to
developof the config-server chart fixes made on therelease-1.3.xPR #1878, found while testing on dev1.Closes #1880
Closes #1881
Issues fixed
Native composite repos lost their volume (CodeRabbit review on #1878)
After #1828, the PVC and volume mount were created only when
localRepo.enabled=true. A composite repo oftype: native(documented in the chart README) then had no/var/lib/config_repo.Fix: new helper
config-server.needsVolume, true whenlocalRepo.enabledor anativecomposite repo is configured. The PVC, volume and volumeMount are gated on it.#1880: Local repo search-locations not applied
The local-repo settings were passed as lowercase, hyphenated env names (e.g.
spring_cloud_config_server_native_search-locations). Spring Boot does not bind that form, sonative.search-locationsstayed at its default and files on the mounted volume were never served.Fix: use the canonical names (
SPRING_CLOUD_CONFIG_SERVER_NATIVE_SEARCHLOCATIONS,..._ACCEPTEMPTY,..._GIT_FORCEPULL,..._GIT_REFRESHRATE,..._GIT_CLONEONSTART).#1881: Composite repo of
type: nativeignores the mounted volumeEvery composite entry got git-style settings (
COMPOSITE_<n>_URI,CLONE_ON_START,FORCE_PULL,REFRESH_RATE) regardless of type. Spring's native repository readssearch-locations, noturi.Fix: for
type: native, emitSPRING_CLOUD_CONFIG_SERVER_COMPOSITE_<n>_SEARCHLOCATIONSfromuriand skip the git-only settings.Changes
helm/config-server/templates/_helpers.tpl: addconfig-server.needsVolumehelm/config-server/templates/config-pvc.yaml,deployment.yaml: gate volume/PVC onneedsVolume; canonical local-repo env names; native compositeSEARCHLOCATIONSThe CodeRabbit
copy_cm_func.shchanges from #1878 are not included:developremoved that file in e6940df (copy_cm.shdownloads it from mosip-infra).Testing
The chart templates are identical to the head of #1878. That chart was tested on dev1 through
install.sh, one namespace per case:composite, no PVCBoundonnfs-csi, profilenative, local file served (#1880)composite,native, git + local servedtype: nativecomposite entry, local repo offsearchFolders)1.3.1-developRelated: #1828, #1878
🤖 Generated with Claude Code