kustomize
Kubernetes native configuration management.
Installation
dagger install github.com/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c
Entrypoint
Return Type
Kustomize !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | - | Version (image tag) to use from the official image repository as a base container. |
container | Container | - | Custom container to use as a base container. |
Example
dagger -m github.com/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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 |
dir | String | - | Subdirectory within the source to use as the target. |
Example
dagger -m github.com/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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() 🔗
Return Type
Edit !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
secret | String ! | - | No description provided |
fromLiteral | [String ! ] | - | No description provided |
namespace | String | - | No description provided |
newNamespace | String | - | No description provided |
Example
dagger -m github.com/fcanovai/sagikazarmark-daggerverse/kustomize@99fd34a076a0a513ed90feb7fbc3452d078e546c 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)
}