kustomize
Kubernetes native configuration management.
Installation
dagger install github.com/sagikazarmark/daggerverse/kustomize@v0.1.0
Entrypoint
Return Type
Kustomize !
Arguments
Name | Type | Description |
---|---|---|
version | String | Version (image tag) to use from the official image repository as a base container. |
image | String | Custom image reference in "repository:tag" format to use as a base container. |
container | Container | Custom container to use as a base container. |
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@833905febeb1c77937712dd9f69a2c85898c74d9 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@833905febeb1c77937712dd9f69a2c85898c74d9 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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
dir | String | - | Subdirectory within the source to use as the target. |
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@833905febeb1c77937712dd9f69a2c85898c74d9 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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@833905febeb1c77937712dd9f69a2c85898c74d9 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() 🔗
Return Type
Directory !
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@833905febeb1c77937712dd9f69a2c85898c74d9 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()
}
file() 🔗
Return Type
File !
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@833905febeb1c77937712dd9f69a2c85898c74d9 call \
edit --source DIR_PATH \
file
func (m *myModule) example(source *Directory) *File {
return dag.
Kustomize().
Edit(source).
File()
}
@function
def example(source: dagger.Directory) -> dagger.File:
return (
dag.kustomize()
.edit(source)
.file()
)
@func()
example(source: Directory): File {
return dag
.kustomize()
.edit(source)
.file()
}
set() 🔗
Set the value of different fields in kustomization file.
Return Type
Set !
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@833905febeb1c77937712dd9f69a2c85898c74d9 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
Name | Type | Default Value | Description |
---|---|---|---|
key | String ! | - | No description provided |
value | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@833905febeb1c77937712dd9f69a2c85898c74d9 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
Name | Type | Default Value | Description |
---|---|---|---|
image | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@833905febeb1c77937712dd9f69a2c85898c74d9 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
Name | Type | Default Value | Description |
---|---|---|---|
namespace | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@833905febeb1c77937712dd9f69a2c85898c74d9 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
Name | Type | Default Value | Description |
---|---|---|---|
nameSuffix | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/kustomize@833905febeb1c77937712dd9f69a2c85898c74d9 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)
}