helm

package
v0.8.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDryRunHelmChartCode = "meshkit-11187"
	ErrLoadHelmChartCode   = "meshkit-11188"
)

Functions

func ConvertToK8sManifest

func ConvertToK8sManifest(path, kubeVersion string, w io.Writer) error

Takes in the directory and converts HelmCharts/multiple manifests into a single K8s manifest

func DryRunHelmChart

func DryRunHelmChart(chart *chart.Chart, kubernetesVersion string) ([]byte, error)

DryRun a given helm chart to convert into k8s manifest

func ErrDryRunHelmChart

func ErrDryRunHelmChart(err error, chartName string) error

func ErrLoadHelmChart

func ErrLoadHelmChart(err error, path string) error

func IsHelmChart

func IsHelmChart(dirPath string) bool

Exisitence of Chart.yaml/Chart.yml indicates the directory contains a helm chart

func LoadHelmChart

func LoadHelmChart(path string, w io.Writer, extractOnlyCrds bool, kubeVersion string) error

func RemoveHelmPlaceholders added in v0.8.7

func RemoveHelmPlaceholders(data []byte) []byte

RemoveHelmPlaceholders - replaces helm templates placeholder with YAML compatible empty value since these templates cause YAML parsing error NOTE: this is a quick fix

func SanitizeHelmName added in v0.8.26

func SanitizeHelmName(name string) string

SanitizeHelmName - sanitizes the name of the helm chart Helm chart names must be lowercase and can only contain alphanumeric characters, dashes, and underscores Example: "My Chart" -> "my-chart"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL