helmfile/pkg/version
Hubertbits 8067504097 Add version package to allow test imports
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-04-17 07:30:37 +08:00
..
README.md Add version package to allow test imports 2025-04-17 07:30:37 +08:00
versions.go Add version package to allow test imports 2025-04-17 07:30:37 +08:00

README.md

Version Package

Overview

The version package contains version-related constants and utilities used throughout the Helmfile codebase. It was created as a standalone package to avoid import cycles while making version information accessible to all components.

Contents

This package includes:

  • HelmRequiredVersion: The minimum required Helm version for Helmfile
  • Other version-related constants and utilities

Usage

Import this package when you need access to version information:

import "github.com/helmfile/helmfile/pkg/version"

func someFunction() {
    // Use version constants
    requiredVersion := version.HelmRequiredVersion

    // Example usage
    fmt.Printf("Helmfile requires Helm version %s or later\n", requiredVersion)
}

Design Considerations

This package is intentionally isolated from other Helmfile packages to prevent import cycles. It should:

  • Contain only version-related constants and simple utilities
  • Not import other Helmfile packages
  • Be kept minimal to serve its specific purpose

When adding new version-related functionality, ensure it belongs here rather than in a more specific package.