Skip to content

Commit

Permalink
Deprecate Helm v2 SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Oct 6, 2020
1 parent 0c463d0 commit e4507d2
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Update Helm v3 mod to v3.3.2 (https://github.com/pulumi/pulumi-kubernetes/pull/1326)
- Update Helm v3 mod to v3.3.3 (https://github.com/pulumi/pulumi-kubernetes/pull/1328)
- Change error to warning if internal autoname annotation is set (https://github.com/pulumi/pulumi-kubernetes/pull/1337)
- Deprecate Helm v2 SDKs (https://github.com/pulumi/pulumi-kubernetes/pull/1344)

## 2.6.1 (September 16, 2020)

Expand Down
Binary file not shown.
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 has been deprecated in favor of 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/go-templates/helm/v2/chart.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ import (
// })
// }
// ```
//
// Deprecated: helm/v2/Chart has been deprecated in favor of helm/v3/Chart and will be removed in a future release.
type Chart struct {
pulumi.ResourceState

Expand Down
1 change: 1 addition & 0 deletions provider/pkg/gen/nodejs-templates/helm/v2/helm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export class Chart extends yaml.CollectionComponentResource {
config: ChartOpts | LocalChartOpts,
opts?: pulumi.ComponentResourceOptions
) {
pulumi.log.warn("Chart is deprecated: helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.")
if (config.resourcePrefix !== undefined) {
releaseName = `${config.resourcePrefix}-${releaseName}`
}
Expand Down
6 changes: 6 additions & 0 deletions provider/pkg/gen/python-templates/helm/v2/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
import subprocess
from tempfile import mkdtemp, mkstemp
from typing import Any, Callable, Optional, Sequence, TextIO, Tuple, Union
import warnings

import pulumi.runtime
from pulumi_kubernetes.yaml import _parse_yaml_document

from ... import _utilities

warnings.warn("helm.v2.Chart has been deprecated in favor of helm.v3.Chart and will be removed in a future release.",
DeprecationWarning)


class Chart(pulumi.ComponentResource):
resources: pulumi.Output[dict]
Expand Down Expand Up @@ -153,6 +157,8 @@ def omit_resource(obj, opts):
:param Optional[pulumi.ResourceOptions] opts: A bag of options that control this
resource's behavior.
"""
warnings.warn("helm.v2.Chart has been deprecated in favor of helm.v3.Chart and will be removed in a future"
" release.", DeprecationWarning)
if not release_name:
raise TypeError('Missing release name argument')
if not isinstance(release_name, str):
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 has been deprecated in favor of 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,8 @@ import (
// })
// }
// ```
//
// Deprecated: helm/v2/Chart has been deprecated in favor of helm/v3/Chart and will be removed in a future release.
type Chart struct {
pulumi.ResourceState

Expand Down
1 change: 1 addition & 0 deletions sdk/nodejs/helm/v2/helm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export class Chart extends yaml.CollectionComponentResource {
config: ChartOpts | LocalChartOpts,
opts?: pulumi.ComponentResourceOptions
) {
pulumi.log.warn("Chart is deprecated: helm/v2/Chart is deprecated by helm/v3/Chart and will be removed in a future release.")
if (config.resourcePrefix !== undefined) {
releaseName = `${config.resourcePrefix}-${releaseName}`
}
Expand Down
6 changes: 6 additions & 0 deletions sdk/python/pulumi_kubernetes/helm/v2/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
import subprocess
from tempfile import mkdtemp, mkstemp
from typing import Any, Callable, Optional, Sequence, TextIO, Tuple, Union
import warnings

import pulumi.runtime
from pulumi_kubernetes.yaml import _parse_yaml_document

from ... import _utilities

warnings.warn("helm.v2.Chart has been deprecated in favor of helm.v3.Chart and will be removed in a future release.",
DeprecationWarning)


class Chart(pulumi.ComponentResource):
resources: pulumi.Output[dict]
Expand Down Expand Up @@ -153,6 +157,8 @@ def omit_resource(obj, opts):
:param Optional[pulumi.ResourceOptions] opts: A bag of options that control this
resource's behavior.
"""
warnings.warn("helm.v2.Chart has been deprecated in favor of helm.v3.Chart and will be removed in a future"
" release.", DeprecationWarning)
if not release_name:
raise TypeError('Missing release name argument')
if not isinstance(release_name, str):
Expand Down

0 comments on commit e4507d2

Please sign in to comment.