Skip to content

fix(action): render before namespace creation#78

Merged
GaTTGeng merged 2 commits into
masterfrom
fix/32-render-before-namespace
Jun 28, 2026
Merged

fix(action): render before namespace creation#78
GaTTGeng merged 2 commits into
masterfrom
fix/32-render-before-namespace

Conversation

@GaTTGeng

Copy link
Copy Markdown
Owner

Summary

  • Render install/upgrade manifests before CreateNamespace performs namespace creation, so invalid templates fail before mutating the cluster.
  • Keep the release-history lookup before rendering so .Release.IsUpgrade and revision values still reflect existing release state.
  • Add a fake Kubernetes-client regression test that permits the read-only release history query and verifies POST /api/v1/namespaces is not sent after render failure.
  • While maintaining [Unreleased], normalize changelog categories to Keep a Changelog headings and add version comparison links.

Fixes #32

Verification

  • dotnet test tests/HelmSharp.Tests/HelmSharp.Tests.csproj --configuration Release --filter "FullyQualifiedName~ChartOperationsTests"
  • dotnet test HelmSharp.sln --configuration Release

GaTTGeng added 2 commits June 28, 2026 10:58
Move new helper and documentation entries into standard Keep a Changelog sections, replace the custom Docs heading, and add version comparison links.
Move install and upgrade manifest rendering ahead of namespace creation so invalid templates fail before mutating the cluster. Add regression coverage with a fake Kubernetes client that verifies release-history lookup remains read-only and namespace creation is skipped on render failure.
@GaTTGeng GaTTGeng force-pushed the fix/32-render-before-namespace branch from d108182 to 35e91ba Compare June 28, 2026 03:37
@GaTTGeng GaTTGeng marked this pull request as ready for review June 28, 2026 03:37
Copilot AI review requested due to automatic review settings June 28, 2026 03:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@GaTTGeng GaTTGeng merged commit f778a17 into master Jun 28, 2026
1 check passed
@GaTTGeng GaTTGeng deleted the fix/32-render-before-namespace branch June 28, 2026 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[M1]Render charts before creating namespaces during upgrade/install

2 participants