From 13acd934b6221911d0c0ad86de0dc3e4a491d925 Mon Sep 17 00:00:00 2001 From: "pulumi-renovate[bot]" <189166143+pulumi-renovate[bot]@users.noreply.github.com> Date: Wed, 11 Feb 2026 10:27:46 +0000 Subject: [PATCH] Update first-party Pulumi dependencies (#760) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/pulumi/esc](https://redirect.github.com/pulumi/esc) | indirect | minor | `v0.21.0` -> `v0.22.0` | | [github.com/pulumi/pulumi/pkg/v3](https://redirect.github.com/pulumi/pulumi) | require | minor | `v3.219.0` -> `v3.220.0` | --- ### Release Notes
pulumi/esc (github.com/pulumi/esc) ### [`v0.22.0`](https://redirect.github.com/pulumi/esc/releases/tag/v0.22.0) [Compare Source](https://redirect.github.com/pulumi/esc/compare/v0.21.0...v0.22.0) ##### Improvements ##### Bug Fixes ##### Breaking changes
pulumi/pulumi (github.com/pulumi/pulumi/pkg/v3) ### [`v3.220.0`](https://redirect.github.com/pulumi/pulumi/releases/tag/v3.220.0) [Compare Source](https://redirect.github.com/pulumi/pulumi/compare/v3.219.0...v3.220.0) ##### 3.220.0 (2026-02-10) ##### Features - \[cli] Show environment variables that were set if a snapshot integrity error happens [#​21709](https://redirect.github.com/pulumi/pulumi/pull/21709) - \[cli/{install,package}] Use the Pulumi Cloud Registry by default to resolve package names - \[engine] Pass replacement trigger through to Construct [#​21408](https://redirect.github.com/pulumi/pulumi/pull/21408) - \[engine] Add EnvVarMappings resource option for provider resources, allowing environment variables to be remapped before being passed to the provider [#​21572](https://redirect.github.com/pulumi/pulumi/pull/21572) - \[pkg] BREAKING: Deprecate github.com/pulumi/pulumi/pkg/v3/codegen/dotnet in favor of github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3/codegen. This package will be removed from pulumi/pulumi soon! [#​21720](https://redirect.github.com/pulumi/pulumi/pull/21720) ##### Bug Fixes - \[cli] Retry `yarn install` when it fails (e.g. during `pulumi install`) [#​21707](https://redirect.github.com/pulumi/pulumi/pull/21707) - \[engine] Deal with errors in elided journal entries correctly [#​21576](https://redirect.github.com/pulumi/pulumi/pull/21576) - \[sdk/nodejs] Fix remote components with PULUMI_NODEJS_SKIP_COMPONENT_INPUTS - \[sdk/python] Fix `_LazyModule` to not trigger full module load for introspection attributes [#​21620](https://redirect.github.com/pulumi/pulumi/pull/21620) - \[sdkgen/python] Remove workaround for slow typechecking with MyPy and PyCharm [#​21722](https://redirect.github.com/pulumi/pulumi/pull/21722) ##### Miscellaneous - \[cli] Write logfile location if verbosity is >= 1 to stderr instead of stdout [#​21663](https://redirect.github.com/pulumi/pulumi/pull/21663)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - Monday through Friday ( * * * * 1-5 ) (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). --------- Co-authored-by: pulumi-renovate[bot] <189166143+pulumi-renovate[bot]@users.noreply.github.com> Co-authored-by: pulumi-bot Co-authored-by: Ian Wahbe --- examples/go/go.mod | 2 +- examples/go/go.sum | 4 +- go.mod | 7 +- go.sum | 14 +- provider/internal/provider.go | 2 +- sdk/go/dockerbuild/go.mod | 4 +- sdk/go/dockerbuild/go.sum | 8 +- sdk/python/pulumi_docker_build/_inputs.py | 1329 ++++++++++----------- 8 files changed, 645 insertions(+), 725 deletions(-) diff --git a/examples/go/go.mod b/examples/go/go.mod index 5559593..63e8fff 100644 --- a/examples/go/go.mod +++ b/examples/go/go.mod @@ -62,7 +62,7 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.21.0 // indirect + github.com/pulumi/esc v0.22.0 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.14.1 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect diff --git a/examples/go/go.sum b/examples/go/go.sum index 018b15c..82793ad 100644 --- a/examples/go/go.sum +++ b/examples/go/go.sum @@ -157,8 +157,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.21.0 h1:TR8Ff22SU+z8cooTmUKkmk2FltXW/wDPrIwI9BP88Vk= -github.com/pulumi/esc v0.21.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE= +github.com/pulumi/esc v0.22.0 h1:Kbk0kIPsoIu6vnLgKtiE8AKRfl8B8bg6adiQuwJiBjA= +github.com/pulumi/esc v0.22.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE= github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.12 h1:uzmw+0iic764m0Yvh4I/jRV1x3q49dVh5Ctq9RllsQ8= github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.12/go.mod h1:6zFMe786NvFDO03BVJwdw1R/Yms4F6vAU49iBHo8zbQ= github.com/pulumi/pulumi/sdk/v3 v3.209.0 h1:Ti0FohAset2HEgogTxTOWoyvQd2N2+pkTSIn5DW3W7s= diff --git a/go.mod b/go.mod index 22842d7..cc7a1e1 100644 --- a/go.mod +++ b/go.mod @@ -14,10 +14,11 @@ require ( github.com/muesli/reflow v0.3.0 github.com/otiai10/copy v1.14.0 github.com/pulumi/providertest v0.6.0 + github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.101.0 github.com/pulumi/pulumi-go-provider v1.3.0 github.com/pulumi/pulumi-java/pkg v1.16.0 - github.com/pulumi/pulumi/pkg/v3 v3.219.0 - github.com/pulumi/pulumi/sdk/v3 v3.219.0 + github.com/pulumi/pulumi/pkg/v3 v3.220.0 + github.com/pulumi/pulumi/sdk/v3 v3.220.0 github.com/regclient/regclient v0.7.1 github.com/sirupsen/logrus v1.9.3 github.com/spf13/afero v1.14.0 @@ -225,7 +226,7 @@ require ( github.com/prometheus/common v0.55.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.21.0 // indirect + github.com/pulumi/esc v0.22.0 // indirect github.com/pulumi/inflector v0.2.1 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.14.1 // indirect diff --git a/go.sum b/go.sum index 757ba3d..391b248 100644 --- a/go.sum +++ b/go.sum @@ -598,20 +598,22 @@ github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0leargg github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.21.0 h1:TR8Ff22SU+z8cooTmUKkmk2FltXW/wDPrIwI9BP88Vk= -github.com/pulumi/esc v0.21.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE= +github.com/pulumi/esc v0.22.0 h1:Kbk0kIPsoIu6vnLgKtiE8AKRfl8B8bg6adiQuwJiBjA= +github.com/pulumi/esc v0.22.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE= github.com/pulumi/inflector v0.2.1 h1:bqyiish3tq//vLeLiEstSFE5K7RNjy/ce47ed4QATu8= github.com/pulumi/inflector v0.2.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.6.0 h1:ZnefsbhkPE+BpKienHgb38P/6SEtXjjOXGGdMEUIOgk= github.com/pulumi/providertest v0.6.0/go.mod h1:OBpIGSQrw1FW9VNaHBtKCRxEoTISvx8JsxECmRqRgRQ= +github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.101.0 h1:1VGECdAuWEJ6cTsxFmpcUcpu0nBt9Ze8fHI/+1DgSio= +github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.101.0/go.mod h1:m3hX/6Ia3vYwLc5I/z+i4SH73q8Lu3xY8NLuS1JaTiw= github.com/pulumi/pulumi-go-provider v1.3.0 h1:y5vQal1PaxdwpNWk5OFqc/6yLPpNJNnA1eY80mnWaQ0= github.com/pulumi/pulumi-go-provider v1.3.0/go.mod h1:5k36le9qSSlcpHwkL56HQhSXTHskhHhrrJ+x4dsVavo= github.com/pulumi/pulumi-java/pkg v1.16.0 h1:8KCiIXWv2uxfIks0SdgOezyXg4HZIoPfHID9eMg4nuM= github.com/pulumi/pulumi-java/pkg v1.16.0/go.mod h1:VeMZ1s9LfXBypao4A1tRF3EB7fYnYZ1LwImyg6FBX0c= -github.com/pulumi/pulumi/pkg/v3 v3.219.0 h1:Tr1xOszG65cwFx+TDk3/McXdyKXOH5KIbuj/u4eIBzI= -github.com/pulumi/pulumi/pkg/v3 v3.219.0/go.mod h1:cxmMnghuTrmDGqO+kMTFisJQ5WTIfS+i01Eang6zKKI= -github.com/pulumi/pulumi/sdk/v3 v3.219.0 h1:OwTSwk1ZuOI4hQUdSccWuIAuqs4fL/FcppesPOAKHQ8= -github.com/pulumi/pulumi/sdk/v3 v3.219.0/go.mod h1:ZOBPPC2NZOZf729AdCX+CctfNc5SN6aJh0bdqNdzQC4= +github.com/pulumi/pulumi/pkg/v3 v3.220.0 h1:M2mg8ohi8HEceoub+5YSNxCgQ6WY/ycdeMzc0uZmlWI= +github.com/pulumi/pulumi/pkg/v3 v3.220.0/go.mod h1:RjLYZtdMcBn6qmAWF5HFy4Xw8U/nwsL9QdirtETkarU= +github.com/pulumi/pulumi/sdk/v3 v3.220.0 h1:TtdlW2VfvBWhFZSvaDN9lSUlSS4gGSdNWdca3RGPsBQ= +github.com/pulumi/pulumi/sdk/v3 v3.220.0/go.mod h1:UGWJOz25OiFIN0QH79UFij8mffH94TYebKUgy9Wvug0= github.com/redis/go-redis/v9 v9.7.0 h1:HhLSs+B6O021gwzl+locl0zEDnyNkxMtf/Z3NNBMa9E= github.com/redis/go-redis/v9 v9.7.0/go.mod h1:f6zhXITC7JUJIlPEiBOTXxJgPLdZcA93GewI7inzyWw= github.com/regclient/regclient v0.7.1 h1:qEsJrTmZd98fZKjueAbrZCSNGU+ifnr6xjlSAs3WOPs= diff --git a/provider/internal/provider.go b/provider/internal/provider.go index e3265a3..cd737a6 100644 --- a/provider/internal/provider.go +++ b/provider/internal/provider.go @@ -18,11 +18,11 @@ import ( "context" "fmt" + csgen "github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3/codegen" provider "github.com/pulumi/pulumi-go-provider" "github.com/pulumi/pulumi-go-provider/infer" pschema "github.com/pulumi/pulumi-go-provider/middleware/schema" "github.com/pulumi/pulumi-java/pkg/codegen/java" - csgen "github.com/pulumi/pulumi/pkg/v3/codegen/dotnet" gogen "github.com/pulumi/pulumi/pkg/v3/codegen/go" tsgen "github.com/pulumi/pulumi/pkg/v3/codegen/nodejs" pygen "github.com/pulumi/pulumi/pkg/v3/codegen/python" diff --git a/sdk/go/dockerbuild/go.mod b/sdk/go/dockerbuild/go.mod index ea5e2af..ae73041 100644 --- a/sdk/go/dockerbuild/go.mod +++ b/sdk/go/dockerbuild/go.mod @@ -4,7 +4,7 @@ go 1.24.7 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.219.0 + github.com/pulumi/pulumi/sdk/v3 v3.220.0 ) require ( @@ -63,7 +63,7 @@ require ( github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.21.0 // indirect + github.com/pulumi/esc v0.22.0 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.14.1 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect diff --git a/sdk/go/dockerbuild/go.sum b/sdk/go/dockerbuild/go.sum index bba2adc..97f93f8 100644 --- a/sdk/go/dockerbuild/go.sum +++ b/sdk/go/dockerbuild/go.sum @@ -160,10 +160,10 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.21.0 h1:TR8Ff22SU+z8cooTmUKkmk2FltXW/wDPrIwI9BP88Vk= -github.com/pulumi/esc v0.21.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE= -github.com/pulumi/pulumi/sdk/v3 v3.219.0 h1:OwTSwk1ZuOI4hQUdSccWuIAuqs4fL/FcppesPOAKHQ8= -github.com/pulumi/pulumi/sdk/v3 v3.219.0/go.mod h1:ZOBPPC2NZOZf729AdCX+CctfNc5SN6aJh0bdqNdzQC4= +github.com/pulumi/esc v0.22.0 h1:Kbk0kIPsoIu6vnLgKtiE8AKRfl8B8bg6adiQuwJiBjA= +github.com/pulumi/esc v0.22.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE= +github.com/pulumi/pulumi/sdk/v3 v3.220.0 h1:TtdlW2VfvBWhFZSvaDN9lSUlSS4gGSdNWdca3RGPsBQ= +github.com/pulumi/pulumi/sdk/v3 v3.220.0/go.mod h1:UGWJOz25OiFIN0QH79UFij8mffH94TYebKUgy9Wvug0= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= diff --git a/sdk/python/pulumi_docker_build/_inputs.py b/sdk/python/pulumi_docker_build/_inputs.py index fce0a5f..9339254 100644 --- a/sdk/python/pulumi_docker_build/_inputs.py +++ b/sdk/python/pulumi_docker_build/_inputs.py @@ -72,32 +72,27 @@ __all__ = [ 'SSHArgsDict', ] -MYPY = False +class BuildContextArgsDict(TypedDict): + location: pulumi.Input[_builtins.str] + """ + Resources to use for build context. -if not MYPY: - class BuildContextArgsDict(TypedDict): - location: pulumi.Input[_builtins.str] - """ - Resources to use for build context. + The location can be: + * A relative or absolute path to a local directory (`.`, `./app`, + `/app`, etc.). + * A remote URL of a Git repository, tarball, or plain text file + (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`, + etc.). + """ + named: NotRequired[pulumi.Input[Mapping[str, pulumi.Input['ContextArgsDict']]]] + """ + Additional build contexts to use. - The location can be: - * A relative or absolute path to a local directory (`.`, `./app`, - `/app`, etc.). - * A remote URL of a Git repository, tarball, or plain text file - (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`, - etc.). - """ - named: NotRequired[pulumi.Input[Mapping[str, pulumi.Input['ContextArgsDict']]]] - """ - Additional build contexts to use. + These contexts are accessed with `FROM name` or `--from=name` + statements when using Dockerfile 1.4+ syntax. - These contexts are accessed with `FROM name` or `--from=name` - statements when using Dockerfile 1.4+ syntax. - - Values can be local paths, HTTP URLs, or `docker-image://` images. - """ -elif False: - BuildContextArgsDict: TypeAlias = Mapping[str, Any] + Values can be local paths, HTTP URLs, or `docker-image://` images. + """ @pulumi.input_type class BuildContextArgs: @@ -161,19 +156,16 @@ class BuildContextArgs: pulumi.set(self, "named", value) -if not MYPY: - class BuilderConfigArgsDict(TypedDict): - name: NotRequired[pulumi.Input[_builtins.str]] - """ - Name of an existing buildx builder to use. +class BuilderConfigArgsDict(TypedDict): + name: NotRequired[pulumi.Input[_builtins.str]] + """ + Name of an existing buildx builder to use. - Only `docker-container`, `kubernetes`, or `remote` drivers are - supported. The legacy `docker` driver is not supported. + Only `docker-container`, `kubernetes`, or `remote` drivers are + supported. The legacy `docker` driver is not supported. - Equivalent to Docker's `--builder` flag. - """ -elif False: - BuilderConfigArgsDict: TypeAlias = Mapping[str, Any] + Equivalent to Docker's `--builder` flag. + """ @pulumi.input_type class BuilderConfigArgs: @@ -208,22 +200,19 @@ class BuilderConfigArgs: pulumi.set(self, "name", value) -if not MYPY: - class CacheFromAzureBlobArgsDict(TypedDict): - name: pulumi.Input[_builtins.str] - """ - The name of the cache image. - """ - account_url: NotRequired[pulumi.Input[_builtins.str]] - """ - Base URL of the storage account. - """ - secret_access_key: NotRequired[pulumi.Input[_builtins.str]] - """ - Blob storage account key. - """ -elif False: - CacheFromAzureBlobArgsDict: TypeAlias = Mapping[str, Any] +class CacheFromAzureBlobArgsDict(TypedDict): + name: pulumi.Input[_builtins.str] + """ + The name of the cache image. + """ + account_url: NotRequired[pulumi.Input[_builtins.str]] + """ + Base URL of the storage account. + """ + secret_access_key: NotRequired[pulumi.Input[_builtins.str]] + """ + Blob storage account key. + """ @pulumi.input_type class CacheFromAzureBlobArgs: @@ -279,23 +268,20 @@ class CacheFromAzureBlobArgs: pulumi.set(self, "secret_access_key", value) -if not MYPY: - class CacheFromGitHubActionsArgsDict(TypedDict): - """ - Recommended for use with GitHub Actions workflows. +class CacheFromGitHubActionsArgsDict(TypedDict): + """ + Recommended for use with GitHub Actions workflows. - An action like `crazy-max/ghaction-github-runtime` is recommended to expose - appropriate credentials to your GitHub workflow. - """ - scope: NotRequired[pulumi.Input[_builtins.str]] - """ - The scope to use for cache keys. Defaults to `buildkit`. + An action like `crazy-max/ghaction-github-runtime` is recommended to expose + appropriate credentials to your GitHub workflow. + """ + scope: NotRequired[pulumi.Input[_builtins.str]] + """ + The scope to use for cache keys. Defaults to `buildkit`. - This should be set if building and caching multiple images in one - workflow, otherwise caches will overwrite each other. - """ -elif False: - CacheFromGitHubActionsArgsDict: TypeAlias = Mapping[str, Any] + This should be set if building and caching multiple images in one + workflow, otherwise caches will overwrite each other. + """ @pulumi.input_type class CacheFromGitHubActionsArgs: @@ -332,18 +318,15 @@ class CacheFromGitHubActionsArgs: pulumi.set(self, "scope", value) -if not MYPY: - class CacheFromLocalArgsDict(TypedDict): - src: pulumi.Input[_builtins.str] - """ - Path of the local directory where cache gets imported from. - """ - digest: NotRequired[pulumi.Input[_builtins.str]] - """ - Digest of manifest to import. - """ -elif False: - CacheFromLocalArgsDict: TypeAlias = Mapping[str, Any] +class CacheFromLocalArgsDict(TypedDict): + src: pulumi.Input[_builtins.str] + """ + Path of the local directory where cache gets imported from. + """ + digest: NotRequired[pulumi.Input[_builtins.str]] + """ + Digest of manifest to import. + """ @pulumi.input_type class CacheFromLocalArgs: @@ -383,14 +366,11 @@ class CacheFromLocalArgs: pulumi.set(self, "digest", value) -if not MYPY: - class CacheFromRegistryArgsDict(TypedDict): - ref: pulumi.Input[_builtins.str] - """ - Fully qualified name of the cache image to import. - """ -elif False: - CacheFromRegistryArgsDict: TypeAlias = Mapping[str, Any] +class CacheFromRegistryArgsDict(TypedDict): + ref: pulumi.Input[_builtins.str] + """ + Fully qualified name of the cache image to import. + """ @pulumi.input_type class CacheFromRegistryArgs: @@ -414,50 +394,47 @@ class CacheFromRegistryArgs: pulumi.set(self, "ref", value) -if not MYPY: - class CacheFromS3ArgsDict(TypedDict): - bucket: pulumi.Input[_builtins.str] - """ - Name of the S3 bucket. - """ - region: pulumi.Input[_builtins.str] - """ - The geographic location of the bucket. Defaults to `$AWS_REGION`. - """ - access_key_id: NotRequired[pulumi.Input[_builtins.str]] - """ - Defaults to `$AWS_ACCESS_KEY_ID`. - """ - blobs_prefix: NotRequired[pulumi.Input[_builtins.str]] - """ - Prefix to prepend to blob filenames. - """ - endpoint_url: NotRequired[pulumi.Input[_builtins.str]] - """ - Endpoint of the S3 bucket. - """ - manifests_prefix: NotRequired[pulumi.Input[_builtins.str]] - """ - Prefix to prepend on manifest filenames. - """ - name: NotRequired[pulumi.Input[_builtins.str]] - """ - Name of the cache image. - """ - secret_access_key: NotRequired[pulumi.Input[_builtins.str]] - """ - Defaults to `$AWS_SECRET_ACCESS_KEY`. - """ - session_token: NotRequired[pulumi.Input[_builtins.str]] - """ - Defaults to `$AWS_SESSION_TOKEN`. - """ - use_path_style: NotRequired[pulumi.Input[_builtins.bool]] - """ - Uses `bucket` in the URL instead of hostname when `true`. - """ -elif False: - CacheFromS3ArgsDict: TypeAlias = Mapping[str, Any] +class CacheFromS3ArgsDict(TypedDict): + bucket: pulumi.Input[_builtins.str] + """ + Name of the S3 bucket. + """ + region: pulumi.Input[_builtins.str] + """ + The geographic location of the bucket. Defaults to `$AWS_REGION`. + """ + access_key_id: NotRequired[pulumi.Input[_builtins.str]] + """ + Defaults to `$AWS_ACCESS_KEY_ID`. + """ + blobs_prefix: NotRequired[pulumi.Input[_builtins.str]] + """ + Prefix to prepend to blob filenames. + """ + endpoint_url: NotRequired[pulumi.Input[_builtins.str]] + """ + Endpoint of the S3 bucket. + """ + manifests_prefix: NotRequired[pulumi.Input[_builtins.str]] + """ + Prefix to prepend on manifest filenames. + """ + name: NotRequired[pulumi.Input[_builtins.str]] + """ + Name of the cache image. + """ + secret_access_key: NotRequired[pulumi.Input[_builtins.str]] + """ + Defaults to `$AWS_SECRET_ACCESS_KEY`. + """ + session_token: NotRequired[pulumi.Input[_builtins.str]] + """ + Defaults to `$AWS_SESSION_TOKEN`. + """ + use_path_style: NotRequired[pulumi.Input[_builtins.bool]] + """ + Uses `bucket` in the URL instead of hostname when `true`. + """ @pulumi.input_type class CacheFromS3Args: @@ -632,43 +609,40 @@ class CacheFromS3Args: pulumi.set(self, "use_path_style", value) -if not MYPY: - class CacheFromArgsDict(TypedDict): - azblob: NotRequired[pulumi.Input['CacheFromAzureBlobArgsDict']] - """ - Upload build caches to Azure's blob storage service. - """ - disabled: NotRequired[pulumi.Input[_builtins.bool]] - """ - When `true` this entry will be excluded. Defaults to `false`. - """ - gha: NotRequired[pulumi.Input['CacheFromGitHubActionsArgsDict']] - """ - Recommended for use with GitHub Actions workflows. +class CacheFromArgsDict(TypedDict): + azblob: NotRequired[pulumi.Input['CacheFromAzureBlobArgsDict']] + """ + Upload build caches to Azure's blob storage service. + """ + disabled: NotRequired[pulumi.Input[_builtins.bool]] + """ + When `true` this entry will be excluded. Defaults to `false`. + """ + gha: NotRequired[pulumi.Input['CacheFromGitHubActionsArgsDict']] + """ + Recommended for use with GitHub Actions workflows. - An action like `crazy-max/ghaction-github-runtime` is recommended to - expose appropriate credentials to your GitHub workflow. - """ - local: NotRequired[pulumi.Input['CacheFromLocalArgsDict']] - """ - A simple backend which caches images on your local filesystem. - """ - raw: NotRequired[pulumi.Input[_builtins.str]] - """ - A raw string as you would provide it to the Docker CLI (e.g., - `type=inline`). - """ - registry: NotRequired[pulumi.Input['CacheFromRegistryArgsDict']] - """ - Upload build caches to remote registries. - """ - s3: NotRequired[pulumi.Input['CacheFromS3ArgsDict']] - """ - Upload build caches to AWS S3 or an S3-compatible services such as - MinIO. - """ -elif False: - CacheFromArgsDict: TypeAlias = Mapping[str, Any] + An action like `crazy-max/ghaction-github-runtime` is recommended to + expose appropriate credentials to your GitHub workflow. + """ + local: NotRequired[pulumi.Input['CacheFromLocalArgsDict']] + """ + A simple backend which caches images on your local filesystem. + """ + raw: NotRequired[pulumi.Input[_builtins.str]] + """ + A raw string as you would provide it to the Docker CLI (e.g., + `type=inline`). + """ + registry: NotRequired[pulumi.Input['CacheFromRegistryArgsDict']] + """ + Upload build caches to remote registries. + """ + s3: NotRequired[pulumi.Input['CacheFromS3ArgsDict']] + """ + Upload build caches to AWS S3 or an S3-compatible services such as + MinIO. + """ @pulumi.input_type class CacheFromArgs: @@ -799,30 +773,27 @@ class CacheFromArgs: pulumi.set(self, "s3", value) -if not MYPY: - class CacheToAzureBlobArgsDict(TypedDict): - name: pulumi.Input[_builtins.str] - """ - The name of the cache image. - """ - account_url: NotRequired[pulumi.Input[_builtins.str]] - """ - Base URL of the storage account. - """ - ignore_error: NotRequired[pulumi.Input[_builtins.bool]] - """ - Ignore errors caused by failed cache exports. - """ - mode: NotRequired[pulumi.Input['CacheMode']] - """ - The cache mode to use. Defaults to `min`. - """ - secret_access_key: NotRequired[pulumi.Input[_builtins.str]] - """ - Blob storage account key. - """ -elif False: - CacheToAzureBlobArgsDict: TypeAlias = Mapping[str, Any] +class CacheToAzureBlobArgsDict(TypedDict): + name: pulumi.Input[_builtins.str] + """ + The name of the cache image. + """ + account_url: NotRequired[pulumi.Input[_builtins.str]] + """ + Base URL of the storage account. + """ + ignore_error: NotRequired[pulumi.Input[_builtins.bool]] + """ + Ignore errors caused by failed cache exports. + """ + mode: NotRequired[pulumi.Input['CacheMode']] + """ + The cache mode to use. Defaults to `min`. + """ + secret_access_key: NotRequired[pulumi.Input[_builtins.str]] + """ + Blob storage account key. + """ @pulumi.input_type class CacheToAzureBlobArgs: @@ -914,31 +885,28 @@ class CacheToAzureBlobArgs: pulumi.set(self, "secret_access_key", value) -if not MYPY: - class CacheToGitHubActionsArgsDict(TypedDict): - """ - Recommended for use with GitHub Actions workflows. +class CacheToGitHubActionsArgsDict(TypedDict): + """ + Recommended for use with GitHub Actions workflows. - An action like `crazy-max/ghaction-github-runtime` is recommended to expose - appropriate credentials to your GitHub workflow. - """ - ignore_error: NotRequired[pulumi.Input[_builtins.bool]] - """ - Ignore errors caused by failed cache exports. - """ - mode: NotRequired[pulumi.Input['CacheMode']] - """ - The cache mode to use. Defaults to `min`. - """ - scope: NotRequired[pulumi.Input[_builtins.str]] - """ - The scope to use for cache keys. Defaults to `buildkit`. + An action like `crazy-max/ghaction-github-runtime` is recommended to expose + appropriate credentials to your GitHub workflow. + """ + ignore_error: NotRequired[pulumi.Input[_builtins.bool]] + """ + Ignore errors caused by failed cache exports. + """ + mode: NotRequired[pulumi.Input['CacheMode']] + """ + The cache mode to use. Defaults to `min`. + """ + scope: NotRequired[pulumi.Input[_builtins.str]] + """ + The scope to use for cache keys. Defaults to `buildkit`. - This should be set if building and caching multiple images in one - workflow, otherwise caches will overwrite each other. - """ -elif False: - CacheToGitHubActionsArgsDict: TypeAlias = Mapping[str, Any] + This should be set if building and caching multiple images in one + workflow, otherwise caches will overwrite each other. + """ @pulumi.input_type class CacheToGitHubActionsArgs: @@ -1011,14 +979,11 @@ class CacheToGitHubActionsArgs: pulumi.set(self, "scope", value) -if not MYPY: - class CacheToInlineArgsDict(TypedDict): - """ - Include an inline cache with the exported image. - """ - pass -elif False: - CacheToInlineArgsDict: TypeAlias = Mapping[str, Any] +class CacheToInlineArgsDict(TypedDict): + """ + Include an inline cache with the exported image. + """ + pass @pulumi.input_type class CacheToInlineArgs: @@ -1029,34 +994,31 @@ class CacheToInlineArgs: pass -if not MYPY: - class CacheToLocalArgsDict(TypedDict): - dest: pulumi.Input[_builtins.str] - """ - Path of the local directory to export the cache. - """ - compression: NotRequired[pulumi.Input['CompressionType']] - """ - The compression type to use. - """ - compression_level: NotRequired[pulumi.Input[_builtins.int]] - """ - Compression level from 0 to 22. - """ - force_compression: NotRequired[pulumi.Input[_builtins.bool]] - """ - Forcefully apply compression. - """ - ignore_error: NotRequired[pulumi.Input[_builtins.bool]] - """ - Ignore errors caused by failed cache exports. - """ - mode: NotRequired[pulumi.Input['CacheMode']] - """ - The cache mode to use. Defaults to `min`. - """ -elif False: - CacheToLocalArgsDict: TypeAlias = Mapping[str, Any] +class CacheToLocalArgsDict(TypedDict): + dest: pulumi.Input[_builtins.str] + """ + Path of the local directory to export the cache. + """ + compression: NotRequired[pulumi.Input['CompressionType']] + """ + The compression type to use. + """ + compression_level: NotRequired[pulumi.Input[_builtins.int]] + """ + Compression level from 0 to 22. + """ + force_compression: NotRequired[pulumi.Input[_builtins.bool]] + """ + Forcefully apply compression. + """ + ignore_error: NotRequired[pulumi.Input[_builtins.bool]] + """ + Ignore errors caused by failed cache exports. + """ + mode: NotRequired[pulumi.Input['CacheMode']] + """ + The cache mode to use. Defaults to `min`. + """ @pulumi.input_type class CacheToLocalArgs: @@ -1170,49 +1132,46 @@ class CacheToLocalArgs: pulumi.set(self, "mode", value) -if not MYPY: - class CacheToRegistryArgsDict(TypedDict): - ref: pulumi.Input[_builtins.str] - """ - Fully qualified name of the cache image to import. - """ - compression: NotRequired[pulumi.Input['CompressionType']] - """ - The compression type to use. - """ - compression_level: NotRequired[pulumi.Input[_builtins.int]] - """ - Compression level from 0 to 22. - """ - force_compression: NotRequired[pulumi.Input[_builtins.bool]] - """ - Forcefully apply compression. - """ - ignore_error: NotRequired[pulumi.Input[_builtins.bool]] - """ - Ignore errors caused by failed cache exports. - """ - image_manifest: NotRequired[pulumi.Input[_builtins.bool]] - """ - Export cache manifest as an OCI-compatible image manifest instead of a - manifest list. Requires `ociMediaTypes` to also be `true`. +class CacheToRegistryArgsDict(TypedDict): + ref: pulumi.Input[_builtins.str] + """ + Fully qualified name of the cache image to import. + """ + compression: NotRequired[pulumi.Input['CompressionType']] + """ + The compression type to use. + """ + compression_level: NotRequired[pulumi.Input[_builtins.int]] + """ + Compression level from 0 to 22. + """ + force_compression: NotRequired[pulumi.Input[_builtins.bool]] + """ + Forcefully apply compression. + """ + ignore_error: NotRequired[pulumi.Input[_builtins.bool]] + """ + Ignore errors caused by failed cache exports. + """ + image_manifest: NotRequired[pulumi.Input[_builtins.bool]] + """ + Export cache manifest as an OCI-compatible image manifest instead of a + manifest list. Requires `ociMediaTypes` to also be `true`. - Some registries like AWS ECR will not work with caching if this is - `false`. + Some registries like AWS ECR will not work with caching if this is + `false`. - Defaults to `false` to match Docker's default behavior. - """ - mode: NotRequired[pulumi.Input['CacheMode']] - """ - The cache mode to use. Defaults to `min`. - """ - oci_media_types: NotRequired[pulumi.Input[_builtins.bool]] - """ - Whether to use OCI media types in exported manifests. Defaults to - `true`. - """ -elif False: - CacheToRegistryArgsDict: TypeAlias = Mapping[str, Any] + Defaults to `false` to match Docker's default behavior. + """ + mode: NotRequired[pulumi.Input['CacheMode']] + """ + The cache mode to use. Defaults to `min`. + """ + oci_media_types: NotRequired[pulumi.Input[_builtins.bool]] + """ + Whether to use OCI media types in exported manifests. Defaults to + `true`. + """ @pulumi.input_type class CacheToRegistryArgs: @@ -1376,58 +1335,55 @@ class CacheToRegistryArgs: pulumi.set(self, "oci_media_types", value) -if not MYPY: - class CacheToS3ArgsDict(TypedDict): - bucket: pulumi.Input[_builtins.str] - """ - Name of the S3 bucket. - """ - region: pulumi.Input[_builtins.str] - """ - The geographic location of the bucket. Defaults to `$AWS_REGION`. - """ - access_key_id: NotRequired[pulumi.Input[_builtins.str]] - """ - Defaults to `$AWS_ACCESS_KEY_ID`. - """ - blobs_prefix: NotRequired[pulumi.Input[_builtins.str]] - """ - Prefix to prepend to blob filenames. - """ - endpoint_url: NotRequired[pulumi.Input[_builtins.str]] - """ - Endpoint of the S3 bucket. - """ - ignore_error: NotRequired[pulumi.Input[_builtins.bool]] - """ - Ignore errors caused by failed cache exports. - """ - manifests_prefix: NotRequired[pulumi.Input[_builtins.str]] - """ - Prefix to prepend on manifest filenames. - """ - mode: NotRequired[pulumi.Input['CacheMode']] - """ - The cache mode to use. Defaults to `min`. - """ - name: NotRequired[pulumi.Input[_builtins.str]] - """ - Name of the cache image. - """ - secret_access_key: NotRequired[pulumi.Input[_builtins.str]] - """ - Defaults to `$AWS_SECRET_ACCESS_KEY`. - """ - session_token: NotRequired[pulumi.Input[_builtins.str]] - """ - Defaults to `$AWS_SESSION_TOKEN`. - """ - use_path_style: NotRequired[pulumi.Input[_builtins.bool]] - """ - Uses `bucket` in the URL instead of hostname when `true`. - """ -elif False: - CacheToS3ArgsDict: TypeAlias = Mapping[str, Any] +class CacheToS3ArgsDict(TypedDict): + bucket: pulumi.Input[_builtins.str] + """ + Name of the S3 bucket. + """ + region: pulumi.Input[_builtins.str] + """ + The geographic location of the bucket. Defaults to `$AWS_REGION`. + """ + access_key_id: NotRequired[pulumi.Input[_builtins.str]] + """ + Defaults to `$AWS_ACCESS_KEY_ID`. + """ + blobs_prefix: NotRequired[pulumi.Input[_builtins.str]] + """ + Prefix to prepend to blob filenames. + """ + endpoint_url: NotRequired[pulumi.Input[_builtins.str]] + """ + Endpoint of the S3 bucket. + """ + ignore_error: NotRequired[pulumi.Input[_builtins.bool]] + """ + Ignore errors caused by failed cache exports. + """ + manifests_prefix: NotRequired[pulumi.Input[_builtins.str]] + """ + Prefix to prepend on manifest filenames. + """ + mode: NotRequired[pulumi.Input['CacheMode']] + """ + The cache mode to use. Defaults to `min`. + """ + name: NotRequired[pulumi.Input[_builtins.str]] + """ + Name of the cache image. + """ + secret_access_key: NotRequired[pulumi.Input[_builtins.str]] + """ + Defaults to `$AWS_SECRET_ACCESS_KEY`. + """ + session_token: NotRequired[pulumi.Input[_builtins.str]] + """ + Defaults to `$AWS_SESSION_TOKEN`. + """ + use_path_style: NotRequired[pulumi.Input[_builtins.bool]] + """ + Uses `bucket` in the URL instead of hostname when `true`. + """ @pulumi.input_type class CacheToS3Args: @@ -1638,49 +1594,46 @@ class CacheToS3Args: pulumi.set(self, "use_path_style", value) -if not MYPY: - class CacheToArgsDict(TypedDict): - azblob: NotRequired[pulumi.Input['CacheToAzureBlobArgsDict']] - """ - Push cache to Azure's blob storage service. - """ - disabled: NotRequired[pulumi.Input[_builtins.bool]] - """ - When `true` this entry will be excluded. Defaults to `false`. - """ - gha: NotRequired[pulumi.Input['CacheToGitHubActionsArgsDict']] - """ - Recommended for use with GitHub Actions workflows. +class CacheToArgsDict(TypedDict): + azblob: NotRequired[pulumi.Input['CacheToAzureBlobArgsDict']] + """ + Push cache to Azure's blob storage service. + """ + disabled: NotRequired[pulumi.Input[_builtins.bool]] + """ + When `true` this entry will be excluded. Defaults to `false`. + """ + gha: NotRequired[pulumi.Input['CacheToGitHubActionsArgsDict']] + """ + Recommended for use with GitHub Actions workflows. - An action like `crazy-max/ghaction-github-runtime` is recommended to - expose appropriate credentials to your GitHub workflow. - """ - inline: NotRequired[pulumi.Input['CacheToInlineArgsDict']] - """ - The inline cache storage backend is the simplest implementation to get - started with, but it does not handle multi-stage builds. Consider the - `registry` cache backend instead. - """ - local: NotRequired[pulumi.Input['CacheToLocalArgsDict']] - """ - A simple backend which caches imagines on your local filesystem. - """ - raw: NotRequired[pulumi.Input[_builtins.str]] - """ - A raw string as you would provide it to the Docker CLI (e.g., - `type=inline`) - """ - registry: NotRequired[pulumi.Input['CacheToRegistryArgsDict']] - """ - Push caches to remote registries. Incompatible with the `docker` build - driver. - """ - s3: NotRequired[pulumi.Input['CacheToS3ArgsDict']] - """ - Push cache to AWS S3 or S3-compatible services such as MinIO. - """ -elif False: - CacheToArgsDict: TypeAlias = Mapping[str, Any] + An action like `crazy-max/ghaction-github-runtime` is recommended to + expose appropriate credentials to your GitHub workflow. + """ + inline: NotRequired[pulumi.Input['CacheToInlineArgsDict']] + """ + The inline cache storage backend is the simplest implementation to get + started with, but it does not handle multi-stage builds. Consider the + `registry` cache backend instead. + """ + local: NotRequired[pulumi.Input['CacheToLocalArgsDict']] + """ + A simple backend which caches imagines on your local filesystem. + """ + raw: NotRequired[pulumi.Input[_builtins.str]] + """ + A raw string as you would provide it to the Docker CLI (e.g., + `type=inline`) + """ + registry: NotRequired[pulumi.Input['CacheToRegistryArgsDict']] + """ + Push caches to remote registries. Incompatible with the `docker` build + driver. + """ + s3: NotRequired[pulumi.Input['CacheToS3ArgsDict']] + """ + Push cache to AWS S3 or S3-compatible services such as MinIO. + """ @pulumi.input_type class CacheToArgs: @@ -1831,21 +1784,18 @@ class CacheToArgs: pulumi.set(self, "s3", value) -if not MYPY: - class ContextArgsDict(TypedDict): - location: pulumi.Input[_builtins.str] - """ - Resources to use for build context. +class ContextArgsDict(TypedDict): + location: pulumi.Input[_builtins.str] + """ + Resources to use for build context. - The location can be: - * A relative or absolute path to a local directory (`.`, `./app`, - `/app`, etc.). - * A remote URL of a Git repository, tarball, or plain text file - (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`, - etc.). - """ -elif False: - ContextArgsDict: TypeAlias = Mapping[str, Any] + The location can be: + * A relative or absolute path to a local directory (`.`, `./app`, + `/app`, etc.). + * A remote URL of a Git repository, tarball, or plain text file + (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`, + etc.). + """ @pulumi.input_type class ContextArgs: @@ -1883,28 +1833,25 @@ class ContextArgs: pulumi.set(self, "location", value) -if not MYPY: - class DockerfileArgsDict(TypedDict): - inline: NotRequired[pulumi.Input[_builtins.str]] - """ - Raw Dockerfile contents. +class DockerfileArgsDict(TypedDict): + inline: NotRequired[pulumi.Input[_builtins.str]] + """ + Raw Dockerfile contents. - Conflicts with `location`. + Conflicts with `location`. - Equivalent to invoking Docker with `-f -`. - """ - location: NotRequired[pulumi.Input[_builtins.str]] - """ - Location of the Dockerfile to use. + Equivalent to invoking Docker with `-f -`. + """ + location: NotRequired[pulumi.Input[_builtins.str]] + """ + Location of the Dockerfile to use. - Can be a relative or absolute path to a local file, or a remote URL. + Can be a relative or absolute path to a local file, or a remote URL. - Defaults to `${context.location}/Dockerfile` if context is on-disk. + Defaults to `${context.location}/Dockerfile` if context is on-disk. - Conflicts with `inline`. - """ -elif False: - DockerfileArgsDict: TypeAlias = Mapping[str, Any] + Conflicts with `inline`. + """ @pulumi.input_type class DockerfileArgs: @@ -1965,11 +1912,8 @@ class DockerfileArgs: pulumi.set(self, "location", value) -if not MYPY: - class ExportCacheOnlyArgsDict(TypedDict): - pass -elif False: - ExportCacheOnlyArgsDict: TypeAlias = Mapping[str, Any] +class ExportCacheOnlyArgsDict(TypedDict): + pass @pulumi.input_type class ExportCacheOnlyArgs: @@ -1977,42 +1921,39 @@ class ExportCacheOnlyArgs: pass -if not MYPY: - class ExportDockerArgsDict(TypedDict): - annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] - """ - Attach an arbitrary key/value annotation to the image. - """ - compression: NotRequired[pulumi.Input['CompressionType']] - """ - The compression type to use. - """ - compression_level: NotRequired[pulumi.Input[_builtins.int]] - """ - Compression level from 0 to 22. - """ - dest: NotRequired[pulumi.Input[_builtins.str]] - """ - The local export path. - """ - force_compression: NotRequired[pulumi.Input[_builtins.bool]] - """ - Forcefully apply compression. - """ - names: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] - """ - Specify images names to export. This is overridden if tags are already specified. - """ - oci_media_types: NotRequired[pulumi.Input[_builtins.bool]] - """ - Use OCI media types in exporter manifests. - """ - tar: NotRequired[pulumi.Input[_builtins.bool]] - """ - Bundle the output into a tarball layout. - """ -elif False: - ExportDockerArgsDict: TypeAlias = Mapping[str, Any] +class ExportDockerArgsDict(TypedDict): + annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] + """ + Attach an arbitrary key/value annotation to the image. + """ + compression: NotRequired[pulumi.Input['CompressionType']] + """ + The compression type to use. + """ + compression_level: NotRequired[pulumi.Input[_builtins.int]] + """ + Compression level from 0 to 22. + """ + dest: NotRequired[pulumi.Input[_builtins.str]] + """ + The local export path. + """ + force_compression: NotRequired[pulumi.Input[_builtins.bool]] + """ + Forcefully apply compression. + """ + names: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] + """ + Specify images names to export. This is overridden if tags are already specified. + """ + oci_media_types: NotRequired[pulumi.Input[_builtins.bool]] + """ + Use OCI media types in exporter manifests. + """ + tar: NotRequired[pulumi.Input[_builtins.bool]] + """ + Bundle the output into a tarball layout. + """ @pulumi.input_type class ExportDockerArgs: @@ -2159,69 +2100,66 @@ class ExportDockerArgs: pulumi.set(self, "tar", value) -if not MYPY: - class ExportImageArgsDict(TypedDict): - annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] - """ - Attach an arbitrary key/value annotation to the image. - """ - compression: NotRequired[pulumi.Input['CompressionType']] - """ - The compression type to use. - """ - compression_level: NotRequired[pulumi.Input[_builtins.int]] - """ - Compression level from 0 to 22. - """ - dangling_name_prefix: NotRequired[pulumi.Input[_builtins.str]] - """ - Name image with `prefix@`, used for anonymous images. - """ - force_compression: NotRequired[pulumi.Input[_builtins.bool]] - """ - Forcefully apply compression. - """ - insecure: NotRequired[pulumi.Input[_builtins.bool]] - """ - Allow pushing to an insecure registry. - """ - name_canonical: NotRequired[pulumi.Input[_builtins.bool]] - """ - Add additional canonical name (`name@`). - """ - names: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] - """ - Specify images names to export. This is overridden if tags are already specified. - """ - oci_media_types: NotRequired[pulumi.Input[_builtins.bool]] - """ - Use OCI media types in exporter manifests. - """ - push: NotRequired[pulumi.Input[_builtins.bool]] - """ - Push after creating the image. Defaults to `false`. - """ - push_by_digest: NotRequired[pulumi.Input[_builtins.bool]] - """ - Push image without name. - """ - store: NotRequired[pulumi.Input[_builtins.bool]] - """ - Store resulting images to the worker's image store and ensure all of - its blobs are in the content store. +class ExportImageArgsDict(TypedDict): + annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] + """ + Attach an arbitrary key/value annotation to the image. + """ + compression: NotRequired[pulumi.Input['CompressionType']] + """ + The compression type to use. + """ + compression_level: NotRequired[pulumi.Input[_builtins.int]] + """ + Compression level from 0 to 22. + """ + dangling_name_prefix: NotRequired[pulumi.Input[_builtins.str]] + """ + Name image with `prefix@`, used for anonymous images. + """ + force_compression: NotRequired[pulumi.Input[_builtins.bool]] + """ + Forcefully apply compression. + """ + insecure: NotRequired[pulumi.Input[_builtins.bool]] + """ + Allow pushing to an insecure registry. + """ + name_canonical: NotRequired[pulumi.Input[_builtins.bool]] + """ + Add additional canonical name (`name@`). + """ + names: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] + """ + Specify images names to export. This is overridden if tags are already specified. + """ + oci_media_types: NotRequired[pulumi.Input[_builtins.bool]] + """ + Use OCI media types in exporter manifests. + """ + push: NotRequired[pulumi.Input[_builtins.bool]] + """ + Push after creating the image. Defaults to `false`. + """ + push_by_digest: NotRequired[pulumi.Input[_builtins.bool]] + """ + Push image without name. + """ + store: NotRequired[pulumi.Input[_builtins.bool]] + """ + Store resulting images to the worker's image store and ensure all of + its blobs are in the content store. - Defaults to `true`. + Defaults to `true`. - Ignored if the worker doesn't have image store (when using OCI workers, - for example). - """ - unpack: NotRequired[pulumi.Input[_builtins.bool]] - """ - Unpack image after creation (for use with containerd). Defaults to - `false`. - """ -elif False: - ExportImageArgsDict: TypeAlias = Mapping[str, Any] + Ignored if the worker doesn't have image store (when using OCI workers, + for example). + """ + unpack: NotRequired[pulumi.Input[_builtins.bool]] + """ + Unpack image after creation (for use with containerd). Defaults to + `false`. + """ @pulumi.input_type class ExportImageArgs: @@ -2462,14 +2400,11 @@ class ExportImageArgs: pulumi.set(self, "unpack", value) -if not MYPY: - class ExportLocalArgsDict(TypedDict): - dest: pulumi.Input[_builtins.str] - """ - Output path. - """ -elif False: - ExportLocalArgsDict: TypeAlias = Mapping[str, Any] +class ExportLocalArgsDict(TypedDict): + dest: pulumi.Input[_builtins.str] + """ + Output path. + """ @pulumi.input_type class ExportLocalArgs: @@ -2493,42 +2428,39 @@ class ExportLocalArgs: pulumi.set(self, "dest", value) -if not MYPY: - class ExportOCIArgsDict(TypedDict): - annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] - """ - Attach an arbitrary key/value annotation to the image. - """ - compression: NotRequired[pulumi.Input['CompressionType']] - """ - The compression type to use. - """ - compression_level: NotRequired[pulumi.Input[_builtins.int]] - """ - Compression level from 0 to 22. - """ - dest: NotRequired[pulumi.Input[_builtins.str]] - """ - The local export path. - """ - force_compression: NotRequired[pulumi.Input[_builtins.bool]] - """ - Forcefully apply compression. - """ - names: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] - """ - Specify images names to export. This is overridden if tags are already specified. - """ - oci_media_types: NotRequired[pulumi.Input[_builtins.bool]] - """ - Use OCI media types in exporter manifests. - """ - tar: NotRequired[pulumi.Input[_builtins.bool]] - """ - Bundle the output into a tarball layout. - """ -elif False: - ExportOCIArgsDict: TypeAlias = Mapping[str, Any] +class ExportOCIArgsDict(TypedDict): + annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] + """ + Attach an arbitrary key/value annotation to the image. + """ + compression: NotRequired[pulumi.Input['CompressionType']] + """ + The compression type to use. + """ + compression_level: NotRequired[pulumi.Input[_builtins.int]] + """ + Compression level from 0 to 22. + """ + dest: NotRequired[pulumi.Input[_builtins.str]] + """ + The local export path. + """ + force_compression: NotRequired[pulumi.Input[_builtins.bool]] + """ + Forcefully apply compression. + """ + names: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] + """ + Specify images names to export. This is overridden if tags are already specified. + """ + oci_media_types: NotRequired[pulumi.Input[_builtins.bool]] + """ + Use OCI media types in exporter manifests. + """ + tar: NotRequired[pulumi.Input[_builtins.bool]] + """ + Bundle the output into a tarball layout. + """ @pulumi.input_type class ExportOCIArgs: @@ -2675,69 +2607,66 @@ class ExportOCIArgs: pulumi.set(self, "tar", value) -if not MYPY: - class ExportRegistryArgsDict(TypedDict): - annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] - """ - Attach an arbitrary key/value annotation to the image. - """ - compression: NotRequired[pulumi.Input['CompressionType']] - """ - The compression type to use. - """ - compression_level: NotRequired[pulumi.Input[_builtins.int]] - """ - Compression level from 0 to 22. - """ - dangling_name_prefix: NotRequired[pulumi.Input[_builtins.str]] - """ - Name image with `prefix@`, used for anonymous images. - """ - force_compression: NotRequired[pulumi.Input[_builtins.bool]] - """ - Forcefully apply compression. - """ - insecure: NotRequired[pulumi.Input[_builtins.bool]] - """ - Allow pushing to an insecure registry. - """ - name_canonical: NotRequired[pulumi.Input[_builtins.bool]] - """ - Add additional canonical name (`name@`). - """ - names: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] - """ - Specify images names to export. This is overridden if tags are already specified. - """ - oci_media_types: NotRequired[pulumi.Input[_builtins.bool]] - """ - Use OCI media types in exporter manifests. - """ - push: NotRequired[pulumi.Input[_builtins.bool]] - """ - Push after creating the image. Defaults to `true`. - """ - push_by_digest: NotRequired[pulumi.Input[_builtins.bool]] - """ - Push image without name. - """ - store: NotRequired[pulumi.Input[_builtins.bool]] - """ - Store resulting images to the worker's image store and ensure all of - its blobs are in the content store. +class ExportRegistryArgsDict(TypedDict): + annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] + """ + Attach an arbitrary key/value annotation to the image. + """ + compression: NotRequired[pulumi.Input['CompressionType']] + """ + The compression type to use. + """ + compression_level: NotRequired[pulumi.Input[_builtins.int]] + """ + Compression level from 0 to 22. + """ + dangling_name_prefix: NotRequired[pulumi.Input[_builtins.str]] + """ + Name image with `prefix@`, used for anonymous images. + """ + force_compression: NotRequired[pulumi.Input[_builtins.bool]] + """ + Forcefully apply compression. + """ + insecure: NotRequired[pulumi.Input[_builtins.bool]] + """ + Allow pushing to an insecure registry. + """ + name_canonical: NotRequired[pulumi.Input[_builtins.bool]] + """ + Add additional canonical name (`name@`). + """ + names: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] + """ + Specify images names to export. This is overridden if tags are already specified. + """ + oci_media_types: NotRequired[pulumi.Input[_builtins.bool]] + """ + Use OCI media types in exporter manifests. + """ + push: NotRequired[pulumi.Input[_builtins.bool]] + """ + Push after creating the image. Defaults to `true`. + """ + push_by_digest: NotRequired[pulumi.Input[_builtins.bool]] + """ + Push image without name. + """ + store: NotRequired[pulumi.Input[_builtins.bool]] + """ + Store resulting images to the worker's image store and ensure all of + its blobs are in the content store. - Defaults to `true`. + Defaults to `true`. - Ignored if the worker doesn't have image store (when using OCI workers, - for example). - """ - unpack: NotRequired[pulumi.Input[_builtins.bool]] - """ - Unpack image after creation (for use with containerd). Defaults to - `false`. - """ -elif False: - ExportRegistryArgsDict: TypeAlias = Mapping[str, Any] + Ignored if the worker doesn't have image store (when using OCI workers, + for example). + """ + unpack: NotRequired[pulumi.Input[_builtins.bool]] + """ + Unpack image after creation (for use with containerd). Defaults to + `false`. + """ @pulumi.input_type class ExportRegistryArgs: @@ -2980,14 +2909,11 @@ class ExportRegistryArgs: pulumi.set(self, "unpack", value) -if not MYPY: - class ExportTarArgsDict(TypedDict): - dest: pulumi.Input[_builtins.str] - """ - Output path. - """ -elif False: - ExportTarArgsDict: TypeAlias = Mapping[str, Any] +class ExportTarArgsDict(TypedDict): + dest: pulumi.Input[_builtins.str] + """ + Output path. + """ @pulumi.input_type class ExportTarArgs: @@ -3011,48 +2937,45 @@ class ExportTarArgs: pulumi.set(self, "dest", value) -if not MYPY: - class ExportArgsDict(TypedDict): - cacheonly: NotRequired[pulumi.Input['ExportCacheOnlyArgsDict']] - """ - A no-op export. Helpful for silencing the 'no exports' warning if you - just want to populate caches. - """ - disabled: NotRequired[pulumi.Input[_builtins.bool]] - """ - When `true` this entry will be excluded. Defaults to `false`. - """ - docker: NotRequired[pulumi.Input['ExportDockerArgsDict']] - """ - Export as a Docker image layout. - """ - image: NotRequired[pulumi.Input['ExportImageArgsDict']] - """ - Outputs the build result into a container image format. - """ - local: NotRequired[pulumi.Input['ExportLocalArgsDict']] - """ - Export to a local directory as files and directories. - """ - oci: NotRequired[pulumi.Input['ExportOCIArgsDict']] - """ - Identical to the Docker exporter but uses OCI media types by default. - """ - raw: NotRequired[pulumi.Input[_builtins.str]] - """ - A raw string as you would provide it to the Docker CLI (e.g., - `type=docker`) - """ - registry: NotRequired[pulumi.Input['ExportRegistryArgsDict']] - """ - Identical to the Image exporter, but pushes by default. - """ - tar: NotRequired[pulumi.Input['ExportTarArgsDict']] - """ - Export to a local directory as a tarball. - """ -elif False: - ExportArgsDict: TypeAlias = Mapping[str, Any] +class ExportArgsDict(TypedDict): + cacheonly: NotRequired[pulumi.Input['ExportCacheOnlyArgsDict']] + """ + A no-op export. Helpful for silencing the 'no exports' warning if you + just want to populate caches. + """ + disabled: NotRequired[pulumi.Input[_builtins.bool]] + """ + When `true` this entry will be excluded. Defaults to `false`. + """ + docker: NotRequired[pulumi.Input['ExportDockerArgsDict']] + """ + Export as a Docker image layout. + """ + image: NotRequired[pulumi.Input['ExportImageArgsDict']] + """ + Outputs the build result into a container image format. + """ + local: NotRequired[pulumi.Input['ExportLocalArgsDict']] + """ + Export to a local directory as files and directories. + """ + oci: NotRequired[pulumi.Input['ExportOCIArgsDict']] + """ + Identical to the Docker exporter but uses OCI media types by default. + """ + raw: NotRequired[pulumi.Input[_builtins.str]] + """ + A raw string as you would provide it to the Docker CLI (e.g., + `type=docker`) + """ + registry: NotRequired[pulumi.Input['ExportRegistryArgsDict']] + """ + Identical to the Image exporter, but pushes by default. + """ + tar: NotRequired[pulumi.Input['ExportTarArgsDict']] + """ + Export to a local directory as a tarball. + """ @pulumi.input_type class ExportArgs: @@ -3209,22 +3132,19 @@ class ExportArgs: pulumi.set(self, "tar", value) -if not MYPY: - class RegistryArgsDict(TypedDict): - address: pulumi.Input[_builtins.str] - """ - The registry's address (e.g. "docker.io"). - """ - password: NotRequired[pulumi.Input[_builtins.str]] - """ - Password or token for the registry. - """ - username: NotRequired[pulumi.Input[_builtins.str]] - """ - Username for the registry. - """ -elif False: - RegistryArgsDict: TypeAlias = Mapping[str, Any] +class RegistryArgsDict(TypedDict): + address: pulumi.Input[_builtins.str] + """ + The registry's address (e.g. "docker.io"). + """ + password: NotRequired[pulumi.Input[_builtins.str]] + """ + Password or token for the registry. + """ + username: NotRequired[pulumi.Input[_builtins.str]] + """ + Username for the registry. + """ @pulumi.input_type class RegistryArgs: @@ -3280,28 +3200,25 @@ class RegistryArgs: pulumi.set(self, "username", value) -if not MYPY: - class SSHArgsDict(TypedDict): - id: pulumi.Input[_builtins.str] - """ - Useful for distinguishing different servers that are part of the same - build. +class SSHArgsDict(TypedDict): + id: pulumi.Input[_builtins.str] + """ + Useful for distinguishing different servers that are part of the same + build. - A value of `default` is appropriate if only dealing with a single host. - """ - paths: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] - """ - SSH agent socket or private keys to expose to the build under the given - identifier. + A value of `default` is appropriate if only dealing with a single host. + """ + paths: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] + """ + SSH agent socket or private keys to expose to the build under the given + identifier. - Defaults to `[$SSH_AUTH_SOCK]`. + Defaults to `[$SSH_AUTH_SOCK]`. - Note that your keys are **not** automatically added when using an - agent. Run `ssh-add -l` locally to confirm which public keys are - visible to the agent; these will be exposed to your build. - """ -elif False: - SSHArgsDict: TypeAlias = Mapping[str, Any] + Note that your keys are **not** automatically added when using an + agent. Run `ssh-add -l` locally to confirm which public keys are + visible to the agent; these will be exposed to your build. + """ @pulumi.input_type class SSHArgs: