Dagger
Search

kops

using Kops and kubectl binaries. It includes methods to configure the Kops
environment, export kubeconfig files, and set various parameters such as cluster
name, state storage, and credentials.

Installation

dagger install github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9

Entrypoint

Return Type
Kops
Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
func (m *MyModule) Example() *dagger.Kops  {
	return dag.
			Kops()
}
@function
def example() -> dagger.Kops:
	return (
		dag.kops()
	)
@func()
example(): Kops {
	return dag
		.kops()
}

Types

Kops 🔗

kubectl() 🔗

Return Type
String !
Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 kubectl
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Kops().
			Kubectl(ctx)
}
@function
async def example() -> str:
	return await (
		dag.kops()
		.kubectl()
	)
@func()
async example(): Promise<string> {
	return dag
		.kops()
		.kubectl()
}

kopsV() 🔗

Return Type
String !
Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 kops-v
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Kops().
			Kopsv(ctx)
}
@function
async def example() -> str:
	return await (
		dag.kops()
		.kopsv()
	)
@func()
async example(): Promise<string> {
	return dag
		.kops()
		.kopsV()
}

cluster() 🔗

Return Type
String !
Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 cluster
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Kops().
			Cluster(ctx)
}
@function
async def example() -> str:
	return await (
		dag.kops()
		.cluster()
	)
@func()
async example(): Promise<string> {
	return dag
		.kops()
		.cluster()
}

storage() 🔗

Return Type
String !
Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 storage
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Kops().
			Storage(ctx)
}
@function
async def example() -> str:
	return await (
		dag.kops()
		.storage()
	)
@func()
async example(): Promise<string> {
	return dag
		.kops()
		.storage()
}

name() 🔗

Return Type
String !
Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 name
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Kops().
			Name(ctx)
}
@function
async def example() -> str:
	return await (
		dag.kops()
		.name()
	)
@func()
async example(): Promise<string> {
	return dag
		.kops()
		.name()
}

credentials() 🔗

Return Type
File !
Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 credentials
func (m *MyModule) Example() *dagger.File  {
	return dag.
			Kops().
			Credentials()
}
@function
def example() -> dagger.File:
	return (
		dag.kops()
		.credentials()
	)
@func()
example(): File {
	return dag
		.kops()
		.credentials()
}

exportKubectl() 🔗

ExportKubectl exports the kubeconfig file for the specified Kops cluster to a specified output path

Return Type
File !
Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 export-kubectl
func (m *MyModule) Example() *dagger.File  {
	return dag.
			Kops().
			Exportkubectl()
}
@function
def example() -> dagger.File:
	return (
		dag.kops()
		.exportkubectl()
	)
@func()
example(): File {
	return dag
		.kops()
		.exportKubectl()
}

kopsContainer() 🔗

KopsContainer sets up a container with specified versions of kubectl and kops binaries from given URLs

Return Type
Container !
Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 kops-container
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			Kops().
			Kopscontainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.kops()
		.kopscontainer()
	)
@func()
example(): Container {
	return dag
		.kops()
		.kopsContainer()
}

withCluster() 🔗

WithCluster sets the cluster name

Return Type
Kops !
Arguments
NameTypeDefault ValueDescription
nameString !-

cluster name, required

Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 with-cluster --name string
func (m *MyModule) Example(name string) *dagger.Kops  {
	return dag.
			Kops().
			Withcluster(name)
}
@function
def example(name: str) -> dagger.Kops:
	return (
		dag.kops()
		.withcluster(name)
	)
@func()
example(name: string): Kops {
	return dag
		.kops()
		.withCluster(name)
}

withCredentials() 🔗

WithCredentials sets the credentials file

Return Type
Kops !
Arguments
NameTypeDefault ValueDescription
credentialsFile !-

credentials file(google cloud for the time being), required

Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 with-credentials --credentials file:path
func (m *MyModule) Example(credentials *dagger.File) *dagger.Kops  {
	return dag.
			Kops().
			Withcredentials(credentials)
}
@function
def example(credentials: dagger.File) -> dagger.Kops:
	return (
		dag.kops()
		.withcredentials(credentials)
	)
@func()
example(credentials: File): Kops {
	return dag
		.kops()
		.withCredentials(credentials)
}

withKops() 🔗

WithKops sets the Kops version

Return Type
Kops !
Arguments
NameTypeDefault ValueDescription
versionString !"1.27.0"

kops version

Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 with-kops --version string
func (m *MyModule) Example(version string) *dagger.Kops  {
	return dag.
			Kops().
			Withkops(version)
}
@function
def example(version: str) -> dagger.Kops:
	return (
		dag.kops()
		.withkops(version)
	)
@func()
example(version: string): Kops {
	return dag
		.kops()
		.withKops(version)
}

withKubectl() 🔗

WithKubectl sets the kubectl version

Return Type
Kops !
Arguments
NameTypeDefault ValueDescription
versionString !"1.24.11"

kubectl version

Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 with-kubectl --version string
func (m *MyModule) Example(version string) *dagger.Kops  {
	return dag.
			Kops().
			Withkubectl(version)
}
@function
def example(version: str) -> dagger.Kops:
	return (
		dag.kops()
		.withkubectl(version)
	)
@func()
example(version: string): Kops {
	return dag
		.kops()
		.withKubectl(version)
}

withStateStorage() 🔗

WithStateStorage sets the location of the state storage

Return Type
Kops !
Arguments
NameTypeDefault ValueDescription
storageString !-

location of state storeage, required

Example
dagger -m github.com/dictybase-docker/dagger-of-dcr/kops@ec193076c2c8b188c1dd1b016d32198ee6cc0fc9 call \
 with-state-storage --storage string
func (m *MyModule) Example(storage string) *dagger.Kops  {
	return dag.
			Kops().
			Withstatestorage(storage)
}
@function
def example(storage: str) -> dagger.Kops:
	return (
		dag.kops()
		.withstatestorage(storage)
	)
@func()
example(storage: string): Kops {
	return dag
		.kops()
		.withStateStorage(storage)
}