Dagger
Search

kubectl

No long description provided.

Installation

dagger install github.com/aweris/daggerverse/kubectl@a77e1a3398109f46a6d7d01cee33e59dd653a774

Entrypoint

Return Type
Kubectl
Example
func (m *myModule) example() *Kubectl  {
	return dag.
			Kubectl()
}

Types

Kubectl 🔗

cli() 🔗

Cli returns a kubectl cli with the given config.

Return Type
Cli !
Arguments
NameTypeDefault ValueDescription
configFile !-No description provided
Example
func (m *myModule) example(config )   {
	return dag.
			Kubectl().
			Cli(config)
}

Cli 🔗

config() 🔗

Return Type
File !
Example
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
NameTypeDefault ValueDescription
args[StringKind ! ] !-No description provided
Example
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