diff --git a/.pulumi.version b/.pulumi.version index 7f24ea6..5c1af09 100644 --- a/.pulumi.version +++ b/.pulumi.version @@ -1 +1 @@ -3.187.0 +3.192.0 diff --git a/examples/go/go.mod b/examples/go/go.mod index 90164f4..157a670 100644 --- a/examples/go/go.mod +++ b/examples/go/go.mod @@ -6,7 +6,7 @@ toolchain go1.24.5 require ( github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.12 - github.com/pulumi/pulumi/sdk/v3 v3.187.0 + github.com/pulumi/pulumi/sdk/v3 v3.192.0 ) require ( @@ -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.14.3 // indirect + github.com/pulumi/esc v0.17.0 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.14.1 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect diff --git a/examples/go/go.sum b/examples/go/go.sum index 7ce1879..cae2c0f 100644 --- a/examples/go/go.sum +++ b/examples/go/go.sum @@ -159,12 +159,12 @@ 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.14.3 h1:Zli+9LiSDT/W+Fsfr8tITxCo+5wn969tLrE4KLv44G8= -github.com/pulumi/esc v0.14.3/go.mod h1:XnSxlt5NkmuAj304l/gK4pRErFbtqq6XpfX1tYT9Jbc= +github.com/pulumi/esc v0.17.0 h1:oaVOIyFTENlYDuqc3pW75lQT9jb2cd6ie/4/Twxn66w= +github.com/pulumi/esc v0.17.0/go.mod h1:XnSxlt5NkmuAj304l/gK4pRErFbtqq6XpfX1tYT9Jbc= 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.187.0 h1:BflBBeD/qaoKN4Tov11g4aHzJ7pTXBSb8otgmteRer0= -github.com/pulumi/pulumi/sdk/v3 v3.187.0/go.mod h1:BnpKxUc6QlxqoCqobHNZsUuIuY27H6ZFUk0Cp+0JN5U= +github.com/pulumi/pulumi/sdk/v3 v3.192.0 h1:sfHuR3P02wSbV3xdSMEQ0+uC/HzlMz0YfKrVAXy1hSQ= +github.com/pulumi/pulumi/sdk/v3 v3.192.0/go.mod h1:aV0+c5xpSYccWKmOjTZS9liYCqh7+peu3cQgSXu7CJw= 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/examples/nodejs_test.go b/examples/nodejs_test.go index bdf2845..95d0e1e 100644 --- a/examples/nodejs_test.go +++ b/examples/nodejs_test.go @@ -181,8 +181,9 @@ func TestConfig(t *testing.T) { require.NoError(t, err) test := integration.ProgramTestOptions{ - Dir: path.Join(cwd, "tests", "config"), - Dependencies: []string{"@pulumi/docker-build"}, + Dir: path.Join(cwd, "tests", "config"), + Dependencies: []string{"@pulumi/docker-build"}, + SkipEmptyPreviewUpdate: true, } integration.ProgramTest(t, &test) diff --git a/go.mod b/go.mod index 6ce03d9..bdc51e6 100644 --- a/go.mod +++ b/go.mod @@ -19,11 +19,11 @@ require ( github.com/pulumi/pulumi-go-provider v1.1.1 github.com/pulumi/pulumi-java/pkg v1.16.0 github.com/pulumi/pulumi-yaml v1.21.2 - github.com/pulumi/pulumi/pkg/v3 v3.187.0 + github.com/pulumi/pulumi/pkg/v3 v3.192.0 github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3 v3.0.0-20250806165243-bee5e4fa4815 github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/v3 v3.0.0-20250806165243-bee5e4fa4815 github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python/v3 v3.0.0-20250806165243-bee5e4fa4815 - github.com/pulumi/pulumi/sdk/v3 v3.187.0 + github.com/pulumi/pulumi/sdk/v3 v3.192.0 github.com/regclient/regclient v0.7.1 github.com/sirupsen/logrus v1.9.3 github.com/spf13/afero v1.14.0 diff --git a/go.sum b/go.sum index 6e6b97b..5ea73ef 100644 --- a/go.sum +++ b/go.sum @@ -902,16 +902,16 @@ github.com/pulumi/pulumi-java/pkg v1.16.0 h1:8KCiIXWv2uxfIks0SdgOezyXg4HZIoPfHID github.com/pulumi/pulumi-java/pkg v1.16.0/go.mod h1:VeMZ1s9LfXBypao4A1tRF3EB7fYnYZ1LwImyg6FBX0c= github.com/pulumi/pulumi-yaml v1.21.2 h1:czqC5AazinfX6Bj0nqAAQ6x/Cr8/3oUz3HUjJg6tJ4o= github.com/pulumi/pulumi-yaml v1.21.2/go.mod h1:KOqDnuJksfIq8belFVFN3IEI4r0NgW69M0QPSj54On4= -github.com/pulumi/pulumi/pkg/v3 v3.187.0 h1:VTbireKCxG/wKPX3slHNb3Zk3xKMr5CvcvjH8194H2I= -github.com/pulumi/pulumi/pkg/v3 v3.187.0/go.mod h1:3y5nyMg62dd+DBzYW/P4d+Ye9pJ/zhJd+aGzMzfUL1g= +github.com/pulumi/pulumi/pkg/v3 v3.192.0 h1:gZRMPaNpW+VN3ng3h9r8De8wI0keWC9fIP0rcUDatMA= +github.com/pulumi/pulumi/pkg/v3 v3.192.0/go.mod h1:+Zp3EzjzGW4PlcW8oITZgeOfFzIVbLWvHtUVixvGQcs= github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3 v3.0.0-20250806165243-bee5e4fa4815 h1:tipGG4aEPejP424igQYxJ6TOtWVtZJa0z679oIv00ho= github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3 v3.0.0-20250806165243-bee5e4fa4815/go.mod h1:V2MMs29cFeGBdZyFKxNqTGVfBgDLhIOGfrXOxheieuI= github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/v3 v3.0.0-20250806165243-bee5e4fa4815 h1:+QJTFK7UcOFTYCg3XaSTrRZHWJ6Hqza8w9oADa4pPcM= github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/v3 v3.0.0-20250806165243-bee5e4fa4815/go.mod h1:0kA9b5LsaXLEKQzo0o9UUsHtZkACthHYLyBVUDUVMxc= github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python/v3 v3.0.0-20250806165243-bee5e4fa4815 h1:bkvtySMos0ij3fWZWZaU5sVrvGvU0dZCusoxpgEtX6I= github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python/v3 v3.0.0-20250806165243-bee5e4fa4815/go.mod h1:SJtr0N/XFyelI7M7U0UbJXr15pgEdSmpN40cglTsRTA= -github.com/pulumi/pulumi/sdk/v3 v3.187.0 h1:BflBBeD/qaoKN4Tov11g4aHzJ7pTXBSb8otgmteRer0= -github.com/pulumi/pulumi/sdk/v3 v3.187.0/go.mod h1:BnpKxUc6QlxqoCqobHNZsUuIuY27H6ZFUk0Cp+0JN5U= +github.com/pulumi/pulumi/sdk/v3 v3.192.0 h1:sfHuR3P02wSbV3xdSMEQ0+uC/HzlMz0YfKrVAXy1hSQ= +github.com/pulumi/pulumi/sdk/v3 v3.192.0/go.mod h1:aV0+c5xpSYccWKmOjTZS9liYCqh7+peu3cQgSXu7CJw= github.com/quasilyte/go-ruleguard v0.4.2 h1:htXcXDK6/rO12kiTHKfHuqR4kr3Y4M0J0rOL6CH/BYs= github.com/quasilyte/go-ruleguard v0.4.2/go.mod h1:GJLgqsLeo4qgavUoL8JeGFNS7qcisx3awV/w9eWTmNI= github.com/quasilyte/go-ruleguard/dsl v0.3.22 h1:wd8zkOhSNr+I+8Qeciml08ivDt1pSXe60+5DqOpCjPE= diff --git a/sdk/go/dockerbuild/go.mod b/sdk/go/dockerbuild/go.mod index 6964efa..f806678 100644 --- a/sdk/go/dockerbuild/go.mod +++ b/sdk/go/dockerbuild/go.mod @@ -4,7 +4,7 @@ go 1.24.1 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.187.0 + github.com/pulumi/pulumi/sdk/v3 v3.192.0 ) require ( diff --git a/sdk/go/dockerbuild/go.sum b/sdk/go/dockerbuild/go.sum index 6780041..f3aaafa 100644 --- a/sdk/go/dockerbuild/go.sum +++ b/sdk/go/dockerbuild/go.sum @@ -164,8 +164,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.17.0 h1:oaVOIyFTENlYDuqc3pW75lQT9jb2cd6ie/4/Twxn66w= github.com/pulumi/esc v0.17.0/go.mod h1:XnSxlt5NkmuAj304l/gK4pRErFbtqq6XpfX1tYT9Jbc= -github.com/pulumi/pulumi/sdk/v3 v3.187.0 h1:BflBBeD/qaoKN4Tov11g4aHzJ7pTXBSb8otgmteRer0= -github.com/pulumi/pulumi/sdk/v3 v3.187.0/go.mod h1:BnpKxUc6QlxqoCqobHNZsUuIuY27H6ZFUk0Cp+0JN5U= +github.com/pulumi/pulumi/sdk/v3 v3.192.0 h1:sfHuR3P02wSbV3xdSMEQ0+uC/HzlMz0YfKrVAXy1hSQ= +github.com/pulumi/pulumi/sdk/v3 v3.192.0/go.mod h1:aV0+c5xpSYccWKmOjTZS9liYCqh7+peu3cQgSXu7CJw= 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/nodejs/image.ts b/sdk/nodejs/image.ts index ba1dd97..9bd2906 100644 --- a/sdk/nodejs/image.ts +++ b/sdk/nodejs/image.ts @@ -501,7 +501,7 @@ export class Image extends pulumi.CustomResource { * * Equivalent to Docker's `--add-host` flag. */ - public readonly addHosts!: pulumi.Output; + declare public readonly addHosts: pulumi.Output; /** * `ARG` names and values to set during the build. * @@ -513,7 +513,7 @@ export class Image extends pulumi.CustomResource { * * Equivalent to Docker's `--build-arg` flag. */ - public readonly buildArgs!: pulumi.Output<{[key: string]: string} | undefined>; + declare public readonly buildArgs: pulumi.Output<{[key: string]: string} | undefined>; /** * Setting this to `false` will always skip image builds during previews, * and setting it to `true` will always build images during previews. @@ -527,35 +527,35 @@ export class Image extends pulumi.CustomResource { * Defaults to `true` as a safeguard against broken images merging as part * of CI pipelines. */ - public readonly buildOnPreview!: pulumi.Output; + declare public readonly buildOnPreview: pulumi.Output; /** * Builder configuration. */ - public readonly builder!: pulumi.Output; + declare public readonly builder: pulumi.Output; /** * Cache export configuration. * * Equivalent to Docker's `--cache-from` flag. */ - public readonly cacheFrom!: pulumi.Output; + declare public readonly cacheFrom: pulumi.Output; /** * Cache import configuration. * * Equivalent to Docker's `--cache-to` flag. */ - public readonly cacheTo!: pulumi.Output; + declare public readonly cacheTo: pulumi.Output; /** * Build context settings. Defaults to the current directory. * * Equivalent to Docker's `PATH | URL | -` positional argument. */ - public readonly context!: pulumi.Output; + declare public readonly context: pulumi.Output; /** * A preliminary hash of the image's build context. * * Pulumi uses this to determine if an image _may_ need to be re-built. */ - public /*out*/ readonly contextHash!: pulumi.Output; + declare public /*out*/ readonly contextHash: pulumi.Output; /** * A SHA256 digest of the image if it was exported to a registry or * elsewhere. @@ -565,13 +565,13 @@ export class Image extends pulumi.CustomResource { * Registry images can be referenced precisely as `@`. The * `ref` output provides one such reference as a convenience. */ - public /*out*/ readonly digest!: pulumi.Output; + declare public /*out*/ readonly digest: pulumi.Output; /** * Dockerfile settings. * * Equivalent to Docker's `--file` flag. */ - public readonly dockerfile!: pulumi.Output; + declare public readonly dockerfile: pulumi.Output; /** * Use `exec` mode to build this image. * @@ -594,7 +594,7 @@ export class Image extends pulumi.CustomResource { * are temporarily written to disk in order to provide them to the * `docker-buildx` binary. */ - public readonly exec!: pulumi.Output; + declare public readonly exec: pulumi.Output; /** * Controls where images are persisted after building. * @@ -606,13 +606,13 @@ export class Image extends pulumi.CustomResource { * * Equivalent to Docker's `--output` flag. */ - public readonly exports!: pulumi.Output; + declare public readonly exports: pulumi.Output; /** * Attach arbitrary key/value metadata to the image. * * Equivalent to Docker's `--label` flag. */ - public readonly labels!: pulumi.Output<{[key: string]: string} | undefined>; + declare public readonly labels: pulumi.Output<{[key: string]: string} | undefined>; /** * When `true` the build will automatically include a `docker` export. * @@ -620,7 +620,7 @@ export class Image extends pulumi.CustomResource { * * Equivalent to Docker's `--load` flag. */ - public readonly load!: pulumi.Output; + declare public readonly load: pulumi.Output; /** * Set the network mode for `RUN` instructions. Defaults to `default`. * @@ -628,25 +628,25 @@ export class Image extends pulumi.CustomResource { * * Equivalent to Docker's `--network` flag. */ - public readonly network!: pulumi.Output; + declare public readonly network: pulumi.Output; /** * Do not import cache manifests when building the image. * * Equivalent to Docker's `--no-cache` flag. */ - public readonly noCache!: pulumi.Output; + declare public readonly noCache: pulumi.Output; /** * Set target platform(s) for the build. Defaults to the host's platform. * * Equivalent to Docker's `--platform` flag. */ - public readonly platforms!: pulumi.Output; + declare public readonly platforms: pulumi.Output; /** * Always pull referenced images. * * Equivalent to Docker's `--pull` flag. */ - public readonly pull!: pulumi.Output; + declare public readonly pull: pulumi.Output; /** * When `true` the build will automatically include a `registry` export. * @@ -654,7 +654,7 @@ export class Image extends pulumi.CustomResource { * * Equivalent to Docker's `--push` flag. */ - public readonly push!: pulumi.Output; + declare public readonly push: pulumi.Output; /** * If the image was pushed to any registries then this will contain a * single fully-qualified tag including the build's digest. @@ -671,7 +671,7 @@ export class Image extends pulumi.CustomResource { * For more control over tags consumed by downstream resources you should * use the `digest` output. */ - public /*out*/ readonly ref!: pulumi.Output; + declare public /*out*/ readonly ref: pulumi.Output; /** * Registry credentials. Required if reading or exporting to private * repositories. @@ -681,7 +681,7 @@ export class Image extends pulumi.CustomResource { * * Similar to `docker login`. */ - public readonly registries!: pulumi.Output; + declare public readonly registries: pulumi.Output; /** * A mapping of secret names to their corresponding values. * @@ -693,13 +693,13 @@ export class Image extends pulumi.CustomResource { * * Similar to Docker's `--secret` flag. */ - public readonly secrets!: pulumi.Output<{[key: string]: string} | undefined>; + declare public readonly secrets: pulumi.Output<{[key: string]: string} | undefined>; /** * SSH agent socket or keys to expose to the build. * * Equivalent to Docker's `--ssh` flag. */ - public readonly ssh!: pulumi.Output; + declare public readonly ssh: pulumi.Output; /** * Name and optionally a tag (format: `name:tag`). * @@ -708,7 +708,7 @@ export class Image extends pulumi.CustomResource { * * Equivalent to Docker's `--tag` flag. */ - public readonly tags!: pulumi.Output; + declare public readonly tags: pulumi.Output; /** * Set the target build stage(s) to build. * @@ -716,7 +716,7 @@ export class Image extends pulumi.CustomResource { * * Equivalent to Docker's `--target` flag. */ - public readonly target!: pulumi.Output; + declare public readonly target: pulumi.Output; /** * Create a Image resource with the given unique name, arguments, and options. @@ -729,31 +729,31 @@ export class Image extends pulumi.CustomResource { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (!opts.id) { - if ((!args || args.push === undefined) && !opts.urn) { + if (args?.push === undefined && !opts.urn) { throw new Error("Missing required property 'push'"); } - resourceInputs["addHosts"] = args ? args.addHosts : undefined; - resourceInputs["buildArgs"] = args ? args.buildArgs : undefined; - resourceInputs["buildOnPreview"] = (args ? args.buildOnPreview : undefined) ?? true; - resourceInputs["builder"] = args ? args.builder : undefined; - resourceInputs["cacheFrom"] = args ? args.cacheFrom : undefined; - resourceInputs["cacheTo"] = args ? args.cacheTo : undefined; - resourceInputs["context"] = args ? args.context : undefined; - resourceInputs["dockerfile"] = args ? args.dockerfile : undefined; - resourceInputs["exec"] = args ? args.exec : undefined; - resourceInputs["exports"] = args ? args.exports : undefined; - resourceInputs["labels"] = args ? args.labels : undefined; - resourceInputs["load"] = args ? args.load : undefined; - resourceInputs["network"] = (args ? args.network : undefined) ?? "default"; - resourceInputs["noCache"] = args ? args.noCache : undefined; - resourceInputs["platforms"] = args ? args.platforms : undefined; - resourceInputs["pull"] = args ? args.pull : undefined; - resourceInputs["push"] = args ? args.push : undefined; - resourceInputs["registries"] = args ? args.registries : undefined; - resourceInputs["secrets"] = args ? args.secrets : undefined; - resourceInputs["ssh"] = args ? args.ssh : undefined; - resourceInputs["tags"] = args ? args.tags : undefined; - resourceInputs["target"] = args ? args.target : undefined; + resourceInputs["addHosts"] = args?.addHosts; + resourceInputs["buildArgs"] = args?.buildArgs; + resourceInputs["buildOnPreview"] = (args?.buildOnPreview) ?? true; + resourceInputs["builder"] = args?.builder; + resourceInputs["cacheFrom"] = args?.cacheFrom; + resourceInputs["cacheTo"] = args?.cacheTo; + resourceInputs["context"] = args?.context; + resourceInputs["dockerfile"] = args?.dockerfile; + resourceInputs["exec"] = args?.exec; + resourceInputs["exports"] = args?.exports; + resourceInputs["labels"] = args?.labels; + resourceInputs["load"] = args?.load; + resourceInputs["network"] = (args?.network) ?? "default"; + resourceInputs["noCache"] = args?.noCache; + resourceInputs["platforms"] = args?.platforms; + resourceInputs["pull"] = args?.pull; + resourceInputs["push"] = args?.push; + resourceInputs["registries"] = args?.registries; + resourceInputs["secrets"] = args?.secrets; + resourceInputs["ssh"] = args?.ssh; + resourceInputs["tags"] = args?.tags; + resourceInputs["target"] = args?.target; resourceInputs["contextHash"] = undefined /*out*/; resourceInputs["digest"] = undefined /*out*/; resourceInputs["ref"] = undefined /*out*/; diff --git a/sdk/nodejs/index_.ts b/sdk/nodejs/index_.ts index e2986c6..c21966b 100644 --- a/sdk/nodejs/index_.ts +++ b/sdk/nodejs/index_.ts @@ -113,27 +113,27 @@ export class Index extends pulumi.CustomResource { * * Defaults to `true`. */ - public readonly push!: pulumi.Output; + declare public readonly push: pulumi.Output; /** * The pushed tag with digest. * * Identical to the tag if the index was not pushed. */ - public /*out*/ readonly ref!: pulumi.Output; + declare public /*out*/ readonly ref: pulumi.Output; /** * Authentication for the registry where the tagged index will be pushed. * * Credentials can also be included with the provider's configuration. */ - public readonly registry!: pulumi.Output; + declare public readonly registry: pulumi.Output; /** * Existing images to include in the index. */ - public readonly sources!: pulumi.Output; + declare public readonly sources: pulumi.Output; /** * The tag to apply to the index. */ - public readonly tag!: pulumi.Output; + declare public readonly tag: pulumi.Output; /** * Create a Index resource with the given unique name, arguments, and options. @@ -146,16 +146,16 @@ export class Index extends pulumi.CustomResource { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (!opts.id) { - if ((!args || args.sources === undefined) && !opts.urn) { + if (args?.sources === undefined && !opts.urn) { throw new Error("Missing required property 'sources'"); } - if ((!args || args.tag === undefined) && !opts.urn) { + if (args?.tag === undefined && !opts.urn) { throw new Error("Missing required property 'tag'"); } - resourceInputs["push"] = (args ? args.push : undefined) ?? true; - resourceInputs["registry"] = args ? args.registry : undefined; - resourceInputs["sources"] = args ? args.sources : undefined; - resourceInputs["tag"] = args ? args.tag : undefined; + resourceInputs["push"] = (args?.push) ?? true; + resourceInputs["registry"] = args?.registry; + resourceInputs["sources"] = args?.sources; + resourceInputs["tag"] = args?.tag; resourceInputs["ref"] = undefined /*out*/; } else { resourceInputs["push"] = undefined /*out*/; diff --git a/sdk/nodejs/provider.ts b/sdk/nodejs/provider.ts index a2ed3e7..06f043e 100644 --- a/sdk/nodejs/provider.ts +++ b/sdk/nodejs/provider.ts @@ -25,7 +25,7 @@ export class Provider extends pulumi.ProviderResource { /** * The build daemon's address. */ - public readonly host!: pulumi.Output; + declare public readonly host: pulumi.Output; /** * Create a Provider resource with the given unique name, arguments, and options. @@ -38,8 +38,8 @@ export class Provider extends pulumi.ProviderResource { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; { - resourceInputs["host"] = (args ? args.host : undefined) ?? (utilities.getEnv("DOCKER_HOST") || ""); - resourceInputs["registries"] = pulumi.output(args ? args.registries : undefined).apply(JSON.stringify); + resourceInputs["host"] = (args?.host) ?? (utilities.getEnv("DOCKER_HOST") || ""); + resourceInputs["registries"] = pulumi.output(args?.registries).apply(JSON.stringify); } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Provider.__pulumiType, name, resourceInputs, opts); diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 276795b..903b1ff 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "outDir": "bin", - "target": "es2016", + "target": "ES2020", "module": "commonjs", "moduleResolution": "node", "declaration": true,