From 9a3d6997c19177dbc59a726f404fa635bf89d364 Mon Sep 17 00:00:00 2001 From: Christopher Haar Date: Mon, 1 Jul 2024 14:26:01 +0200 Subject: [PATCH] feat(eks): set correct description for field Signed-off-by: Christopher Haar --- apis/eks/v1beta2/zz_nodegroup_types.go | 6 +++--- config/eks/config.go | 2 +- .../crds/eks.aws.upbound.io_nodegroups.yaml | 21 +++---------------- 3 files changed, 7 insertions(+), 22 deletions(-) diff --git a/apis/eks/v1beta2/zz_nodegroup_types.go b/apis/eks/v1beta2/zz_nodegroup_types.go index a6c54b0359..68a6de88ff 100755 --- a/apis/eks/v1beta2/zz_nodegroup_types.go +++ b/apis/eks/v1beta2/zz_nodegroup_types.go @@ -33,7 +33,7 @@ type LaunchTemplateInitParameters struct { // Name of the EC2 Launch Template. Conflicts with id. Name *string `json:"name,omitempty" tf:"name,omitempty"` - // EC2 Launch Template version number. While the API accepts values like $Default and $Latest, the API will convert the value to the associated version number (e.g., 1). Using the default_version or latest_version attribute of the aws_launch_template resource or data source is recommended for this argument. + // EC2 Launch Template version number. Version *string `json:"version,omitempty" tf:"version,omitempty"` } @@ -45,7 +45,7 @@ type LaunchTemplateObservation struct { // Name of the EC2 Launch Template. Conflicts with id. Name *string `json:"name,omitempty" tf:"name,omitempty"` - // EC2 Launch Template version number. While the API accepts values like $Default and $Latest, the API will convert the value to the associated version number (e.g., 1). Using the default_version or latest_version attribute of the aws_launch_template resource or data source is recommended for this argument. + // EC2 Launch Template version number. Version *string `json:"version,omitempty" tf:"version,omitempty"` } @@ -59,7 +59,7 @@ type LaunchTemplateParameters struct { // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` - // EC2 Launch Template version number. While the API accepts values like $Default and $Latest, the API will convert the value to the associated version number (e.g., 1). Using the default_version or latest_version attribute of the aws_launch_template resource or data source is recommended for this argument. + // EC2 Launch Template version number. // +kubebuilder:validation:Optional Version *string `json:"version" tf:"version,omitempty"` } diff --git a/config/eks/config.go b/config/eks/config.go index 28866c03c7..4d3a58a6f9 100644 --- a/config/eks/config.go +++ b/config/eks/config.go @@ -57,7 +57,7 @@ func Configure(p *config.Provider) { }, } r.UseAsync = true - r.MetaResource.ArgumentDocs["launch_template.version"] = `- (Required) EC2 Launch Template version number. While the API accepts values like $Default and $Latest, the API will convert the value to the associated version number (e.g., 1). Using the default_version or latest_version attribute of the aws_launch_template resource or data source is recommended for this argument.` + r.MetaResource.ArgumentDocs["launch_template.version"] = `- (Required) EC2 Launch Template version number.` r.MetaResource.ArgumentDocs["subnet_ids"] = `- Identifiers of EC2 Subnets to associate with the EKS Node Group. Amazon EKS managed node groups can be launched in both public and private subnets. If you plan to deploy load balancers to a subnet, the private subnet must have tag kubernetes.io/role/internal-elb, the public subnet must have tag kubernetes.io/role/elb.` }) p.AddResourceConfigurator("aws_eks_identity_provider_config", func(r *config.Resource) { diff --git a/package/crds/eks.aws.upbound.io_nodegroups.yaml b/package/crds/eks.aws.upbound.io_nodegroups.yaml index 7bc5919461..c948e8d35b 100644 --- a/package/crds/eks.aws.upbound.io_nodegroups.yaml +++ b/package/crds/eks.aws.upbound.io_nodegroups.yaml @@ -1715,12 +1715,7 @@ spec: id. type: string version: - description: EC2 Launch Template version number. While the - API accepts values like $Default and $Latest, the API will - convert the value to the associated version number (e.g., - 1). Using the default_version or latest_version attribute - of the aws_launch_template resource or data source is recommended - for this argument. + description: EC2 Launch Template version number. type: string type: object nodeRoleArn: @@ -2190,12 +2185,7 @@ spec: id. type: string version: - description: EC2 Launch Template version number. While the - API accepts values like $Default and $Latest, the API will - convert the value to the associated version number (e.g., - 1). Using the default_version or latest_version attribute - of the aws_launch_template resource or data source is recommended - for this argument. + description: EC2 Launch Template version number. type: string type: object nodeRoleArn: @@ -2833,12 +2823,7 @@ spec: id. type: string version: - description: EC2 Launch Template version number. While the - API accepts values like $Default and $Latest, the API will - convert the value to the associated version number (e.g., - 1). Using the default_version or latest_version attribute - of the aws_launch_template resource or data source is recommended - for this argument. + description: EC2 Launch Template version number. type: string type: object nodeRoleArn: