generator

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(root, dirPath string, allowRemoteBases bool) (_ resmap.ResMap, err error)

Build wraps krusty.MakeKustomizer with the following settings:

  • secure on-disk FS denying operations outside root
  • load files from outside the kustomization dir path (but not outside root)
  • disable plugins except for the builtin ones

func SubstituteVariables

func SubstituteVariables(
	ctx context.Context,
	kubeClient client.Client,
	kustomization *kustomizev1.Kustomization,
	res *resource.Resource) (*resource.Resource, error)

SubstituteVariables replaces the vars with their values in the specified resource. If a resource is labeled or annotated with 'kustomize.toolkit.fluxcd.io/substitute: disabled' the substitution is skipped.

Types

type KustomizeGenerator

type KustomizeGenerator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(root string, kustomization *kustomizev1.Kustomization) *KustomizeGenerator

func (*KustomizeGenerator) WriteFile

func (kg *KustomizeGenerator) WriteFile(dirPath string) (string, error)

Jump to

Keyboard shortcuts

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