Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aliases for several resource kinds #990

Merged
merged 2 commits into from
Feb 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## HEAD (Unreleased)

### Bug fixes

- Fix aliases for several resource kinds. (https://github.com/pulumi/pulumi-kubernetes/pull/990).

## 1.5.3 (February 11, 2020)

### Bug fixes
Expand Down
18 changes: 10 additions & 8 deletions pkg/gen/typegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -1231,15 +1231,17 @@ func additionalSecretOutputs(gvk schema.GroupVersionKind) []string {
}
}

// aliasesForGVK returns a list of alias strings for a given GVK. These values are derived from the Kubernetes
// API docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/
func aliasesForGVK(gvk schema.GroupVersionKind) []string {
kind := kinds.Kind(gvk.Kind)

switch kind {
case kinds.ClusterRole, kinds.ClusterRoleBinding, kinds.Role, kinds.RoleBinding:
return []string{
fmt.Sprintf("kubernetes:rbac/v1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:rbac/v1beta1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:rbac/v1alpha1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:rbac.authorization.k8s.io/v1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:rbac.authorization.k8s.io/v1beta1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:rbac.authorization.k8s.io/v1alpha1:%s", gvk.Kind),
}
case kinds.DaemonSet, kinds.ReplicaSet:
return []string{
Expand All @@ -1256,12 +1258,12 @@ func aliasesForGVK(gvk schema.GroupVersionKind) []string {
}
case kinds.Ingress:
return []string{
fmt.Sprintf("kubernetes:networking/v1beta1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:networking.k8s.io/v1beta1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:extensions/v1beta1:%s", gvk.Kind),
}
case kinds.NetworkPolicy:
return []string{
fmt.Sprintf("kubernetes:networking/v1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:networking.k8s.io/v1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:extensions/v1beta1:%s", gvk.Kind),
}
case kinds.PodSecurityPolicy:
Expand All @@ -1271,9 +1273,9 @@ func aliasesForGVK(gvk schema.GroupVersionKind) []string {
}
case kinds.PriorityClass:
return []string{
fmt.Sprintf("kubernetes:scheduling/v1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:scheduling/v1beta1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:scheduling/v1alpha1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:scheduling.k8s.io/v1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:scheduling.k8s.io/v1beta1:%s", gvk.Kind),
fmt.Sprintf("kubernetes:scheduling.k8s.io/v1alpha1:%s", gvk.Kind),
}
default:
return []string{}
Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/extensions/v1beta1/Ingress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:networking/v1beta1:Ingress", name: name },
{ parent: opts.parent, type: "kubernetes:networking.k8s.io/v1beta1:Ingress", name: name },
{ parent: opts.parent, type: "kubernetes:extensions/v1beta1:Ingress", name: name },
],
});
Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/extensions/v1beta1/NetworkPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:networking/v1:NetworkPolicy", name: name },
{ parent: opts.parent, type: "kubernetes:networking.k8s.io/v1:NetworkPolicy", name: name },
{ parent: opts.parent, type: "kubernetes:extensions/v1beta1:NetworkPolicy", name: name },
],
});
Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/networking/v1/NetworkPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:networking/v1:NetworkPolicy", name: name },
{ parent: opts.parent, type: "kubernetes:networking.k8s.io/v1:NetworkPolicy", name: name },
{ parent: opts.parent, type: "kubernetes:extensions/v1beta1:NetworkPolicy", name: name },
],
});
Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/networking/v1beta1/Ingress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:networking/v1beta1:Ingress", name: name },
{ parent: opts.parent, type: "kubernetes:networking.k8s.io/v1beta1:Ingress", name: name },
{ parent: opts.parent, type: "kubernetes:extensions/v1beta1:Ingress", name: name },
],
});
Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1/ClusterRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1/ClusterRoleBinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1/Role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:Role", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1/RoleBinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1alpha1/ClusterRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1alpha1/ClusterRoleBinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1alpha1/Role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:Role", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1alpha1/RoleBinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1beta1/ClusterRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1beta1/ClusterRoleBinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1beta1/Role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:Role", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:Role", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/rbac/v1beta1/RoleBinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:rbac/v1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1beta1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac/v1alpha1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding", name: name },
{ parent: opts.parent, type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/scheduling/v1/PriorityClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:scheduling/v1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling/v1beta1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling/v1alpha1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling.k8s.io/v1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling.k8s.io/v1beta1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/scheduling/v1alpha1/PriorityClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:scheduling/v1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling/v1beta1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling/v1alpha1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling.k8s.io/v1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling.k8s.io/v1beta1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass", name: name },
],
});

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/scheduling/v1beta1/PriorityClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ import { getVersion } from "../../version";

const _opts = pulumi.mergeOptions(opts, {
aliases: [
{ parent: opts.parent, type: "kubernetes:scheduling/v1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling/v1beta1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling/v1alpha1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling.k8s.io/v1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling.k8s.io/v1beta1:PriorityClass", name: name },
{ parent: opts.parent, type: "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass", name: name },
],
});

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=

parent = opts.parent if opts and opts.parent else None
aliases = [
pulumi.Alias(parent=parent, type_="kubernetes:networking/v1beta1:Ingress", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:networking.k8s.io/v1beta1:Ingress", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:extensions/v1beta1:Ingress", name=resource_name),
]
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=

parent = opts.parent if opts and opts.parent else None
aliases = [
pulumi.Alias(parent=parent, type_="kubernetes:networking/v1:NetworkPolicy", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:networking.k8s.io/v1:NetworkPolicy", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:extensions/v1beta1:NetworkPolicy", name=resource_name),
]
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=

parent = opts.parent if opts and opts.parent else None
aliases = [
pulumi.Alias(parent=parent, type_="kubernetes:networking/v1:NetworkPolicy", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:networking.k8s.io/v1:NetworkPolicy", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:extensions/v1beta1:NetworkPolicy", name=resource_name),
]
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=

parent = opts.parent if opts and opts.parent else None
aliases = [
pulumi.Alias(parent=parent, type_="kubernetes:networking/v1beta1:Ingress", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:networking.k8s.io/v1beta1:Ingress", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:extensions/v1beta1:Ingress", name=resource_name),
]
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(
Expand Down
6 changes: 3 additions & 3 deletions sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ def __init__(self, resource_name, opts=None, aggregation_rule=None, metadata=Non

parent = opts.parent if opts and opts.parent else None
aliases = [
pulumi.Alias(parent=parent, type_="kubernetes:rbac/v1:ClusterRole", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:rbac/v1beta1:ClusterRole", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:rbac/v1alpha1:ClusterRole", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole", name=resource_name),
pulumi.Alias(parent=parent, type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole", name=resource_name),
]
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(
version=version.get_version(),
Expand Down
Loading