Skip to content

Commit

Permalink
Remove deprecation warnings from SDKs (#1189)
Browse files Browse the repository at this point in the history
The provider already logs warnings for deprecated
resources, and includes a flag to disable these
warnings, so don't log at the SDK layer.
  • Loading branch information
lblackstone committed Jul 1, 2020
1 parent 21410c3 commit 0b07f49
Show file tree
Hide file tree
Showing 31 changed files with 8 additions and 98 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
### Bug Fixes

- Fix error parsing Helm version (https://github.com/pulumi/pulumi-kubernetes/pull/1170)
- Fix prometheus-operator test to wait for the CRD to be ready before use (https://github.com/pulumi/pulumi-kubernetes/pull/1172)
- Fix suppress deprecation warnings flag (https://github.com/pulumi/pulumi-kubernetes/pull/1189)

### Improvements

- Fix prometheus-operator test to wait for the CRD to be ready before use (https://github.com/pulumi/pulumi-kubernetes/pull/1172)
- Set supported environment variables in SDK Provider classes (https://github.com/pulumi/pulumi-kubernetes/pull/1166)
- Python SDK updated to align with other Pulumi Python SDKs. (https://github.com/pulumi/pulumi-kubernetes/pull/1160)
- Add support for Kustomize. (https://github.com/pulumi/pulumi-kubernetes/pull/1178)
Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/googleapis/gnostic v0.2.0
github.com/imdario/mergo v0.3.8
github.com/pkg/errors v0.9.1
github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200630221921-92cb042aeeaa
github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200701195026-956d362d8b4c
github.com/pulumi/pulumi/sdk/v2 v2.5.1-0.20200626210151-8961f5b0caae
github.com/stretchr/testify v1.6.1
google.golang.org/grpc v1.28.0
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R
github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200630221921-92cb042aeeaa h1:Jhm3xGFG1gCx56AMfjM4Pzm+N3wZ8ZlO0GVl7yZh0Ek=
github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200630221921-92cb042aeeaa/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ=
github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200701195026-956d362d8b4c h1:O72rbiQ16xwJ1h7lnmhbxQIMeASHPrs0xBOUFru8R98=
github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200701195026-956d362d8b4c/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ=
github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4=
github.com/pulumi/pulumi/sdk/v2 v2.5.1-0.20200626210151-8961f5b0caae h1:KuvWPTsPuiRTnYIShcjzoksbF8XQPAxnxa89m9+Lqj0=
github.com/pulumi/pulumi/sdk/v2 v2.5.1-0.20200626210151-8961f5b0caae/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8=
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/apps/v1beta1/ControllerRevision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class ControllerRevision extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ControllerRevision {
pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.")
return new ControllerRevision(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -69,7 +68,6 @@ export class ControllerRevision extends pulumi.CustomResource {
*/
/** @deprecated apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: ControllerRevisionArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
if (!args || args.revision === undefined) {
throw new Error("Missing required property 'revision'");
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/apps/v1beta1/Deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export class Deployment extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Deployment {
pulumi.log.warn("Deployment is deprecated: apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.")
return new Deployment(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -91,7 +90,6 @@ export class Deployment extends pulumi.CustomResource {
*/
/** @deprecated apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: DeploymentArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("Deployment is deprecated: apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
inputs["apiVersion"] = "apps/v1beta1";
inputs["kind"] = "Deployment";
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/apps/v1beta1/StatefulSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export class StatefulSet extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): StatefulSet {
pulumi.log.warn("StatefulSet is deprecated: apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.")
return new StatefulSet(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -82,7 +81,6 @@ export class StatefulSet extends pulumi.CustomResource {
*/
/** @deprecated apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: StatefulSetArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("StatefulSet is deprecated: apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
inputs["apiVersion"] = "apps/v1beta1";
inputs["kind"] = "StatefulSet";
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/apps/v1beta2/ControllerRevision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class ControllerRevision extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ControllerRevision {
pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.")
return new ControllerRevision(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -69,7 +68,6 @@ export class ControllerRevision extends pulumi.CustomResource {
*/
/** @deprecated apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: ControllerRevisionArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
if (!args || args.revision === undefined) {
throw new Error("Missing required property 'revision'");
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/apps/v1beta2/DaemonSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class DaemonSet extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): DaemonSet {
pulumi.log.warn("DaemonSet is deprecated: apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.")
return new DaemonSet(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -69,7 +68,6 @@ export class DaemonSet extends pulumi.CustomResource {
*/
/** @deprecated apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: DaemonSetArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("DaemonSet is deprecated: apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
inputs["apiVersion"] = "apps/v1beta2";
inputs["kind"] = "DaemonSet";
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/apps/v1beta2/Deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export class Deployment extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Deployment {
pulumi.log.warn("Deployment is deprecated: apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.")
return new Deployment(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -91,7 +90,6 @@ export class Deployment extends pulumi.CustomResource {
*/
/** @deprecated apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: DeploymentArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("Deployment is deprecated: apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
inputs["apiVersion"] = "apps/v1beta2";
inputs["kind"] = "Deployment";
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/apps/v1beta2/ReplicaSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class ReplicaSet extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ReplicaSet {
pulumi.log.warn("ReplicaSet is deprecated: apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.")
return new ReplicaSet(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -69,7 +68,6 @@ export class ReplicaSet extends pulumi.CustomResource {
*/
/** @deprecated apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: ReplicaSetArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("ReplicaSet is deprecated: apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
inputs["apiVersion"] = "apps/v1beta2";
inputs["kind"] = "ReplicaSet";
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/apps/v1beta2/StatefulSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export class StatefulSet extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): StatefulSet {
pulumi.log.warn("StatefulSet is deprecated: apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.")
return new StatefulSet(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -82,7 +81,6 @@ export class StatefulSet extends pulumi.CustomResource {
*/
/** @deprecated apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: StatefulSetArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("StatefulSet is deprecated: apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
inputs["apiVersion"] = "apps/v1beta2";
inputs["kind"] = "StatefulSet";
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/extensions/v1beta1/DaemonSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class DaemonSet extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): DaemonSet {
pulumi.log.warn("DaemonSet is deprecated: extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.")
return new DaemonSet(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -69,7 +68,6 @@ export class DaemonSet extends pulumi.CustomResource {
*/
/** @deprecated extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: DaemonSetArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("DaemonSet is deprecated: extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
inputs["apiVersion"] = "extensions/v1beta1";
inputs["kind"] = "DaemonSet";
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/extensions/v1beta1/Deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export class Deployment extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Deployment {
pulumi.log.warn("Deployment is deprecated: extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.")
return new Deployment(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -91,7 +90,6 @@ export class Deployment extends pulumi.CustomResource {
*/
/** @deprecated extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: DeploymentArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("Deployment is deprecated: extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
inputs["apiVersion"] = "extensions/v1beta1";
inputs["kind"] = "Deployment";
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/extensions/v1beta1/Ingress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export class Ingress extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Ingress {
pulumi.log.warn("Ingress is deprecated: extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.")
return new Ingress(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -83,7 +82,6 @@ export class Ingress extends pulumi.CustomResource {
*/
/** @deprecated extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters. */
constructor(name: string, args?: IngressArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("Ingress is deprecated: extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.")
let inputs: pulumi.Inputs = {};
inputs["apiVersion"] = "extensions/v1beta1";
inputs["kind"] = "Ingress";
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/extensions/v1beta1/ReplicaSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class ReplicaSet extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ReplicaSet {
pulumi.log.warn("ReplicaSet is deprecated: extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.")
return new ReplicaSet(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -69,7 +68,6 @@ export class ReplicaSet extends pulumi.CustomResource {
*/
/** @deprecated extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters. */
constructor(name: string, args?: ReplicaSetArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("ReplicaSet is deprecated: extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.")
let inputs: pulumi.Inputs = {};
inputs["apiVersion"] = "extensions/v1beta1";
inputs["kind"] = "ReplicaSet";
Expand Down
2 changes: 0 additions & 2 deletions sdk/nodejs/storage/v1beta1/CSINode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class CSINode extends pulumi.CustomResource {
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CSINode {
pulumi.log.warn("CSINode is deprecated: storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.")
return new CSINode(name, undefined, { ...opts, id: id });
}

Expand Down Expand Up @@ -65,7 +64,6 @@ export class CSINode extends pulumi.CustomResource {
*/
/** @deprecated storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode. */
constructor(name: string, args?: CSINodeArgs, opts?: pulumi.CustomResourceOptions) {
pulumi.log.warn("CSINode is deprecated: storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.")
let inputs: pulumi.Inputs = {};
if (!args || args.spec === undefined) {
throw new Error("Missing required property 'spec'");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from typing import Union
from ... import utilities, tables

warnings.warn("apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning)


class ControllerRevision(pulumi.CustomResource):
api_version: pulumi.Output[str]
Expand All @@ -32,8 +30,6 @@ class ControllerRevision(pulumi.CustomResource):
"""
Revision indicates the revision of the state represented by Data.
"""
warnings.warn("apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning)

def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None):
"""
ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.
Expand All @@ -46,7 +42,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, ki
:param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
:param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data.
"""
pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.")
if __name__ is not None:
warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning)
resource_name = __name__
Expand Down
Loading

0 comments on commit 0b07f49

Please sign in to comment.