preprocessing

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempDir

func CreateTempDir(p string) error

CreateTempDir creates a temporary directory on the user's file system for rendering templates

func IsHelm

func IsHelm(path string) bool

Checks whether a given path is a helm directory or a path to a Helm Chart (contains/is Chart.yaml)

func IsKustomize

func IsKustomize(p string) bool

IsKustomize checks whether a given path should be treated as a kustomize project

func RenderHelmChart

func RenderHelmChart(isFile bool, mainChartPath, tempDir string) ([]safeguards.ManifestFile, error)

Given a Helm chart directory or file, renders all templates and writes them to the specified directory

func RenderKustomizeManifest

func RenderKustomizeManifest(kustomizationPath, tempDir string) ([]safeguards.ManifestFile, error)

Given a kustomization manifest file within kustomizationPath, RenderKustomizeManifest will render templates out to tempDir

Types

This section is empty.

Jump to

Keyboard shortcuts

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