Skip to content

Commit

Permalink
Remove cluster provider from schema (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxxstorm authored Jul 25, 2022
1 parent 077b0a6 commit e11995e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 48 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Unreleased
(None)
- Remove cluster provider from schema
[#746](https://github.com/pulumi/pulumi-eks/pull/746)

## 0.41.2 (Released Jul 12, 2022)
- Allow removal of default Kubernetes addons
Expand Down
6 changes: 0 additions & 6 deletions dotnet/Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ public partial class Cluster : Pulumi.ComponentResource
[Output("nodeSecurityGroup")]
public Output<Pulumi.Aws.Ec2.SecurityGroup> NodeSecurityGroup { get; private set; } = null!;

/// <summary>
/// A Kubernetes resource provider that can be used to deploy into this cluster.
/// </summary>
[Output("provider")]
public Output<Pulumi.Kubernetes.Provider> Provider { get; private set; } = null!;


/// <summary>
/// Create a Cluster resource with the given unique name, arguments, and options.
Expand Down
14 changes: 0 additions & 14 deletions java/src/main/java/com/pulumi/eks/Cluster.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,6 @@ public Output<Object> kubeconfig() {
public Output<SecurityGroup> nodeSecurityGroup() {
return this.nodeSecurityGroup;
}
/**
* A Kubernetes resource provider that can be used to deploy into this cluster.
*
*/
@Export(name="provider", type=com.pulumi.kubernetes.Provider.class, parameters={})
private Output<com.pulumi.kubernetes.Provider> provider;

/**
* @return A Kubernetes resource provider that can be used to deploy into this cluster.
*
*/
public Output<com.pulumi.kubernetes.Provider> provider() {
return this.provider;
}

/**
*
Expand Down
10 changes: 5 additions & 5 deletions provider/cmd/pulumi-gen-eks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ func generateSchema() schema.PackageSpec {
TypeSpec: schema.TypeSpec{Ref: awsRef("#/provider")},
Description: "The AWS resource provider.",
},
"provider": {
TypeSpec: schema.TypeSpec{Ref: k8sRef("#/provider")},
Description: "A Kubernetes resource provider that can be used to deploy into this cluster.",
},
// "provider": {
// TypeSpec: schema.TypeSpec{Ref: k8sRef("#/provider")},
// Description: "A Kubernetes resource provider that can be used to deploy into this cluster.",
// },
"clusterSecurityGroup": {
TypeSpec: schema.TypeSpec{Ref: awsRef("#/resources/aws:ec2%2FsecurityGroup:SecurityGroup")},
Description: "The security group for the EKS cluster.",
Expand Down Expand Up @@ -201,7 +201,7 @@ func generateSchema() schema.PackageSpec {
Required: []string{
"kubeconfig",
"awsProvider",
"provider",
// "provider",
"clusterSecurityGroup",
"instanceRoles",
"nodeSecurityGroup",
Expand Down
5 changes: 0 additions & 5 deletions provider/cmd/pulumi-resource-eks/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -593,16 +593,11 @@
"nodeSecurityGroup": {
"$ref": "/aws/v5.4.0/schema.json#/resources/aws:ec2%2FsecurityGroup:SecurityGroup",
"description": "The security group for the cluster's nodes."
},
"provider": {
"$ref": "/kubernetes/v3.0.0/schema.json#/provider",
"description": "A Kubernetes resource provider that can be used to deploy into this cluster."
}
},
"required": [
"kubeconfig",
"awsProvider",
"provider",
"clusterSecurityGroup",
"instanceRoles",
"nodeSecurityGroup",
Expand Down
9 changes: 0 additions & 9 deletions python/pulumi_eks/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,6 @@ def _internal_init(__self__,
__props__.__dict__["eks_cluster_ingress_rule"] = None
__props__.__dict__["kubeconfig"] = None
__props__.__dict__["node_security_group"] = None
__props__.__dict__["provider"] = None
super(Cluster, __self__).__init__(
'eks:index:Cluster',
resource_name,
Expand Down Expand Up @@ -1526,14 +1525,6 @@ def node_security_group(self) -> pulumi.Output['pulumi_aws.ec2.SecurityGroup']:
"""
return pulumi.get(self, "node_security_group")

@property
@pulumi.getter
def provider(self) -> pulumi.Output['pulumi_kubernetes.Provider']:
"""
A Kubernetes resource provider that can be used to deploy into this cluster.
"""
return pulumi.get(self, "provider")

@pulumi.output_type
class GetKubeconfigResult:
def __init__(__self__, result=None):
Expand Down
8 changes: 0 additions & 8 deletions sdk/go/eks/cluster.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e11995e

Please sign in to comment.