kubectl
No long description provided.
Installation
dagger install github.com/aweris/daggerverse/kubectl@a77e1a3398109f46a6d7d01cee33e59dd653a774
Entrypoint
Return Type
Kubectl
Example
dagger -m github.com/aweris/daggerverse/kubectl@a77e1a3398109f46a6d7d01cee33e59dd653a774 call \
func (m *myModule) example() *Kubectl {
return dag.
Kubectl()
}
@function
def example() -> dag.Kubectl:
return (
dag.kubectl()
)
@func()
example(): Kubectl {
return dag
.kubectl()
}
Types
Kubectl 🔗
cli() 🔗
Cli returns a kubectl cli with the given config.
Return Type
Cli !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
config | File ! | - | No description provided |
Example
dagger -m github.com/aweris/daggerverse/kubectl@a77e1a3398109f46a6d7d01cee33e59dd653a774 call \
cli
func (m *myModule) example(config ) {
return dag.
Kubectl().
Cli(config)
}
@function
def example(config: ) -> :
return (
dag.kubectl()
.cli(config)
)
@func()
example(config: ): {
return dag
.kubectl()
.cli(config)
}
Cli 🔗
config() 🔗
Return Type
File !
Example
Function KubectlCli.Config is not accessible from the kubectl module
Function KubectlCli.Config is not accessible from the kubectl module
Function KubectlCli.Config is not accessible from the kubectl module
Function KubectlCli.Config is not accessible from the kubectl module
exec() 🔗
Exec executes the given kubectl command and returns the stdout.
Return Type
StringKind !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
args | [StringKind ! ] ! | - | No description provided |
Example
Function KubectlCli.exec is not accessible from the kubectl module
Function KubectlCli.exec is not accessible from the kubectl module
Function KubectlCli.exec is not accessible from the kubectl module
Function KubectlCli.exec is not accessible from the kubectl module
container() 🔗
Container returns a container with the kubectl image and given config. The entrypoint is set to kubectl.
Return Type
Container !
Example
Function KubectlCli.container is not accessible from the kubectl module
Function KubectlCli.container is not accessible from the kubectl module
Function KubectlCli.container is not accessible from the kubectl module
Function KubectlCli.container is not accessible from the kubectl module