Bump the pulumi group across 1 directory with 6 updates (#111)

This upgrades pulumi to v3.121.0 and bumps several other first-party dependencies.

Note that vendored language plugins must be bumped manually because their go modules are currently untagged:

* go get github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python/v3@79e814fe0f2137ade87ee5af384e6cb71e4aa6ff
*  go get github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/v3@79e814fe0f2137ade87ee5af384e6cb71e4aa6ff
* go get github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3@79e814fe0f2137ade87ee5af384e6cb71e4aa6ff
* go get github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet@fa777213effdc3a80bb893194d63cd8b7ca7a868
* go get github.com/pulumi/pulumi-yaml@15eb402

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bryce Lampe <bryce@pulumi.com>
This commit is contained in:
dependabot[bot]
2024-06-25 14:17:24 -07:00
committed by GitHub
parent 92ed9d50e9
commit b8ecfb287a
20 changed files with 1253 additions and 1086 deletions

View File

@@ -347,8 +347,7 @@ type CacheWithMode struct {
// Annotate sets docstrings and defaults on CacheWithMode.
func (c *CacheWithMode) Annotate(a infer.Annotator) {
m := Min
a.SetDefault(&c.Mode, &m)
a.SetDefault(&c.Mode, Min)
a.Describe(&c.Mode, dedent(`
The cache mode to use. Defaults to "min".
`))
@@ -560,8 +559,7 @@ type CacheWithCompression struct {
// Annotate sets docstrings and defaults on CacheWithCompression.
func (c *CacheWithCompression) Annotate(a infer.Annotator) {
gz := Gzip
a.SetDefault(&c.Compression, &gz)
a.SetDefault(&c.Compression, Gzip)
a.SetDefault(&c.CompressionLevel, 0)
a.SetDefault(&c.ForceCompression, false)

View File

@@ -393,8 +393,7 @@ type ExportWithCompression struct {
// Annotate sets docstrings and defaults on ExportWithCompression.
func (e *ExportWithCompression) Annotate(a infer.Annotator) {
gzip := Gzip
a.SetDefault(&e.Compression, &gzip)
a.SetDefault(&e.Compression, Gzip)
a.SetDefault(&e.CompressionLevel, 0)
a.SetDefault(&e.ForceCompression, false)

View File

@@ -278,8 +278,7 @@ func (ia *ImageArgs) Annotate(a infer.Annotator) {
"docker-buildx" binary.
`))
d := Default
a.SetDefault(&ia.Network, &d)
a.SetDefault(&ia.Network, Default)
}
// ImageState is serialized to the program's state file.

View File

@@ -50,10 +50,17 @@ type Index struct{}
type IndexArgs struct {
Tag string `pulumi:"tag"`
Sources []string `pulumi:"sources"`
Push bool `pulumi:"push,optional"`
Push *bool `pulumi:"push,optional"`
Registry *Registry `pulumi:"registry,optional"`
}
func (i IndexArgs) isPushed() bool {
if i.Push == nil {
return true // default
}
return *i.Push
}
// IndexState captures the state of an Index.
type IndexState struct {
IndexArgs
@@ -153,7 +160,7 @@ func (i *Index) Update(
provider.GetLogger(ctx).Debugf("creating index with tag %s and sources %s", input.Tag, input.Sources)
err = cli.ManifestCreate(ctx, input.Push, input.Tag, input.Sources...)
err = cli.ManifestCreate(ctx, input.isPushed(), input.Tag, input.Sources...)
if err != nil {
return state, fmt.Errorf("creating: %w", err)
}
@@ -174,7 +181,7 @@ func (i *Index) Read(
state.IndexArgs = input
state.Ref = input.Tag
if !input.Push {
if !input.isPushed() {
provider.GetLogger(ctx).Debug("skipping read because index was not pushed")
return name, input, state, nil // Nothing to read.
}
@@ -187,11 +194,11 @@ func (i *Index) Read(
provider.GetLogger(ctx).Debug("reading index with tag " + input.Tag)
digest, err := cli.ManifestInspect(ctx, input.Tag)
if err != nil && strings.Contains(err.Error(), "No such manifest:") && input.Push {
if err != nil && strings.Contains(err.Error(), "No such manifest:") && input.isPushed() {
// A remote tag was expected but isn't there -- delete the resource.
return "", input, state, err
}
if err != nil && strings.Contains(err.Error(), "No such manifest:") && !input.Push {
if err != nil && strings.Contains(err.Error(), "No such manifest:") && !input.isPushed() {
// Nothing was pushed, so just use the tag without digest..
return name, input, state, nil
}
@@ -248,7 +255,7 @@ func (i *Index) Check(
// Delete attempts to delete the remote manifest.
func (i *Index) Delete(ctx context.Context, _ string, state IndexState) error {
if !state.Push {
if !state.isPushed() {
return nil // Nothing to delete.
}