Repository navigation
Conversation
Add docservice/converter/adminpanel/example.revisionHistoryLimit (default null = Kubernetes default). Rendered only when set; 0 is supported via a nil check. Bump chart version to 6.1.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: mheidari <meisam.heidari@strato.de>
Add connections.amqpUserExistingSecret and connections.amqpUserSecretKeyName (default rabbitmq-user), mirroring the existing password mechanism. When set, AMQP_USER is omitted from the documentserver ConfigMap and injected via secretKeyRef into docservice, converter, adminpanel and the helm test pod. Output is unchanged when unset. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: mheidari <meisam.heidari@strato.de>
…Argo CD (#16) Add checksum/* annotations to the docservice, converter, adminpanel and example pod templates (rendered ConfigMaps/credential Secrets by template hash, ds.secrets.lookup Secrets by input value hash). A key set in podAnnotations takes priority over the chart's checksum key. Make DS_VERSION_HASH deterministic (image tag, customFonts, customDictionaries, customPlugins, new customResources.versionSalt) instead of time-based. Change the podAnnotations defaults from the random rollme to {} (behavior change, see CHANGELOG) and document the Argo CD / GitOps setup. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: mheidari <meisam.heidari@strato.de>
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
Makes the chart work correctly under Argo CD / GitOps and adds two small, backward-compatible configuration options.
Closes #16, closes #17, closes #18
f093e76revisionHistoryLimitfor docservice, converter, adminpanel, example4734f16ae282efChart version:
6.0.0→6.1.0(appVersion unchanged).Problem
#16: Argo CD renders the chart with
helm templateon every refresh and compares the result with the live state. Two things made that impossible:podAnnotationsdefaulted torollme: "{{ randAlphaNum 5 | quote }}", so every render produced a different Pod template. The result was perpetual OutOfSync and, with auto-sync, rollouts that weren't caused by any change.DS_VERSION_HASH(rendered when a*.buildflag is on) was derived from the current time, so thedocumentserverConfigMap changed every minute.At the same time, a real config change did not restart the Pods: they consume the ConfigMap via
envFrom, and the Pod template only references it by name.#17: No workload set
revisionHistoryLimit, so operators couldn't tune it without a patch layer.#18:
AMQP_PWDalready came from a Secret, butAMQP_USERwas plain text in the shared ConfigMap. That forced operators to duplicate it in values.Changes
#16
checksum/*annotations, following Helm's Automatically Roll Deployments pattern:checksum/configandchecksum/welcome-pagehash the rendered ConfigMaps.checksum/credentialshashes the rendered password Secrets.checksum/jwt,checksum/secure-linkandchecksum/info-authhash the input values, not the rendered Secret, becauseds.secrets.lookupfalls back to a random value underhelm template.*.podAnnotationstakes priority over the chart's checksum key, and no duplicate is rendered.podAnnotationsdefaults are now{}.DS_VERSION_HASHis computed from the image tag, thecustomFonts/customDictionaries/customPluginssettings and the newcustomResources.versionSalt.#17
docservice|converter|adminpanel|example.revisionHistoryLimit, defaultnull(field omitted, so the Kubernetes default of 10 applies).0is allowed.#18
connections.amqpUserExistingSecret(default"") andconnections.amqpUserSecretKeyName(defaultrabbitmq-user).AMQP_USERis removed from the ConfigMap and injected viasecretKeyRefinto docservice, converter, adminpanel and the Helm test Pod.AMQP_USERviaextraEnvVarswhen this option is used (duplicate env names; server-side apply in Argo CD can reject duplicate list keys).With the
rollmedefault removed, Pods are no longer restarted on everyhelm upgrade. They restart only when the hashed ConfigMaps/Secrets or the image change.Changes to things the chart doesn't render (
*ExistingSecret, license, WOPI keys,extraConf,extraThemes, the custom resources PVC) no longer trigger a restart as a side effect. Use Stakater Reloader, versioned names, orcustomResources.versionSalt(see README section 13).The previous behavior can be restored per workload:
#17 and #18 don't change anything by default.
Action required for Argo CD users
jwt.existingSecret,proxy.secureLinkExistingSecretandproxy.infoAllowedExistingSecret. Without them, these chart-created Secrets get a random value on every render (nolookupunderhelm template). That causes drift and rotates the JWT secret, which breaks integrations. This is pre-existing behavior that the PR doesn't change; it is now documented.customResources.versionSaltin Git.Validation
helm template/helm lint:helm lintpasses.customFonts.build=true, and adminpanel+example enabled: the only differences from the 6.0.0 baseline are the removedrollme, the addedchecksum/*and the newDS_VERSION_HASHinput.*.build=true. The only exception is the documented random fallback whenjwt/secure-link values are not set.connections.dbHost,jwt.secret,proxy.secureLinkSecret,proxy.infoAllowedPassword, DB/Redis passwords andversionSalteach change only the expected checksum on the expected workloads.revisionHistoryLimitconfigurable for chart workloads #17: absent by default;0and2render only on the targeted workload.AMQP_USERand there are 4secretKeyRefconsumers.Argo CD (test cluster):
connections.dbHostchange in Git causes exactly one rollout of docservice and converter.customResources.versionSaltbump: the custom-resources Job runs, there is one rollout and a newDS_VERSION_HASH.Notes for reviewers
values.yaml(connections), README (parameter table),documentserver.yaml, theenv:blocks of docservice/converter/adminpanel,test-ds-pod.yaml,test_ds.pyand the end of_helpers.tpl. If feat(redis): support configurable editor storage topologies #11 merges first, its new chart-rendered Redis/Sentinel Secrets or ConfigMaps must be added to thechecksum/credentialsinputs.*ExistingSecretavoids it entirely.Follow-ups (separate PRs)
DB_USER,REDIS_SERVER_USER(after feat(redis): support configurable editor storage topologies #11) andINFO_ALLOWED_USERfrom existing Secrets.