Dagger
Search

kind

No long description provided.

Installation

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

Entrypoint

Return Type
Kind
Example
func (m *myModule) example() *Kind  {
	return dag.
			Kind()
}
@function
def example() -> dag.Kind:
	return (
		dag.kind()
	)
@func()
example(): Kind {
	return dag
		.kind()
}

Types

Kind

cli()

Cli returns a container with the kind binary installed.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
dockerHostStringKind -No description provided
Example
Function Kind.cli is not accessible from the kind module
func (m *myModule) example()   {
	return dag.
			Kind().
			Cli()
}
@function
def example() -> :
	return (
		dag.kind()
		.cli()
	)
@func()
example():  {
	return dag
		.kind()
		.cli()
}

connect()

Connect returns a container with the kubeconfig file mounted to be able to access the given cluster. If the cluster doesn’t exist, it returns an error.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
nameStringKind -No description provided
dockerHostStringKind -No description provided
Example
Function Kind.connect is not accessible from the kind module
func (m *myModule) example()   {
	return dag.
			Kind().
			Connect()
}
@function
def example() -> :
	return (
		dag.kind()
		.connect()
	)
@func()
example():  {
	return dag
		.kind()
		.connect()
}

cluster()

Cluster returns the cluster with the given name. If no name is given, the default name, kind, is used. If a cluster already exists with the given name, it marks the cluster as existing to avoid creating it again.

Return Type
Cluster !
Arguments
NameTypeDefault ValueDescription
nameStringKind -No description provided
dockerHostStringKind -No description provided
Example
Function Kind.cluster is not accessible from the kind module
func (m *myModule) example()   {
	return dag.
			Kind().
			Cluster()
}
@function
def example() -> :
	return (
		dag.kind()
		.cluster()
	)
@func()
example():  {
	return dag
		.kind()
		.cluster()
}

Cluster

name()

Return Type
StringKind !
Example
Function KindCluster.Name is not accessible from the kind module
Function KindCluster.Name is not accessible from the kind module
Function KindCluster.Name is not accessible from the kind module
Function KindCluster.Name is not accessible from the kind module

network()

Return Type
StringKind !
Example
Function KindCluster.Network is not accessible from the kind module
Function KindCluster.Network is not accessible from the kind module
Function KindCluster.Network is not accessible from the kind module
Function KindCluster.Network is not accessible from the kind module

exists()

Return Type
BooleanKind !
Example
Function KindCluster.Exists is not accessible from the kind module
Function KindCluster.Exists is not accessible from the kind module
Function KindCluster.Exists is not accessible from the kind module
Function KindCluster.Exists is not accessible from the kind module

dockerHost()

Return Type
StringKind !
Example
Function KindCluster.DockerHost is not accessible from the kind module
Function KindCluster.DockerHost is not accessible from the kind module
Function KindCluster.DockerHost is not accessible from the kind module
Function KindCluster.DockerHost is not accessible from the kind module

create()

Create creates the cluster if it doesn’t already exist.

Return Type
StringKind !
Example
Function KindCluster.create is not accessible from the kind module
Function KindCluster.create is not accessible from the kind module
Function KindCluster.create is not accessible from the kind module
Function KindCluster.create is not accessible from the kind module

kubeconfig()

Kubeconfig returns the kubeconfig file for the cluster. If internal is true, the internal address is used. Otherwise, the external address is used in the kubeconfig. Internal config is useful for running kubectl commands from within other containers.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
internalBooleanKind -No description provided
Example
Function KindCluster.kubeconfig is not accessible from the kind module
Function KindCluster.kubeconfig is not accessible from the kind module
Function KindCluster.kubeconfig is not accessible from the kind module
Function KindCluster.kubeconfig is not accessible from the kind module

logs()

Logs returns the directory containing the cluster logs.

Return Type
Directory !
Example
Function KindCluster.logs is not accessible from the kind module
Function KindCluster.logs is not accessible from the kind module
Function KindCluster.logs is not accessible from the kind module
Function KindCluster.logs is not accessible from the kind module

delete()

Delete deletes the cluster if it exists.

Return Type
StringKind !
Example
Function KindCluster.delete is not accessible from the kind module
Function KindCluster.delete is not accessible from the kind module
Function KindCluster.delete is not accessible from the kind module
Function KindCluster.delete is not accessible from the kind module