Dagger
Search

kubernetes

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/stuttgart-things/dagger/kubernetes@v0.40.0

Entrypoint

Return Type
Kubernetes
Example
dagger -m github.com/stuttgart-things/dagger/kubernetes@5e08b6ace4d0c4b146ff2213f8e75b95a1625432 call \
func (m *MyModule) Example() *dagger.Kubernetes  {
	return dag.
			Kubernetes()
}
@function
def example() -> dagger.Kubernetes:
	return (
		dag.kubernetes()
	)
@func()
example(): Kubernetes {
	return dag
		.kubernetes()
}

Types

Kubernetes 🔗

baseImage() 🔗

Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/kubernetes@5e08b6ace4d0c4b146ff2213f8e75b95a1625432 call \
 base-image
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Kubernetes().
			BaseImage(ctx)
}
@function
async def example() -> str:
	return await (
		dag.kubernetes()
		.base_image()
	)
@func()
async example(): Promise<string> {
	return dag
		.kubernetes()
		.baseImage()
}

command() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
operationString "get"src *dagger.Directory,
resourceKindString "pods"No description provided
namespaceString -No description provided
kubeConfigSecret -No description provided
additionalCommandString -No description provided
Example
dagger -m github.com/stuttgart-things/dagger/kubernetes@5e08b6ace4d0c4b146ff2213f8e75b95a1625432 call \
 command
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Kubernetes().
			Command(ctx)
}
@function
async def example() -> str:
	return await (
		dag.kubernetes()
		.command()
	)
@func()
async example(): Promise<string> {
	return dag
		.kubernetes()
		.command()
}