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
+6
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,12 @@ 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.8] - 2024-11-01
8
+
9
+
### Fixed:
10
+
- Resolved an issue where `SnapshotHelm` could be triggered without specifying a namespace-related option. Now requires either `-Namespace`, `-AllNamespaces`, or `-AllNonSystemNamespaces` when `SnapshotHelm` is used.
11
+
- Improved parameter validation to prevent execution without necessary inputs, reducing potential errors in Helm snapshot and comparison functions.
Write-Host"You are not connected to any Kubernetes cluster."-ForegroundColor Red
144
147
Write-Host"Please configure a Kubernetes cluster to connect to."-ForegroundColor Red
145
148
Write-Host"Instructions to set up a cluster can be found here: https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/"-ForegroundColor Yellow
@@ -149,88 +152,75 @@ function Invoke-KubeSnapIt {
149
152
150
153
# Determine the operation type using switch
151
154
switch ($true) {
152
-
# Handle Restore operation
153
155
{ $Restore } {
154
156
if (-not$InputPath) {
155
-
Write-Host"Error: You must specify an input path for the restore operation."-ForegroundColor Red
157
+
Write-Host"Error: Input path required for restore."-ForegroundColor Red
Write-Host"Error during snapshot: $_"-ForegroundColor Red
227
218
}
228
219
return
229
220
}
230
221
231
-
# If none of the operations match, display an error
232
222
default {
233
-
Write-Host"Error: You must specify either -Restore, -CompareWithCluster, -CompareSnapshots, or -SnapshotHelm with a valid operation."-ForegroundColor Red
223
+
Write-Host"Error: Specify -Restore, -CompareWithCluster, -CompareSnapshots, or -SnapshotHelm with necessary parameters."-ForegroundColor Red
0 commit comments