diff --git a/CHANGELOG.md b/CHANGELOG.md index c12d65dc4b..10dfbe3f76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - [sdk/dotnet] Fix creation of CustomResources (https://github.com/pulumi/pulumi-kubernetes/pull/1741) - Always override namespace for helm release operations (https://github.com/pulumi/pulumi-kubernetes/pull/1747) - Add k8s client tuning settings to Provider (https://github.com/pulumi/pulumi-kubernetes/pull/1748) +- Change await logic client to use target apiVersion on updates (https://github.com/pulumi/pulumi-kubernetes/pull/1758) ## 3.7.3 (September 30, 2021) - Use helm release's namespace on templates where namespace is left unspecified (https://github.com/pulumi/pulumi-kubernetes/pull/1733) diff --git a/provider/pkg/await/await.go b/provider/pkg/await/await.go index c73a7d59f1..6a978a3c8b 100644 --- a/provider/pkg/await/await.go +++ b/provider/pkg/await/await.go @@ -1,4 +1,4 @@ -// Copyright 2016-2018, Pulumi Corporation. +// Copyright 2016-2021, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package await import ( "context" "fmt" + "github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/clients" "github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/cluster" "github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/kinds" @@ -353,7 +354,7 @@ func Update(c UpdateConfig) (*unstructured.Unstructured, error) { // - [ ] Support server-side apply, when it comes out. // - client, err := c.ClientSet.ResourceClient(c.Previous.GroupVersionKind(), c.Previous.GetNamespace()) + client, err := c.ClientSet.ResourceClient(c.Inputs.GroupVersionKind(), c.Inputs.GetNamespace()) if err != nil { return nil, err }