Documentation
¶
Index ¶
- Variables
- func ConvertToK8sManifest(path, kubeVersion string, w io.Writer) error
- func DryRunHelmChart(chart *chart.Chart, kubernetesVersion string) ([]byte, error)
- func ErrDryRunHelmChart(err error, chartName string) error
- func ErrLoadHelmChart(err error, path string) error
- func IsHelmChart(dirPath string) bool
- func LoadHelmChart(path string, w io.Writer, extractOnlyCrds bool, kubeVersion string) error
- func RemoveHelmPlaceholders(data []byte) []byte
- func SanitizeHelmName(name string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDryRunHelmChartCode = "meshkit-11187" ErrLoadHelmChartCode = "meshkit-11188" )
Functions ¶
func ConvertToK8sManifest ¶
Takes in the directory and converts HelmCharts/multiple manifests into a single K8s manifest
func DryRunHelmChart ¶
DryRun a given helm chart to convert into k8s manifest
func ErrDryRunHelmChart ¶
func ErrLoadHelmChart ¶
func IsHelmChart ¶
Exisitence of Chart.yaml/Chart.yml indicates the directory contains a helm chart
func LoadHelmChart ¶
func RemoveHelmPlaceholders ¶ added in v0.8.7
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
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.
Click to show internal directories.
Click to hide internal directories.