Dagger
Search

eksctl

No long description provided.

Installation

dagger install github.com/matipan/daggerverse/eksctl@v0.0.3

Entrypoint

Return Type
Eksctl !
Arguments
NameTypeDescription
versionString No description provided
awsCredsSecret !No description provided
awsProfileString !No description provided
awsConfigFile No description provided
clusterFile !No description provided
Example
func (m *myModule) example(awsCreds *Secret, awsProfile string, cluster *File) *Eksctl  {
	return dag.
			Eksctl(awsCreds, awsProfile, cluster)
}
@function
def example(aws_creds: dagger.Secret, aws_profile: str, cluster: dagger.File) -> dag.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@9971af69aa8d13d234b0a3fe06eadef82e5afdc4 call \
 --aws-creds env:MYSECRET --aws-profile string --cluster file:path cluster
func (m *myModule) example(awsCreds *Secret, awsProfile string, cluster *File) *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@9971af69aa8d13d234b0a3fe06eadef82e5afdc4 call \
 --aws-creds env:MYSECRET --aws-profile string --cluster file:path container
func (m *myModule) example(awsCreds *Secret, awsProfile string, cluster *File) *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
NameTypeDefault ValueDescription
ctrContainer !-No description provided
Example
dagger -m github.com/matipan/daggerverse/eksctl@9971af69aa8d13d234b0a3fe06eadef82e5afdc4 call \
 --aws-creds env:MYSECRET --aws-profile string --cluster file:path with-container --ctr IMAGE:TAG \
 exec --command string1 --command string2
func (m *myModule) example(awsCreds *Secret, awsProfile string, cluster *File, ctr *Container) *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) -> dag.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
NameTypeDefault ValueDescription
command[String ! ] !-No description provided
Example
dagger -m github.com/matipan/daggerverse/eksctl@9971af69aa8d13d234b0a3fe06eadef82e5afdc4 call \
 --aws-creds env:MYSECRET --aws-profile string --cluster file:path exec --command string1 --command string2
func (m *myModule) example(ctx context.Context, awsCreds *Secret, awsProfile string, cluster *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
NameTypeDefault ValueDescription
flags[String ! ] -No description provided
Example
dagger -m github.com/matipan/daggerverse/eksctl@9971af69aa8d13d234b0a3fe06eadef82e5afdc4 call \
 --aws-creds env:MYSECRET --aws-profile string --cluster file:path create
func (m *myModule) example(ctx context.Context, awsCreds *Secret, awsProfile string, cluster *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
NameTypeDefault ValueDescription
flags[String ! ] -No description provided
Example
dagger -m github.com/matipan/daggerverse/eksctl@9971af69aa8d13d234b0a3fe06eadef82e5afdc4 call \
 --aws-creds env:MYSECRET --aws-profile string --cluster file:path delete
func (m *myModule) example(ctx context.Context, awsCreds *Secret, awsProfile string, cluster *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@9971af69aa8d13d234b0a3fe06eadef82e5afdc4 call \
 --aws-creds env:MYSECRET --aws-profile string --cluster file:path kubeconfig
func (m *myModule) example(awsCreds *Secret, awsProfile string, cluster *File) *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()
}