Documentation ¶
Overview ¶
Package kustomize is a wrapper to call Kustomize directly from Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kustomize ¶
type Kustomize struct {
// contains filtered or unexported fields
}
Kustomize holds factories and config options.
func NewDefaultKustomize ¶
func NewDefaultKustomize() *Kustomize
NewDefaultKustomize creates a Kustomize instance with a sane default config.
func (*Kustomize) For ¶
func (k *Kustomize) For(fs fs.FileSystem) KustomizeContext
For returns a new KustomizeContext using the given FileSystem.
func (*Kustomize) ForHTTP ¶
func (k *Kustomize) ForHTTP(httpFS http.FileSystem) KustomizeContext
ForHTTP returns a new KustomizeContext using the given http.FileSystem.
type KustomizeContext ¶
type KustomizeContext interface { ReadFile(path string) ([]byte, error) WriteFile(path string, content []byte) error MkLayer(name string, kustomization types.Kustomization) error Build(path string) ([]unstructured.Unstructured, error) }
KustomizeContext combines a Kustomize instance with FileSystem operations.
Click to show internal directories.
Click to hide internal directories.