Skip to content

Commit

Permalink
backup - 04/20/20 12:37:23 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud Saada committed Apr 20, 2020
1 parent 10a8a3b commit 9631ca4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions pkg/apis/eksctl.io/v1alpha5/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ type NodeGroup struct {
// +optional
MaxSize *int `json:"maxSize,omitempty"`
// +optional
MetricsCollection []MetricsCollection `json:"metricsCollection,omitempty"`
ASGMetricsCollection []MetricsCollection `json:"metricsCollection,omitempty"`

// +optional
EBSOptimized *bool `json:"ebsOptimized,omitempty"`
Expand Down Expand Up @@ -806,8 +806,6 @@ type ScalingConfig struct {
MinSize *int `json:"minSize,omitempty"`
// +optional
MaxSize *int `json:"maxSize,omitempty"`
// +optional
MetricsCollection []MetricsCollection `json:"metricsCollection,omitempty"`
}

// ManagedNodeGroup defines an EKS-managed nodegroup
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/eksctl.io/v1alpha5/zz_generated.deepcopy.go

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

4 changes: 2 additions & 2 deletions pkg/cfn/builder/nodegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ func nodeGroupResource(launchTemplateName *gfn.Value, vpcZoneIdentifier interfac
if ng.MaxSize != nil {
ngProps["MaxSize"] = fmt.Sprintf("%d", *ng.MaxSize)
}
if len(ng.MetricsCollection) > 0 {
ngProps["MetricsCollection"] = ng.MetricsCollection
if len(ng.ASGMetricsCollection) > 0 {
ngProps["ASGMetricsCollection"] = ng.ASGMetricsCollection
}
if len(ng.ClassicLoadBalancerNames) > 0 {
ngProps["LoadBalancerNames"] = ng.ClassicLoadBalancerNames
Expand Down

0 comments on commit 9631ca4

Please sign in to comment.