Skip to content

Releases: KubeDeckio/KubeSnapIt

KubeSnapIt Krew Release v0.0.12

10 Dec 15:36
fa44d16
Compare
Choose a tag to compare

[0.0.12] - 2024-12-10

Added:

  • Helm Backend Storage: $SnapshotHelm now includes a backup of Helm backend storage (Secrets or ConfigMaps), ensuring that all metadata for Helm releases is captured in snapshots.
  • Verbose Backend Logging: Detailed logging of backend type (Secrets or ConfigMaps) and operations is now included when running in verbose mode.
  • Helm Restore with History: Added support for restoring Helm releases, including their full history and backend configuration (Secrets or ConfigMaps). This ensures a complete recovery of release state.
  • Dynamic Resource Discovery: Replaced hardcoded lists of resource kinds with dynamic discovery using kubectl api-resources. This ensures all available Kubernetes resource types, including CRDs and their objects, are automatically included in snapshots.
  • Automatic CRD Object Backup: CRD objects are now seamlessly backed up alongside other resources without requiring separate logic.

Fixed:

  • Empty Release Handling: Improved handling of namespaces with no Helm releases, avoiding unnecessary warnings and providing clear messages instead.

  • Error Messages: Enhanced error messages for missing tools (helm or kubectl) to include actionable instructions for installation.

  • Changed: Replaced $AllNamespaces with $ClusterResources for snapshotting cluster-scoped resources. $AllNamespaces remains available for Helm snapshotting purposes.

KubeSnapIt Krew Release v0.0.11

06 Dec 14:38
Compare
Choose a tag to compare

[0.0.11] - 2024-12-06

Fixed:

  • Helm Used Values: Snapshots now include only the values you provide, excluding default or generated values.

KubeSnapIt Krew Release v0.0.10

04 Dec 15:32
f2d4f6c
Compare
Choose a tag to compare

[0.0.10] - 2024-12-04

Added:

  • -SnapshotHelmUsedValues: Introduced a new switch to capture only the used values (default and user-provided) for Helm releases.
  • Combined Helm Snapshots: Added support for combining -SnapshotHelm and -SnapshotHelmUsedValues to capture both full Helm snapshots and used values in a single command.
  • Documentation Enhancements: Expanded PowerShell and Krew plugin usage documentation to reflect the new Helm-related functionality, including examples for individual and combined switches.

Fixed:

  • Non-System Namespace Handling: Resolved issues with AllNonSystemNamespaces when processing Helm snapshots, ensuring proper filtering of system namespaces.
  • Error Handling in Helm Commands: Improved error handling for helm commands to provide clearer feedback when commands fail or outputs are invalid.

Changed:

  • Output File Naming: Standardized file naming conventions for Helm snapshots to include timestamps and clearly distinguish between full snapshots and used values.
  • Verbose Mode Improvements: Enhanced verbosity messages to provide better visibility into the snapshotting process, particularly for Helm-related operations.

KubeSnapIt Krew Release v0.0.9

04 Nov 16:11
Compare
Choose a tag to compare

[0.0.9] - 2024-11-04

Fixed:

  • Non-System Namespace Support in Save-Snapshot: Fixed an issue where Save-Snapshot did not properly handle snapshots for non-system namespaces, ensuring full support when using the AllNonSystemNamespaces parameter.

KubeSnapIt Krew Release v0.0.8

04 Nov 15:13
Compare
Choose a tag to compare

[0.0.8] - 2024-11-01

Fixed:

  • 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.
  • Improved parameter validation to prevent execution without necessary inputs, reducing potential errors in Helm snapshot and comparison functions.

KubeSnapIt Krew Release v0.0.7

04 Nov 14:14
1f0d0b3
Compare
Choose a tag to compare

[0.0.7] - 2024-11-01

Added

  • AllNonSystemNamespaces Parameter: Introduced the -AllNonSystemNamespaces parameter to the Invoke-KubeSnapIt and Save-KubeSnapshot functions. This allows users to capture snapshots from all non-system namespaces, excluding kube-system, kube-public, kube-node-lease, and default.
  • Helm Chart Snapshot: Added functionality to backup Helm releases and their values using the -SnapshotHelm parameter. This includes:
    • Fetching Helm release values.
    • Fetching Helm release manifests.
    • Fetching Helm release history.
    • Saving the fetched data to specified output paths.

Fixed

  • Namespace Processing: Ensured that the Process-Namespace function correctly handles single namespace strings and iterates over multiple namespaces when -AllNonSystemNamespaces is specified.

KubeSnapIt Krew Release v0.0.6

30 Oct 11:29
Compare
Choose a tag to compare

[0.0.6] - 2024-10-30

Added

  • Enhanced Error Handling: Improved error handling in Read-YamlFile and Compare-Files functions.
    • Read-YamlFile now checks for:
      • Missing file paths, displaying an error if the path is invalid or the file is not found.
      • YAML format validation, ensuring required fields (kind, metadata.name) are present.
    • Compare-Files function enhancements include:
      • Validation for the presence of $LocalFile and error messaging if the file is missing or unreadable.
      • Cluster snapshot retrieval wrapped in error handling, with feedback for failed kubectl access or invalid resource information.
      • Temporary file write protection, ensuring successful snapshot output to a specified location and clear messaging if issues occur.
  • UI Switch Update: Modified the -UI switch to display the Show-KubeSnapItBanner banner when running the script in CLI mode without blocking subsequent operations. This ensures that banner display and further command execution can occur seamlessly in CLI environments.

Fixed

  • Comparison Execution: Resolved issues where Compare-Files would not complete if the $CompareFile was not explicitly provided, adding automatic snapshot creation when needed and appropriate validation checks.

KubeSnapIt Krew Release v0.0.5

22 Oct 14:49
Compare
Choose a tag to compare

[0.0.5] - 2024-10-22

Fixed

  • Function Execution Logic: Addressed the issue where the function was incorrectly requiring a namespace for comparison operations, ensuring that users can now run comparisons against the cluster or between snapshots without needing to specify a namespace.

KubeSnapIt Krew Release v0.0.4

22 Oct 14:37
Compare
Choose a tag to compare

[0.0.4] - 2024-10-22

Added

  • Separate Comparison Switches: Introduced two distinct switches for comparison:
    • -CompareWithCluster: Allows users to compare a snapshot against the current state of the Kubernetes cluster without requiring a namespace.
    • -CompareSnapshots: Allows users to compare two snapshots, enabling more flexible comparison options.

Changed

  • Refined Operation Logic: Improved the internal logic to handle operations more clearly using switch statements, ensuring that each operation (Snapshot, Compare, Restore) is handled independently without unnecessary dependencies.
  • Improved Error Messaging: Enhanced error messages for missing required parameters specific to each operation, providing clearer feedback to users.

Fixed

  • Namespace Requirement for Compare Operations: Resolved the issue where comparing snapshots against the cluster incorrectly enforced namespace requirements, allowing users to perform comparisons without specifying a namespace.

KubeSnapIt Krew Release v0.0.3

22 Oct 09:28
Compare
Choose a tag to compare

[0.0.3] - 2024-10-22

Changed

  • Removed ASCII Art from Output: Replaced ASCII art in the comparison summary with cleaner, simpler text formatting to improve compatibility and readability across different terminals and UI environments.