resources

package
v0.0.0-...-c48f5bf Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kustomization

type Kustomization struct {
	APIVersion   string            `json:"apiVersion,omitempty"`
	Kind         string            `json:"kind,omitempty"`
	Resources    []string          `json:"resources,omitempty"`
	Bases        []string          `json:"bases,omitempty"`
	Patches      []Patch           `json:"patches,omitempty"`
	CommonLabels map[string]string `json:"commonLabels,omitempty"`
}

Kustomization is a structural representation of the Kustomize file format.

func (*Kustomization) AddBases

func (k *Kustomization) AddBases(s ...string)

func (*Kustomization) AddPatches

func (k *Kustomization) AddPatches(s ...string)

func (*Kustomization) AddResources

func (k *Kustomization) AddResources(s ...string)

func (*Kustomization) CompareDifferenceAndAddCustomPatches

func (k *Kustomization) CompareDifferenceAndAddCustomPatches(original []Patch, generated []string)

type Patch

type Patch struct {
	Path string `json:"path"`
}

Patch holds the patch information

Jump to

Keyboard shortcuts

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