Repository navigation
feat(helm): mount a custom catalog profile and validate it against mappings - #142
Open
shimoncohen wants to merge 2 commits into
Open
shimoncohen wants to merge 2 commits into
shimoncohen wants to merge 2 commits into
Conversation
…ppings The catalog profile plugin ships in the image, so a team can't serve an older profile (e.g. DEM v1 mc_dem) on a newer image. profile.name and profile.schemaFile mount profile.py and profile.xsd from existingConfigmap over pycsw/plugins/profiles/<name>/. A profile that reads a mappings['pycsw:X'] key missing from mappings.py crashes pycsw with KeyError. pycsw.profile.validate fails the render instead; the consuming chart calls it where it builds the ConfigMap, the only place both files are readable (a subchart can't read parent files). Unset profile renders byte-identical to before. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
lirantul123
approved these changes
Oct 20, 2026
asafmas-rnd
approved these changes
Oct 20, 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.
The catalog profile plugin is built into the image, so a team can't serve an older profile on a newer image (DEM
/api/dem/v1is pinned topycsw:v4.3.7for its v1mc_demprofile). A profile that doesn't matchmappings.pyonly fails at runtime withKeyError.profile.name/profile.schemaFilemountprofile.pyandprofile.xsdfromexistingConfigmapoverpycsw/plugins/profiles/<name>/.pycsw.profile.validatefails the render when the profile reads apycsw:key missing frommappings.py, or doesn't referenceschemaFile. The consuming chart calls it where it builds the ConfigMap.Tested: DEM v1 profile on
common/pycsw:v7.0.3on dem-dev, 21 CSW requests byte-identical tov4.3.7; render fails on v1/v2 profile-mappings mismatches.Refs: MapColonies/helm-charts#684
🤖 Generated with Claude Code