Dagger
Search

kustomize

Kubernetes native configuration management.

Installation

dagger install github.com/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e

Entrypoint

Return Type
Kustomize !
Arguments
NameTypeDescription
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/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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/jedevc/daggerverse-sagikazarmark/kustomize@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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)
}