eksctl
This module has been generated via dagger init and serves as a reference tobasic 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/matipan/daggerverse/eksctl@v0.0.4Entrypoint
Return Type
Eksctl !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | "latest" | No description provided |
| awsCreds | Secret ! | - | No description provided |
| awsProfile | String ! | - | No description provided |
| awsConfig | File | - | No description provided |
| cluster | File ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/eksctl@84cbdbe89185ad94690a9ada1cdfb79f1878ecd7 call \
--aws-creds env:MYSECRET --aws-profile string --cluster file:pathfunc (m *MyModule) Example(awsCreds *dagger.Secret, awsProfile string, cluster *dagger.File) *dagger.Eksctl {
return dag.
Eksctl(awsCreds, awsProfile, cluster)
}@function
def example(aws_creds: dagger.Secret, aws_profile: str, cluster: dagger.File) -> dagger.Eksctl:
return (
dag.eksctl(aws_creds, aws_profile, cluster)
)@func()
example(awsCreds: Secret, awsProfile: string, cluster: File): Eksctl {
return dag
.eksctl(awsCreds, awsProfile, cluster)
}Types
Eksctl 🔗
cluster() 🔗
Return Type
File ! Example
dagger -m github.com/matipan/daggerverse/eksctl@84cbdbe89185ad94690a9ada1cdfb79f1878ecd7 call \
--aws-creds env:MYSECRET --aws-profile string --cluster file:path clusterfunc (m *MyModule) Example(awsCreds *dagger.Secret, awsProfile string, cluster *dagger.File) *dagger.File {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Cluster()
}@function
def example(aws_creds: dagger.Secret, aws_profile: str, cluster: dagger.File) -> dagger.File:
return (
dag.eksctl(aws_creds, aws_profile, cluster)
.cluster()
)@func()
example(awsCreds: Secret, awsProfile: string, cluster: File): File {
return dag
.eksctl(awsCreds, awsProfile, cluster)
.cluster()
}container() 🔗
Return Type
Container ! Example
dagger -m github.com/matipan/daggerverse/eksctl@84cbdbe89185ad94690a9ada1cdfb79f1878ecd7 call \
--aws-creds env:MYSECRET --aws-profile string --cluster file:path containerfunc (m *MyModule) Example(awsCreds *dagger.Secret, awsProfile string, cluster *dagger.File) *dagger.Container {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Container()
}@function
def example(aws_creds: dagger.Secret, aws_profile: str, cluster: dagger.File) -> dagger.Container:
return (
dag.eksctl(aws_creds, aws_profile, cluster)
.container()
)@func()
example(awsCreds: Secret, awsProfile: string, cluster: File): Container {
return dag
.eksctl(awsCreds, awsProfile, cluster)
.container()
}withContainer() 🔗
WithContainer allows you to modify the container used to run eksctl.
You should always use the existing eksctl.Container and add things on
top of it. This is the unsafe alternative to something like accepting a
function as a parameter that modifies the existing container.
See https://github.com/dagger/dagger/issues/6213 for more details.
Return Type
Eksctl !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/eksctl@84cbdbe89185ad94690a9ada1cdfb79f1878ecd7 call \
--aws-creds env:MYSECRET --aws-profile string --cluster file:path with-container --ctr IMAGE:TAGfunc (m *MyModule) Example(awsCreds *dagger.Secret, awsProfile string, cluster *dagger.File, ctr *dagger.Container) *dagger.Eksctl {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
WithContainer(ctr)
}@function
def example(aws_creds: dagger.Secret, aws_profile: str, cluster: dagger.File, ctr: dagger.Container) -> dagger.Eksctl:
return (
dag.eksctl(aws_creds, aws_profile, cluster)
.with_container(ctr)
)@func()
example(awsCreds: Secret, awsProfile: string, cluster: File, ctr: Container): Eksctl {
return dag
.eksctl(awsCreds, awsProfile, cluster)
.withContainer(ctr)
}exec() 🔗
Exec executes the eksctl command.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| command | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/eksctl@84cbdbe89185ad94690a9ada1cdfb79f1878ecd7 call \
--aws-creds env:MYSECRET --aws-profile string --cluster file:path exec --command string1 --command string2func (m *MyModule) Example(ctx context.Context, awsCreds *dagger.Secret, awsProfile string, cluster *dagger.File, command []string) string {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Exec(ctx, command)
}@function
async def example(aws_creds: dagger.Secret, aws_profile: str, cluster: dagger.File, command: List[str]) -> str:
return await (
dag.eksctl(aws_creds, aws_profile, cluster)
.exec(command)
)@func()
async example(awsCreds: Secret, awsProfile: string, cluster: File, command: string[]): Promise<string> {
return dag
.eksctl(awsCreds, awsProfile, cluster)
.exec(command)
}create() 🔗
Create calls eksctl create with the cluster config. Additional
flags can be provided in exec form.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| flags | [String ! ] | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/eksctl@84cbdbe89185ad94690a9ada1cdfb79f1878ecd7 call \
--aws-creds env:MYSECRET --aws-profile string --cluster file:path createfunc (m *MyModule) Example(ctx context.Context, awsCreds *dagger.Secret, awsProfile string, cluster *dagger.File) string {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Create(ctx)
}@function
async def example(aws_creds: dagger.Secret, aws_profile: str, cluster: dagger.File) -> str:
return await (
dag.eksctl(aws_creds, aws_profile, cluster)
.create()
)@func()
async example(awsCreds: Secret, awsProfile: string, cluster: File): Promise<string> {
return dag
.eksctl(awsCreds, awsProfile, cluster)
.create()
}delete() 🔗
DeleteCluster calls eksctl delete on the cluster config. Additional
flags can be provided in exec form.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| flags | [String ! ] | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/eksctl@84cbdbe89185ad94690a9ada1cdfb79f1878ecd7 call \
--aws-creds env:MYSECRET --aws-profile string --cluster file:path deletefunc (m *MyModule) Example(ctx context.Context, awsCreds *dagger.Secret, awsProfile string, cluster *dagger.File) string {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Delete(ctx)
}@function
async def example(aws_creds: dagger.Secret, aws_profile: str, cluster: dagger.File) -> str:
return await (
dag.eksctl(aws_creds, aws_profile, cluster)
.delete()
)@func()
async example(awsCreds: Secret, awsProfile: string, cluster: File): Promise<string> {
return dag
.eksctl(awsCreds, awsProfile, cluster)
.delete()
}kubeconfig() 🔗
Kubeconfig returns the kubeconfig of the cluster. To download it using Dagger’s
CLI you can call dagger download.
Return Type
File ! Example
dagger -m github.com/matipan/daggerverse/eksctl@84cbdbe89185ad94690a9ada1cdfb79f1878ecd7 call \
--aws-creds env:MYSECRET --aws-profile string --cluster file:path kubeconfigfunc (m *MyModule) Example(awsCreds *dagger.Secret, awsProfile string, cluster *dagger.File) *dagger.File {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Kubeconfig()
}@function
def example(aws_creds: dagger.Secret, aws_profile: str, cluster: dagger.File) -> dagger.File:
return (
dag.eksctl(aws_creds, aws_profile, cluster)
.kubeconfig()
)@func()
example(awsCreds: Secret, awsProfile: string, cluster: File): File {
return dag
.eksctl(awsCreds, awsProfile, cluster)
.kubeconfig()
}