kubectl
No long description provided.
Installation
dagger install github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51Entrypoint
Return Type
Kubectl Example
dagger -m github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51 call \
func (m *MyModule) Example() *dagger.Kubectl  {
	return dag.
			Kubectl()
}@function
def example() -> dagger.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 \
 configfunc (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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| config | File ! | - | No description provided | 
Example
dagger -m github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51 call \
 with-configfunc (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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| contents | StringKind ! | - | No description provided | 
Example
dagger -m github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51 call \
 with-raw-configfunc (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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| args | [StringKind ! ] ! | - | No description provided | 
Example
dagger -m github.com/aweris/daggerverse/kubectl@ecfdee7a22a1d995f739a4f1bc0ae0aad0caae51 call \
 execfunc (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 \
 containerfunc (m *MyModule) Example()   {
	return dag.
			Kubectl().
			Container()
}@function
def example() -> :
	return (
		dag.kubectl()
		.container()
	)@func()
example():  {
	return dag
		.kubectl()
		.container()
}