eksctl
No long description provided.
Installation
dagger install github.com/matipan/daggerverse/eksctl@v0.0.1
Entrypoint
Return Type
Eksctl !
Arguments
Name | Type | Description |
---|---|---|
version | String | No description provided |
awsCreds | File ! | No description provided |
awsProfile | String ! | No description provided |
cluster | File ! | No description provided |
Example
dagger -m github.com/matipan/daggerverse/eksctl@37bba13a2958017fe51123ce760ca6208a4792b0 call \
--aws-creds file:path --aws-profile string --cluster file:path
func (m *myModule) example(awsCreds *File, awsProfile string, cluster *File) *Eksctl {
return dag.
Eksctl(awsCreds, awsProfile, cluster)
}
@function
def example(aws_creds: dagger.File, aws_profile: str, cluster: dagger.File) -> dag.Eksctl:
return (
dag.eksctl(aws_creds, aws_profile, cluster)
)
@func()
example(awsCreds: File, 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@37bba13a2958017fe51123ce760ca6208a4792b0 call \
--aws-creds file:path --aws-profile string --cluster file:path cluster
func (m *myModule) example(awsCreds *File, awsProfile string, cluster *File) *File {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Cluster()
}
@function
def example(aws_creds: dagger.File, aws_profile: str, cluster: dagger.File) -> dagger.File:
return (
dag.eksctl(aws_creds, aws_profile, cluster)
.cluster()
)
@func()
example(awsCreds: File, awsProfile: string, cluster: File): File {
return dag
.eksctl(awsCreds, awsProfile, cluster)
.cluster()
}
container() 🔗
Return Type
Container !
Example
dagger -m github.com/matipan/daggerverse/eksctl@37bba13a2958017fe51123ce760ca6208a4792b0 call \
--aws-creds file:path --aws-profile string --cluster file:path container
func (m *myModule) example(awsCreds *File, awsProfile string, cluster *File) *Container {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Container()
}
@function
def example(aws_creds: dagger.File, aws_profile: str, cluster: dagger.File) -> dagger.Container:
return (
dag.eksctl(aws_creds, aws_profile, cluster)
.container()
)
@func()
example(awsCreds: File, 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@37bba13a2958017fe51123ce760ca6208a4792b0 call \
--aws-creds file:path --aws-profile string --cluster file:path with-container --ctr IMAGE:TAG
func (m *myModule) example(awsCreds *File, awsProfile string, cluster *File, ctr *Container) *Eksctl {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
WithContainer(ctr)
}
@function
def example(aws_creds: dagger.File, aws_profile: str, cluster: dagger.File, ctr: dagger.Container) -> dag.Eksctl:
return (
dag.eksctl(aws_creds, aws_profile, cluster)
.with_container(ctr)
)
@func()
example(awsCreds: File, 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@37bba13a2958017fe51123ce760ca6208a4792b0 call \
--aws-creds file:path --aws-profile string --cluster file:path exec --command string1 --command string2
func (m *myModule) example(ctx context.Context, awsCreds *File, awsProfile string, cluster *File, command []string) string {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Exec(ctx, command)
}
@function
async def example(aws_creds: dagger.File, 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: File, 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@37bba13a2958017fe51123ce760ca6208a4792b0 call \
--aws-creds file:path --aws-profile string --cluster file:path create
func (m *myModule) example(ctx context.Context, awsCreds *File, awsProfile string, cluster *File) string {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Create(ctx)
}
@function
async def example(aws_creds: dagger.File, aws_profile: str, cluster: dagger.File) -> str:
return await (
dag.eksctl(aws_creds, aws_profile, cluster)
.create()
)
@func()
async example(awsCreds: File, 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@37bba13a2958017fe51123ce760ca6208a4792b0 call \
--aws-creds file:path --aws-profile string --cluster file:path delete
func (m *myModule) example(ctx context.Context, awsCreds *File, awsProfile string, cluster *File) string {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Delete(ctx)
}
@function
async def example(aws_creds: dagger.File, aws_profile: str, cluster: dagger.File) -> str:
return await (
dag.eksctl(aws_creds, aws_profile, cluster)
.delete()
)
@func()
async example(awsCreds: File, 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@37bba13a2958017fe51123ce760ca6208a4792b0 call \
--aws-creds file:path --aws-profile string --cluster file:path kubeconfig
func (m *myModule) example(awsCreds *File, awsProfile string, cluster *File) *File {
return dag.
Eksctl(awsCreds, awsProfile, cluster).
Kubeconfig()
}
@function
def example(aws_creds: dagger.File, aws_profile: str, cluster: dagger.File) -> dagger.File:
return (
dag.eksctl(aws_creds, aws_profile, cluster)
.kubeconfig()
)
@func()
example(awsCreds: File, awsProfile: string, cluster: File): File {
return dag
.eksctl(awsCreds, awsProfile, cluster)
.kubeconfig()
}