diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a89b7f672..dee54d117f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,41 @@ ## Unreleased + +## 4.7.0 (January 17, 2024) - Fix JSON encoding of KubeVersion and Version on Chart resource (.NET SDK) (https://github.com/pulumi/pulumi-kubernetes/pull/2740) - Fix option propagation in component resources (Python SDK) (https://github.com/pulumi/pulumi-kubernetes/pull/2717) - Fix option propagation in component resources (.NET SDK) (https://github.com/pulumi/pulumi-kubernetes/pull/2720) - Fix option propagation in component resources (NodeJS SDK) (https://github.com/pulumi/pulumi-kubernetes/pull/2713) - Fix option propagation in component resources (Go SDK) (https://github.com/pulumi/pulumi-kubernetes/pull/2709) +### Breaking Changes +In previous versions of the pulumi-kubernetes .NET SDK, the `ConfigFile` and `ConfigGroup` component resources inadvertently assigned the wrong parent to the child resource(s). +This would happen when the component resource itself had a parent; the child would be assigned that same parent. This also had the effect of disregarding the component resource's provider in favor of the parent's provider. + +For example, here's a before/after look at the component hierarchy: + +Before: + +``` +├─ pkg:index:MyComponent parent +│ ├─ kubernetes:core/v1:ConfigMap cg-options-cg-options-cm-1 +│ ├─ kubernetes:yaml:ConfigFile cg-options-testdata/options/configgroup/manifest.yaml +│ ├─ kubernetes:core/v1:ConfigMap cg-options-configgroup-cm-1 +│ ├─ kubernetes:yaml:ConfigFile cg-options-testdata/options/configgroup/empty.yaml +│ └─ kubernetes:yaml:ConfigGroup cg-options +``` + +After: + +``` +└─ pkg:index:MyComponent parent + └─ kubernetes:yaml:ConfigGroup cg-options + ├─ kubernetes:yaml:ConfigFile cg-options-testdata/options/configgroup/manifest.yaml + │ └─ kubernetes:core/v1:ConfigMap cg-options-configgroup-cm-1 + └─ kubernetes:core/v1:ConfigMap cg-options-cg-options-cm-1 +``` + +This release addresses this issue and attempts to heal existing stacks using aliases. This is effective at avoiding a replacement except in the case where the child was created with the wrong provider. In this case, __Pulumi will suggest a replacement of the child resource(s), such that they use the correct provider__. + ## 4.6.1 (December 14, 2023) - Fix: Refine URN lookup by using its core type for more accurate resource identification (https://github.com/pulumi/pulumi-kubernetes/issues/2719) diff --git a/README.md b/README.md index ba21e676c7..2db952b9bb 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ import * as k8s from "@pulumi/kubernetes"; const cluster = new eks.Cluster("my-cluster"); // Deploy Wordpress into our cluster. -const wordpress = new k8s.helm.v2.Chart("wordpress", { +const wordpress = new k8s.helm.v3.Chart("wordpress", { repo: "stable", chart: "wordpress", values: {