Documentation ¶
Index ¶
- Variables
- func Yamls(setters ...Option) ([]byte, error)
- type Kustomize
- type Option
- func WithAPI(o bool) Option
- func WithFS(fs filesys.FileSystem) Option
- func WithImage(i string) Option
- func WithImagePullPolicy(pullPolicy string) Option
- func WithInstall() Option
- func WithLabels(l map[string]string) Option
- func WithNamespace(n string) Option
- func WithPatches(patches []types.Patch) Option
- func WithResourceNames(filenames []string) Option
- func WithResources(efs embed.FS) Option
Constants ¶
This section is empty.
Variables ¶
var BuildImage = defaultImage
This will get overridden at build time with the appropriate version image.
Functions ¶
Types ¶
type Kustomize ¶
type Kustomize struct { Base string *krusty.Kustomizer // contains filtered or unexported fields }
Kustomize provides the ability to manage Kubernetes resources through kubernetes-sigs/Kustomize.
func NewKustomization ¶
NewKustomization instantiates a new kustomize workflow. Options are used to control setting specific parameters.
type Option ¶
func WithAPI ¶
WithAPI configures the controller to use the RedSky API. If true, the controller deployment is patched to pull environment variables from the secret.
func WithFS ¶
func WithFS(fs filesys.FileSystem) Option
func WithImagePullPolicy ¶
func WithInstall ¶
func WithInstall() Option
WithInstall initializes a kustomization with the bases of what we need to perform an install/init.
func WithLabels ¶
WithLabels sets the common labels attribute for the kustomization.
func WithNamespace ¶
WithNamespace sets the namespace attribute for the kustomization.
func WithPatches ¶
WithPatches updates the kustomization with the specified list of Patches and writes them to the in memory filesystem.
func WithResourceNames ¶
func WithResources ¶
WithResources updates the kustomization with the specified list of Assets and writes them to the in memory filesystem.