You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+15
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
+
## [0.0.10] - 2024-12-04
8
+
9
+
### Added:
10
+
-**`-SnapshotHelmUsedValues`**: Introduced a new switch to capture only the used values (default and user-provided) for Helm releases.
11
+
-**Combined Helm Snapshots**: Added support for combining `-SnapshotHelm` and `-SnapshotHelmUsedValues` to capture both full Helm snapshots and used values in a single command.
12
+
-**Documentation Enhancements**: Expanded PowerShell and Krew plugin usage documentation to reflect the new Helm-related functionality, including examples for individual and combined switches.
13
+
14
+
### Fixed:
15
+
-**Non-System Namespace Handling**: Resolved issues with `AllNonSystemNamespaces` when processing Helm snapshots, ensuring proper filtering of system namespaces.
16
+
-**Error Handling in Helm Commands**: Improved error handling for `helm` commands to provide clearer feedback when commands fail or outputs are invalid.
17
+
18
+
### Changed:
19
+
-**Output File Naming**: Standardized file naming conventions for Helm snapshots to include timestamps and clearly distinguish between full snapshots and used values.
20
+
-**Verbose Mode Improvements**: Enhanced verbosity messages to provide better visibility into the snapshotting process, particularly for Helm-related operations.
Write-Verbose"Starting Helm used values backup..."
217
+
if ($DryRun) { Write-Host"Dry run enabled. No files will be saved."-ForegroundColor Yellow }
218
+
219
+
try {
220
+
Save-HelmBackup`
221
+
-Namespace $Namespace`
222
+
-AllNamespaces:$AllNamespaces`
223
+
-AllNonSystemNamespaces:$AllNonSystemNamespaces`
224
+
-OutputPath $OutputPath`
225
+
-DryRun:$DryRun`
226
+
-Verbose:$Verbose`
227
+
-SnapshotHelmUsedValues
228
+
}
229
+
catch {
230
+
Write-Host"Error during Helm used values backup: $_"-ForegroundColor Red
231
+
}
232
+
return
233
+
}
234
+
235
+
# Only Helm used values snapshot
236
+
{ $SnapshotHelmUsedValues-and$SnapshotHelm } {
237
+
if (-not ($Namespace-or$AllNamespaces-or$AllNonSystemNamespaces)) {
238
+
Write-Host"Error: -Namespace, -AllNamespaces, or -AllNonSystemNamespaces is required with -SnapshotHelm and -SnapshotHelmUsedValues."-ForegroundColor Red
0 commit comments