Skip to content

docs(lerian-notification): add v1.0 upgrade guide#1382

Merged
guimoreirar merged 2 commits into
mainfrom
hotfix/lerian-notification-upgrade-doc-1-0
May 29, 2026
Merged

docs(lerian-notification): add v1.0 upgrade guide#1382
guimoreirar merged 2 commits into
mainfrom
hotfix/lerian-notification-upgrade-doc-1-0

Conversation

@gandalf-at-lerian
Copy link
Copy Markdown
Contributor

Summary

  • Adds the retroactive major upgrade guide for from to .
  • Patch-only upgrade docs remain ignored, per task scope.

Requested by: @guimoreirar

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 16, 2026

Review Change Stack

Walkthrough

This PR adds upgrade documentation for the lerian-notification Helm chart, guiding users from version 0.1.0 to 1.0.0-beta.3. The guide includes configuration changes, affected templates, breaking changes, and step-by-step migration instructions with example Helm commands.

Changes

Helm Chart Upgrade Documentation

Layer / File(s) Summary
Topics / Table of contents
charts/lerian-notification/docs/UPGRADE-1.0.md
Adds the document TOC linking overview, features, configuration changes, migration steps, preview, and upgrade commands.
Upgrade overview and feature changes
charts/lerian-notification/docs/UPGRADE-1.0.md
Describes breaking and behavioral changes: migrations Job invokes /migrate and requires secrets.DATABASE_URL when enabled; PodSecurityContext defaults updated; deterministic ConfigMap/Secret key ordering; HPA template now fail-fast when target metrics missing; PDB honors api.pdb.maxUnavailable: 0; corrected Redis retry-backoff min/max defaults.
Configuration Changes summary
charts/lerian-notification/docs/UPGRADE-1.0.md
Summarizes added/changed/removed values.yaml settings and lists chart files modified across the upgrade range.
Migration steps and verification
charts/lerian-notification/docs/UPGRADE-1.0.md
Step-by-step instructions: provide/build DATABASE_URL, check Redis overrides, audit HPA settings, confirm PDB behavior, preview rendered diffs, verify post-upgrade hook Job and application readiness, and troubleshooting notes.
Preview changes before upgrading
charts/lerian-notification/docs/UPGRADE-1.0.md
Example helm diff upgrade command and note about requiring the helm-diff plugin.
Command to upgrade
charts/lerian-notification/docs/UPGRADE-1.0.md
Example helm upgrade invocation for the target chart version and namespace.

Comment @coderabbitai help to get the list of available commands and usage tips.

@gandalf-at-lerian gandalf-at-lerian marked this pull request as ready for review May 16, 2026 15:30
@gandalf-at-lerian gandalf-at-lerian requested a review from a team as a code owner May 16, 2026 15:30
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@charts/lerian-notification/docs/UPGRADE-1.0.md`:
- Around line 39-41: The "Changed operational values" section contradicts the
values list because secrets.DATABASE_URL is newly added; update the upgrade
notes so they are consistent by either removing secrets.DATABASE_URL from the
earlier "new values" list or by updating the "Changed operational values"
paragraph to mention that secrets.DATABASE_URL was added and requires operator
attention (e.g., provide guidance to set the new secret); locate references to
"secrets.DATABASE_URL" and the "Changed operational values" heading and make the
text consistent.
- Line 3: The single-line Topics list in UPGRADE-1.0.md is concatenating
multiple links into one bullet; split that long line into separate list items so
each link gets its own bullet (e.g., replace the combined string
"**[Overview](`#overview`)**- **[Version changes](`#version-changes`)**..." with
separate lines like "- **[Overview](`#overview`)**", "- **[Version
changes](`#version-changes`)**", etc.) to restore proper markdown list formatting
and readability.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 9982c7b7-f5d8-447c-84e1-6e63b21ed294

📥 Commits

Reviewing files that changed from the base of the PR and between 3766751 and c01607c.

📒 Files selected for processing (1)
  • charts/lerian-notification/docs/UPGRADE-1.0.md

Comment thread charts/lerian-notification/docs/UPGRADE-1.0.md Outdated
Comment thread charts/lerian-notification/docs/UPGRADE-1.0.md Outdated
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@charts/lerian-notification/docs/UPGRADE-1.0.md`:
- Line 133: Update the Helm preview and upgrade commands in UPGRADE-1.0.md to
include a values file reference or call out that users must supply
configuration; specifically modify the shown helm diff/upgrade command examples
(the lines containing "helm diff upgrade lerian-notification ..." and the
corresponding upgrade command at the later occurrence) to either append "-f
values.yaml" (or "-f <path/to/values.yaml>") or add a preceding note: "Note:
Replace values.yaml with your values file path, or use --set flags to override
individual values (you must set secrets.DATABASE_URL)". Ensure the change is
made for both occurrences referenced in the comment.
- Line 43: The DATABASE_URL example currently uses an insecure query parameter
("sslmode=disable"); update the example value (the DATABASE_URL secret string)
to use a secure SSL mode such as "sslmode=require" or "sslmode=verify-full", or,
if keeping "sslmode=disable" for local/dev only, add an explicit inline warning
comment alongside the DATABASE_URL example stating it is for local development
only and must not be used in production.
- Line 21: The document title in UPGRADE-1.0.md currently reads "v1.x" but the
body targets "1.0.0-beta.3"; update the title string "v1.x" to "v1.0.0-beta.3"
so it matches the overview line and all version references (search for the title
header and replace it), ensuring consistency with the documented destination
version throughout the file; alternatively, if the intended target is a stable
release, change all occurrences of "1.0.0-beta.3" in the document (overview,
version table, and upgrade commands) to "1.0.0" instead—pick one approach and
apply it consistently.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 0a6d096b-8fe3-4b28-b425-7e806e4fe7ad

📥 Commits

Reviewing files that changed from the base of the PR and between c01607c and 219d59e.

📒 Files selected for processing (1)
  • charts/lerian-notification/docs/UPGRADE-1.0.md


## Overview

This guide covers the `lerian-notification` chart upgrade from `0.1.0` to `1.0.0-beta.3`. The application image (`appVersion: 0.1.0`) is unchanged, but the chart is now production-shaped: the migrations Job is rewritten for distroless, the security context defaults align with the Kubernetes Pod Security Standards restricted profile, and several rendering bugs (HPA, PDB, Redis defaults) are fixed.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check if stable 1.0.0 is published in the OCI registry
helm show chart oci://registry-1.docker.io/lerianstudio/lerian-notification-helm --version 1.0.0 2>&1 || echo "Stable 1.0.0 not found"
helm show chart oci://registry-1.docker.io/lerianstudio/lerian-notification-helm --version 1.0.0-beta.3 2>&1 || echo "Beta 1.0.0-beta.3 not found"

Repository: LerianStudio/helm

Length of output: 198


🏁 Script executed:

#!/bin/bash
set -euo pipefail
FILE="charts/lerian-notification/docs/UPGRADE-1.0.md"
if [ ! -f "$FILE" ]; then echo "Missing $FILE"; exit 1; fi
nl -ba "$FILE" | sed -n '1,220p'

Repository: LerianStudio/helm

Length of output: 104


🌐 Web query:

lerianstudio l erian-notification-helm 1.0.0 chart version

💡 Result:

Chart version for lerianstudio/lerian-notification-helm 1.0.0: 1.0.0. Lerian’s Helm chart version compatibility documentation shows that Helm chart version 1.0.0 corresponds to appVersion 1.0.0 (i.e., chart version and app version are the same for 1.0.0) [1].

Citations:


🌐 Web query:

oci://registry-1.docker.io/lerianstudio/lerian-notification-helm versions 1.0.0

💡 Result:

There is no publicly available evidence of a Helm chart named oci://registry-1.docker.io/lerianstudio/lerian-notification-helm [1][2][3]. While Lerian Studio maintains a repository of OCI-based Helm charts for their platform—including components like Midaz, plugins, and infrastructure tools like tracer-helm and reporter-helm [1][2][3][4][5]—the specific chart path provided does not appear in their official documentation or public registries [2][3][5]. If you are looking for a notification-related component within the Lerian ecosystem, it is recommended to check their official documentation index at https://docs.lerian.studio/en/platform/helm/helm-overview or consult the version compatibility matrix provided in their platform documentation [2][3][4].

Citations:


🌐 Web query:

lerian-notification-helm 1.0.0-beta.3 release

💡 Result:

I could not find any authoritative release information for “lerian-notification-helm” version “1.0.0-beta.3”. The closest matches in search results are: 1) A GitHub release tag “v1.0.0-beta.3” under the unrelated repository “LerianStudio/lib-observability” (published 2026-05-13) [1]. 2) Lerian’s Helm chart docs and repo overview pages, which describe Lerian’s Helm chart distribution (OCI registry) and versioning scheme, but do not mention a chart named “lerian-notification-helm” or a “1.0.0-beta.3” release for it [2][3]. 3) A Lerian Helm charts repository readme that shows chart version mappings for various products/plugins, but again no “lerian-notification-helm” chart name or the specific beta release tag appears in the surfaced material [4]. If you can share the exact chart repository/OCI path (e.g., something like oci://registry-1.docker.io/lerianstudio/) or a link to the release page you mean, I can precisely pull the “1.0.0-beta.3” release notes/artifacts and summarize them.

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail
FILE="charts/lerian-notification/docs/UPGRADE-1.0.md"
test -f "$FILE" || { echo "Missing $FILE"; exit 1; }

echo "=== Title & first 120 lines (with line numbers) ==="
awk '{printf "%5d %s\n", NR, $0}' "$FILE" | sed -n '1,120p'

echo
echo "=== Version-related references ==="
rg -n "beta|1\.0\.0|v1\.x|v0\.x" "$FILE" || true

Repository: LerianStudio/helm

Length of output: 9821


Align the upgrade target/version in UPGRADE-1.0.md title with the documented destination

The guide title says v1.x (line 1), but the content consistently targets 1.0.0-beta.3 (overview line 21, version table line 83, and upgrade commands lines 133/141). Update the title to v1.0.0-beta.3 (or switch all 1.0.0-beta.3 references to 1.0.0 if that’s the intended stable target).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@charts/lerian-notification/docs/UPGRADE-1.0.md` at line 21, The document
title in UPGRADE-1.0.md currently reads "v1.x" but the body targets
"1.0.0-beta.3"; update the title string "v1.x" to "v1.0.0-beta.3" so it matches
the overview line and all version references (search for the title header and
replace it), ensuring consistency with the documented destination version
throughout the file; alternatively, if the intended target is a stable release,
change all occurrences of "1.0.0-beta.3" in the document (overview, version
table, and upgrade commands) to "1.0.0" instead—pick one approach and apply it
consistently.


```yaml
secrets:
DATABASE_URL: "postgres://USER:URLENCODED_PW@HOST:PORT/DB?sslmode=disable"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Use a secure SSL mode in the DATABASE_URL example.

The example shows sslmode=disable, which disables encryption for database connections and is inappropriate for production. Update the example to use sslmode=require or sslmode=verify-full, or add an explicit warning that the shown mode is for local development only.

🔒 Proposed fix for secure default
-  DATABASE_URL: "postgres://USER:URLENCODED_PW@HOST:PORT/DB?sslmode=disable"
+  DATABASE_URL: "postgres://USER:URLENCODED_PW@HOST:PORT/DB?sslmode=require"

Or add a warning if the insecure mode is intentional for the example:

+> **Security:** The example shows `sslmode=disable` for simplicity. Production deployments should use `sslmode=require` or `sslmode=verify-full`.
+
 ```yaml
 secrets:
   DATABASE_URL: "postgres://USER:URLENCODED_PW@HOST:PORT/DB?sslmode=disable"
</details>

<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

```suggestion
  DATABASE_URL: "postgres://USER:URLENCODED_PW@HOST:PORT/DB?sslmode=require"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@charts/lerian-notification/docs/UPGRADE-1.0.md` at line 43, The DATABASE_URL
example currently uses an insecure query parameter ("sslmode=disable"); update
the example value (the DATABASE_URL secret string) to use a secure SSL mode such
as "sslmode=require" or "sslmode=verify-full", or, if keeping "sslmode=disable"
for local/dev only, add an explicit inline warning comment alongside the
DATABASE_URL example stating it is for local development only and must not be
used in production.

## Preview changes before upgrading

```bash
helm diff upgrade lerian-notification oci://registry-1.docker.io/lerianstudio/lerian-notification-helm --version 1.0.0-beta.3 -n lerian-notification
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add values file reference to Helm commands.

Both the preview and upgrade commands omit -f values.yaml, but Migration Step 1 requires setting secrets.DATABASE_URL. Add the values file flag or include a note reminding users to supply their configuration.

📝 Proposed fix
-helm diff upgrade lerian-notification oci://registry-1.docker.io/lerianstudio/lerian-notification-helm --version 1.0.0-beta.3 -n lerian-notification
+helm diff upgrade lerian-notification oci://registry-1.docker.io/lerianstudio/lerian-notification-helm --version 1.0.0-beta.3 -f values.yaml -n lerian-notification
-helm upgrade lerian-notification oci://registry-1.docker.io/lerianstudio/lerian-notification-helm --version 1.0.0-beta.3 -n lerian-notification
+helm upgrade lerian-notification oci://registry-1.docker.io/lerianstudio/lerian-notification-helm --version 1.0.0-beta.3 -f values.yaml -n lerian-notification

Or add a note before the commands:

> **Note:** Replace `values.yaml` with your values file path, or use `--set` flags for individual overrides.

Also applies to: 141-141

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@charts/lerian-notification/docs/UPGRADE-1.0.md` at line 133, Update the Helm
preview and upgrade commands in UPGRADE-1.0.md to include a values file
reference or call out that users must supply configuration; specifically modify
the shown helm diff/upgrade command examples (the lines containing "helm diff
upgrade lerian-notification ..." and the corresponding upgrade command at the
later occurrence) to either append "-f values.yaml" (or "-f
<path/to/values.yaml>") or add a preceding note: "Note: Replace values.yaml with
your values file path, or use --set flags to override individual values (you
must set secrets.DATABASE_URL)". Ensure the change is made for both occurrences
referenced in the comment.

@guimoreirar guimoreirar changed the title [hotfix] docs(lerian-notification): add v1.0 upgrade guide docs(lerian-notification): add v1.0 upgrade guide May 29, 2026
@guimoreirar guimoreirar merged commit 7d24df3 into main May 29, 2026
3 of 4 checks passed
@guimoreirar guimoreirar deleted the hotfix/lerian-notification-upgrade-doc-1-0 branch May 29, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants