feat(instance): optional brand theming via spec.branding.cssConfigMapRef - #86
Merged
Conversation
Add an optional Branding spec so a deployer can apply a runtime UI brand theme without rebuilding the product image. When spec.branding.cssConfigMapRef is set, the operator (mirroring the spec.objectStorage != nil gating pattern): - mounts the referenced ConfigMap read-only at /etc/paperclip/branding, and - sets PAPERCLIP_BRAND_DIR to that path. The product then serves the directory under /branding and loads /branding/brand.css after its bundled stylesheet, letting the ConfigMap's brand.css override the app's CSS variables. Unset = unchanged default (no volume, no mount, no env), so existing instances are untouched. Regenerated CRD/deepcopy via controller-gen and synced the Helm chart CRD. Adds branding wiring tests; make test green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
stubbi
force-pushed
the
feat/brand-theming
branch
from
June 14, 2026 08:49
a677f7b to
5f1320a
Compare
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.
Adds optional
spec.branding.cssConfigMapRefto the Instance CRD. When set, the operator mounts that ConfigMap read-only at/etc/paperclip/brandingand setsPAPERCLIP_BRAND_DIRon the product container (gated like objectStorage: unset = no volume/mount/env). Pairs with the fork PAPERCLIP_BRAND_DIR hook. Codegen + chart CRD/RBAC synced. Part of go-live Brand Theming (paperclipinc/mono#141).