Skip to content

Commit

Permalink
Deprecate helm/v2:Chart resources
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed May 24, 2022
1 parent eff0634 commit 216bb3b
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Unreleased
(None)

Note: The `kubernetes:helm/v2:Chart` API was deprecated in this update and will be removed in a future release. The
`kubernetes:helm/v3:Chart` resource is backward compatible, so changing the import path should not cause any resource
updates.

- Deprecate helm/v2:Chart resources (https://github.com/pulumi/pulumi-kubernetes/pull/1990)

## 3.19.0 (May 3, 2022)

Expand Down
2 changes: 2 additions & 0 deletions provider/pkg/gen/_go-templates/helm/v2/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ import (
// })
// }
// ```
// Deprecated: helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.
type Chart struct {
pulumi.ResourceState

Expand All @@ -226,6 +227,7 @@ type Chart struct {
}

// NewChart registers a new resource with the given unique name, arguments, and options.
// Deprecated: helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.
func NewChart(ctx *pulumi.Context,
name string, args ChartArgs, opts ...pulumi.ResourceOption) (*Chart, error) {

Expand Down
3 changes: 3 additions & 0 deletions provider/pkg/gen/dotnet-templates/helm/v2/Chart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;

namespace Pulumi.Kubernetes.Helm.V2
{
/// <summary>
Expand Down Expand Up @@ -217,6 +219,7 @@ namespace Pulumi.Kubernetes.Helm.V2
/// }
/// ```
/// </summary>
[Obsolete(@"helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.")]
public sealed class Chart : ChartBase
{
/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions provider/pkg/gen/nodejs-templates/helm/v2/helm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ import * as yaml from "../../yaml/index";
* ],
* });
* ```
*
* @deprecated helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.
*/
export class Chart extends yaml.CollectionComponentResource {
/**
Expand Down
4 changes: 4 additions & 0 deletions provider/pkg/gen/python-templates/helm/v2/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@
import subprocess
from tempfile import mkdtemp, mkstemp
from typing import Any, Callable, Optional, Sequence, TextIO, Tuple, Union
from warnings import warn

import pulumi.runtime
from pulumi_kubernetes.yaml.yaml import _parse_yaml_document

from ... import _utilities

warn(f'helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.',
DeprecationWarning, stacklevel=2)


class Chart(pulumi.ComponentResource):
resources: pulumi.Output[dict]
Expand Down
3 changes: 3 additions & 0 deletions sdk/dotnet/Helm/V2/Chart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;

namespace Pulumi.Kubernetes.Helm.V2
{
/// <summary>
Expand Down Expand Up @@ -217,6 +219,7 @@ namespace Pulumi.Kubernetes.Helm.V2
/// }
/// ```
/// </summary>
[Obsolete(@"helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.")]
public sealed class Chart : ChartBase
{
/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions sdk/go/kubernetes/helm/v2/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ import (
// })
// }
// ```
// Deprecated: helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.
type Chart struct {
pulumi.ResourceState

Expand All @@ -226,6 +227,7 @@ type Chart struct {
}

// NewChart registers a new resource with the given unique name, arguments, and options.
// Deprecated: helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.
func NewChart(ctx *pulumi.Context,
name string, args ChartArgs, opts ...pulumi.ResourceOption) (*Chart, error) {

Expand Down
2 changes: 2 additions & 0 deletions sdk/nodejs/helm/v2/helm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ import * as yaml from "../../yaml/index";
* ],
* });
* ```
*
* @deprecated helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.
*/
export class Chart extends yaml.CollectionComponentResource {
/**
Expand Down
4 changes: 4 additions & 0 deletions sdk/python/pulumi_kubernetes/helm/v2/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@
import subprocess
from tempfile import mkdtemp, mkstemp
from typing import Any, Callable, Optional, Sequence, TextIO, Tuple, Union
from warnings import warn

import pulumi.runtime
from pulumi_kubernetes.yaml.yaml import _parse_yaml_document

from ... import _utilities

warn(f'helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.',
DeprecationWarning, stacklevel=2)


class Chart(pulumi.ComponentResource):
resources: pulumi.Output[dict]
Expand Down

0 comments on commit 216bb3b

Please sign in to comment.