kind
No long description provided.
Installation
dagger install github.com/aweris/daggerverse/kind@a77e1a3398109f46a6d7d01cee33e59dd653a774Entrypoint
Return Type
Kind Example
dagger -m github.com/aweris/daggerverse/kind@a77e1a3398109f46a6d7d01cee33e59dd653a774 call \
func (m *MyModule) Example() *dagger.Kind {
return dag.
Kind()
}@function
def example() -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| dockerHost | StringKind | - | No description provided |
Example
dagger -m github.com/aweris/daggerverse/kind@a77e1a3398109f46a6d7d01cee33e59dd653a774 call \
clifunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | StringKind | - | No description provided |
| dockerHost | StringKind | - | No description provided |
Example
dagger -m github.com/aweris/daggerverse/kind@a77e1a3398109f46a6d7d01cee33e59dd653a774 call \
connectfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | StringKind | - | No description provided |
| dockerHost | StringKind | - | No description provided |
Example
dagger -m github.com/aweris/daggerverse/kind@a77e1a3398109f46a6d7d01cee33e59dd653a774 call \
clusterfunc (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 moduleFunction KindCluster.Name is not accessible from the kind moduleFunction KindCluster.Name is not accessible from the kind moduleFunction KindCluster.Name is not accessible from the kind modulenetwork() 🔗
Return Type
StringKind ! Example
Function KindCluster.Network is not accessible from the kind moduleFunction KindCluster.Network is not accessible from the kind moduleFunction KindCluster.Network is not accessible from the kind moduleFunction KindCluster.Network is not accessible from the kind moduleexists() 🔗
Return Type
BooleanKind ! Example
Function KindCluster.Exists is not accessible from the kind moduleFunction KindCluster.Exists is not accessible from the kind moduleFunction KindCluster.Exists is not accessible from the kind moduleFunction KindCluster.Exists is not accessible from the kind moduledockerHost() 🔗
Return Type
StringKind ! Example
Function KindCluster.DockerHost is not accessible from the kind moduleFunction KindCluster.DockerHost is not accessible from the kind moduleFunction KindCluster.DockerHost is not accessible from the kind moduleFunction KindCluster.DockerHost is not accessible from the kind modulecreate() 🔗
Create creates the cluster if it doesn’t already exist.
Return Type
StringKind ! Example
Function KindCluster.create is not accessible from the kind moduleFunction KindCluster.create is not accessible from the kind moduleFunction KindCluster.create is not accessible from the kind moduleFunction KindCluster.create is not accessible from the kind modulekubeconfig() 🔗
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
| Name | Type | Default Value | Description |
|---|---|---|---|
| internal | BooleanKind | - | No description provided |
Example
Function KindCluster.kubeconfig is not accessible from the kind moduleFunction KindCluster.kubeconfig is not accessible from the kind moduleFunction KindCluster.kubeconfig is not accessible from the kind moduleFunction KindCluster.kubeconfig is not accessible from the kind modulelogs() 🔗
Logs returns the directory containing the cluster logs.
Return Type
Directory ! Example
Function KindCluster.logs is not accessible from the kind moduleFunction KindCluster.logs is not accessible from the kind moduleFunction KindCluster.logs is not accessible from the kind moduleFunction KindCluster.logs is not accessible from the kind moduledelete() 🔗
Delete deletes the cluster if it exists.
Return Type
StringKind ! Example
Function KindCluster.delete is not accessible from the kind moduleFunction KindCluster.delete is not accessible from the kind moduleFunction KindCluster.delete is not accessible from the kind moduleFunction KindCluster.delete is not accessible from the kind module