Dagger
Search

kustomize

Kubernetes native configuration management.

Installation

dagger install github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04

Entrypoint

Return Type
Kustomize !
Arguments
NameTypeDefault ValueDescription
versionString -Version (image tag) to use from the official image repository as a base container.
containerContainer -Custom container to use as a base container.
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
func (m *myModule) example() *Kustomize  {
	return dag.
			Kustomize()
}
@function
def example() -> dag.Kustomize:
	return (
		dag.kustomize()
	)
@func()
example(): Kustomize {
	return dag
		.kustomize()
}

Types

Kustomize 🔗

container() 🔗

Return Type
Container !
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
 container
func (m *myModule) example() *Container  {
	return dag.
			Kustomize().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.kustomize()
		.container()
	)
@func()
example(): Container {
	return dag
		.kustomize()
		.container()
}

build() 🔗

Build a kustomization target from a directory or URL.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
dirString -Subdirectory within the source to use as the target.
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
 build --source DIR_PATH
func (m *myModule) example(source *Directory) *File  {
	return dag.
			Kustomize().
			Build(source)
}
@function
def example(source: dagger.Directory) -> dagger.File:
	return (
		dag.kustomize()
		.build(source)
	)
@func()
example(source: Directory): File {
	return dag
		.kustomize()
		.build(source)
}

edit() 🔗

Edit a kustomization file.

Return Type
Edit !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
dirString -Subdirectory within the source to use as the target.
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
 edit --source DIR_PATH
func (m *myModule) example(source *Directory) *KustomizeEdit  {
	return dag.
			Kustomize().
			Edit(source)
}
@function
def example(source: dagger.Directory) -> dag.KustomizeEdit:
	return (
		dag.kustomize()
		.edit(source)
	)
@func()
example(source: Directory): KustomizeEdit {
	return dag
		.kustomize()
		.edit(source)
}

Edit 🔗

Edit a kustomization file.

directory() 🔗

Retrieve the source containing the modifications.

Return Type
Directory !
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
 edit --source DIR_PATH \
 directory
func (m *myModule) example(source *Directory) *Directory  {
	return dag.
			Kustomize().
			Edit(source).
			Directory()
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
	return (
		dag.kustomize()
		.edit(source)
		.directory()
	)
@func()
example(source: Directory): Directory {
	return dag
		.kustomize()
		.edit(source)
		.directory()
}

set() 🔗

Set the value of different fields in kustomization file.

Return Type
Set !
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
 edit --source DIR_PATH \
 set
func (m *myModule) example(source *Directory) *KustomizeSet  {
	return dag.
			Kustomize().
			Edit(source).
			Set()
}
@function
def example(source: dagger.Directory) -> dag.KustomizeSet:
	return (
		dag.kustomize()
		.edit(source)
		.set()
	)
@func()
example(source: Directory): KustomizeSet {
	return dag
		.kustomize()
		.edit(source)
		.set()
}

Set 🔗

Set the value of different fields in kustomization file.

annotation() 🔗

Sets one or more commonAnnotations in kustomization.yaml.

Return Type
Edit !
Arguments
NameTypeDefault ValueDescription
keyString !-No description provided
valueString !-No description provided
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
 edit --source DIR_PATH \
 set \
 annotation --key string --value string
func (m *myModule) example(source *Directory, key string, value string) *KustomizeEdit  {
	return dag.
			Kustomize().
			Edit(source).
			Set().
			Annotation(key, value)
}
@function
def example(source: dagger.Directory, key: str, value: str) -> dag.KustomizeEdit:
	return (
		dag.kustomize()
		.edit(source)
		.set()
		.annotation(key, value)
	)
@func()
example(source: Directory, key: string, value: string): KustomizeEdit {
	return dag
		.kustomize()
		.edit(source)
		.set()
		.annotation(key, value)
}

image() 🔗

Set images and their new names, new tags or digests in the kustomization file.

Return Type
Edit !
Arguments
NameTypeDefault ValueDescription
imageString !-No description provided
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
 edit --source DIR_PATH \
 set \
 image --image string
func (m *myModule) example(source *Directory, image string) *KustomizeEdit  {
	return dag.
			Kustomize().
			Edit(source).
			Set().
			Image(image)
}
@function
def example(source: dagger.Directory, image: str) -> dag.KustomizeEdit:
	return (
		dag.kustomize()
		.edit(source)
		.set()
		.image(image)
	)
@func()
example(source: Directory, image: string): KustomizeEdit {
	return dag
		.kustomize()
		.edit(source)
		.set()
		.image(image)
}

namespace() 🔗

Set the value of the namespace field in the kustomization file.

Return Type
Edit !
Arguments
NameTypeDefault ValueDescription
namespaceString !-No description provided
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
 edit --source DIR_PATH \
 set \
 namespace --namespace string
func (m *myModule) example(source *Directory, namespace string) *KustomizeEdit  {
	return dag.
			Kustomize().
			Edit(source).
			Set().
			Namespace(namespace)
}
@function
def example(source: dagger.Directory, namespace: str) -> dag.KustomizeEdit:
	return (
		dag.kustomize()
		.edit(source)
		.set()
		.namespace(namespace)
	)
@func()
example(source: Directory, namespace: string): KustomizeEdit {
	return dag
		.kustomize()
		.edit(source)
		.set()
		.namespace(namespace)
}

namesuffix() 🔗

Set the value of the nameSuffix field in the kustomization file.

Return Type
Edit !
Arguments
NameTypeDefault ValueDescription
nameSuffixString !-No description provided
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
 edit --source DIR_PATH \
 set \
 namesuffix --name-suffix string
func (m *myModule) example(source *Directory, nameSuffix string) *KustomizeEdit  {
	return dag.
			Kustomize().
			Edit(source).
			Set().
			Namesuffix(nameSuffix)
}
@function
def example(source: dagger.Directory, name_suffix: str) -> dag.KustomizeEdit:
	return (
		dag.kustomize()
		.edit(source)
		.set()
		.namesuffix(name_suffix)
	)
@func()
example(source: Directory, nameSuffix: string): KustomizeEdit {
	return dag
		.kustomize()
		.edit(source)
		.set()
		.namesuffix(nameSuffix)
}

secret() 🔗

Edit the value for an existing key in an existing Secret in the kustomization.yaml file.

Return Type
Edit !
Arguments
NameTypeDefault ValueDescription
secretString !-No description provided
fromLiteral[String ! ] -Specify an existing key and a new value to update a Secret (i.e. mykey=newvalue).
namespaceString -Current namespace of the target Secret.
newNamespaceString -New namespace value for the target Secret.
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@fb248d287658681298c8997f36575d6768c92c04 call \
 edit --source DIR_PATH \
 set \
 secret --secret string
func (m *myModule) example(source *Directory, secret string) *KustomizeEdit  {
	return dag.
			Kustomize().
			Edit(source).
			Set().
			Secret(secret)
}
@function
def example(source: dagger.Directory, secret: str) -> dag.KustomizeEdit:
	return (
		dag.kustomize()
		.edit(source)
		.set()
		.secret(secret)
	)
@func()
example(source: Directory, secret: string): KustomizeEdit {
	return dag
		.kustomize()
		.edit(source)
		.set()
		.secret(secret)
}