Dagger
Search

pulumi-ops

No long description provided.

Installation

dagger install github.com/dictybase-docker/dagger-of-dcr/pulumi-ops@320e2dab141bc6c728f623e9ac4797aaf28b769e

Entrypoint

Return Type
PulumiOps
Example
func (m *myModule) example() *PulumiOps  {
	return dag.
			PulumiOps()
}
@function
def example() -> dag.PulumiOps:
	return (
		dag.pulumi_ops()
	)
@func()
example(): PulumiOps {
	return dag
		.pulumiOps()
}

Types

PulumiOps 🔗

PulumiOps represents the Pulumi operations configuration.

backend() 🔗

Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			PulumiOps().
			Backend(ctx)
}
@function
async def example() -> str:
	return await (
		dag.pulumi_ops()
		.backend()
	)
@func()
async example(): Promise<string> {
	return dag
		.pulumiOps()
		.backend()
}

version() 🔗

Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			PulumiOps().
			Version(ctx)
}
@function
async def example() -> str:
	return await (
		dag.pulumi_ops()
		.version()
	)
@func()
async example(): Promise<string> {
	return dag
		.pulumiOps()
		.version()
}

kubeConfig() 🔗

Return Type
File !
Example
func (m *myModule) example() *File  {
	return dag.
			PulumiOps().
			KubeConfig()
}
@function
def example() -> dagger.File:
	return (
		dag.pulumi_ops()
		.kube_config()
	)
@func()
example(): File {
	return dag
		.pulumiOps()
		.kubeConfig()
}

credentials() 🔗

Return Type
File !
Example
func (m *myModule) example() *File  {
	return dag.
			PulumiOps().
			Credentials()
}
@function
def example() -> dagger.File:
	return (
		dag.pulumi_ops()
		.credentials()
	)
@func()
example(): File {
	return dag
		.pulumiOps()
		.credentials()
}

withPulumi() 🔗

WithPulumi sets the Pulumi version for the PulumiOps instance.

Return Type
PulumiOps !
Arguments
NameTypeDefault ValueDescription
versionString !"3.108.0"pulumi version
Example
func (m *myModule) example(version string) *PulumiOps  {
	return dag.
			PulumiOps().
			WithPulumi(version)
}
@function
def example(version: str) -> dag.PulumiOps:
	return (
		dag.pulumi_ops()
		.with_pulumi(version)
	)
@func()
example(version: string): PulumiOps {
	return dag
		.pulumiOps()
		.withPulumi(version)
}

withBackend() 🔗

WithBackend sets the backend for storing state for the PulumiOps instance.

Return Type
PulumiOps !
Arguments
NameTypeDefault ValueDescription
backendString !-pulumi backend for storing state, required
Example
func (m *myModule) example(backend string) *PulumiOps  {
	return dag.
			PulumiOps().
			WithBackend(backend)
}
@function
def example(backend: str) -> dag.PulumiOps:
	return (
		dag.pulumi_ops()
		.with_backend(backend)
	)
@func()
example(backend: string): PulumiOps {
	return dag
		.pulumiOps()
		.withBackend(backend)
}

withCredentials() 🔗

WithCredentials sets the credentials file for the PulumiOps instance.

Return Type
PulumiOps !
Arguments
NameTypeDefault ValueDescription
credentialsFile !-credentials file(google cloud for the time being), required
Example
func (m *myModule) example(credentials *File) *PulumiOps  {
	return dag.
			PulumiOps().
			WithCredentials(credentials)
}
@function
def example(credentials: dagger.File) -> dag.PulumiOps:
	return (
		dag.pulumi_ops()
		.with_credentials(credentials)
	)
@func()
example(credentials: File): PulumiOps {
	return dag
		.pulumiOps()
		.withCredentials(credentials)
}

withKubeConfig() 🔗

WithKubeConfig sets the Kubernetes configuration file for the PulumiOps instance.

Return Type
PulumiOps !
Arguments
NameTypeDefault ValueDescription
configFile !-kubernetes configuration file, required
Example
func (m *myModule) example(config *File) *PulumiOps  {
	return dag.
			PulumiOps().
			WithKubeConfig(config)
}
@function
def example(config: dagger.File) -> dag.PulumiOps:
	return (
		dag.pulumi_ops()
		.with_kube_config(config)
	)
@func()
example(config: File): PulumiOps {
	return dag
		.pulumiOps()
		.withKubeConfig(config)
}

pulumiContainer() 🔗

PulumiContainer returns a container with the specified Pulumi version.

Return Type
Container !
Example
func (m *myModule) example() *Container  {
	return dag.
			PulumiOps().
			PulumiContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.pulumi_ops()
		.pulumi_container()
	)
@func()
example(): Container {
	return dag
		.pulumiOps()
		.pulumiContainer()
}

login() 🔗

Login logs into the Pulumi backend using the provided credentials.

Return Type
Container !
Example
func (m *myModule) example() *Container  {
	return dag.
			PulumiOps().
			Login()
}
@function
def example() -> dagger.Container:
	return (
		dag.pulumi_ops()
		.login()
	)
@func()
example(): Container {
	return dag
		.pulumiOps()
		.login()
}

kubeAccess() 🔗

KubeAccess sets up Kubernetes access using the provided kubeconfig file.

Return Type
Container !
Example
func (m *myModule) example() *Container  {
	return dag.
			PulumiOps().
			KubeAccess()
}
@function
def example() -> dagger.Container:
	return (
		dag.pulumi_ops()
		.kube_access()
	)
@func()
example(): Container {
	return dag
		.pulumiOps()
		.kubeAccess()
}

deployApp() 🔗

DeployApp deploys a dictycr application using Pulumi configurations and specified parameters.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
projectString !"backend_application"project folder under src that has to be deployed
appString !-application that has to be deployed,required
tagString !-image tag that has to deployed, required
stackString !"dev"pulumi stack name
Example
func (m *myModule) example(ctx context.Context, project string, app string, tag string, stack string) string  {
	return dag.
			PulumiOps().
			DeployApp(ctx, project, app, tag, stack)
}
@function
async def example(project: str, app: str, tag: str, stack: str) -> str:
	return await (
		dag.pulumi_ops()
		.deploy_app(project, app, tag, stack)
	)
@func()
async example(project: string, app: string, tag: string, stack: string): Promise<string> {
	return dag
		.pulumiOps()
		.deployApp(project, app, tag, stack)
}