Dagger
Search

kubectl

No long description provided.

Installation

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

Entrypoint

Return Type
Kubectl
Example
dagger -m github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51 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 🔗

config() 🔗

Return Type
File !
Example
dagger -m github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51 call \
 config
func (m *myModule) example()   {
	return dag.
			Kubectl().
			Config()
}
@function
def example() -> :
	return (
		dag.kubectl()
		.config()
	)
@func()
example():  {
	return dag
		.kubectl()
		.config()
}

withConfig() 🔗

WithConfig sets the kubectl config to use.

Return Type
Kubectl !
Arguments
NameTypeDefault ValueDescription
configFile !-No description provided
Example
dagger -m github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51 call \
 with-config
func (m *myModule) example(config )   {
	return dag.
			Kubectl().
			WithConfig(config)
}
@function
def example(config: ) -> :
	return (
		dag.kubectl()
		.with_config(config)
	)
@func()
example(config: ):  {
	return dag
		.kubectl()
		.withConfig(config)
}

withRawConfig() 🔗

WithRawConfig sets the kubectl config to use with the given contents.

Return Type
Kubectl !
Arguments
NameTypeDefault ValueDescription
contentsStringKind !-No description provided
Example
dagger -m github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51 call \
 with-raw-config
func (m *myModule) example(contents )   {
	return dag.
			Kubectl().
			WithRawConfig(contents)
}
@function
def example(contents: ) -> :
	return (
		dag.kubectl()
		.with_raw_config(contents)
	)
@func()
example(contents: ):  {
	return dag
		.kubectl()
		.withRawConfig(contents)
}

exec() 🔗

Exec executes the given kubectl command and returns the stdout.

Return Type
StringKind !
Arguments
NameTypeDefault ValueDescription
args[StringKind ! ] !-No description provided
Example
dagger -m github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51 call \
 exec
func (m *myModule) example(args )   {
	return dag.
			Kubectl().
			Exec(args)
}
@function
def example(args: ) -> :
	return (
		dag.kubectl()
		.exec(args)
	)
@func()
example(args: ):  {
	return dag
		.kubectl()
		.exec(args)
}

container() 🔗

Container returns a container with the kubectl image and given config. The entrypoint is set to kubectl.

Return Type
Container !
Example
dagger -m github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51 call \
 container
func (m *myModule) example()   {
	return dag.
			Kubectl().
			Container()
}
@function
def example() -> :
	return (
		dag.kubectl()
		.container()
	)
@func()
example():  {
	return dag
		.kubectl()
		.container()
}