Skip to content

Commit

Permalink
update schema and generated deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud Saada committed Apr 22, 2020
1 parent eadbd29 commit 9634ce1
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 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
ASGMetricsCollection []MetricsCollection `json:"metricsCollection,omitempty"`
ASGMetricsCollection []MetricsCollection `json:"asgMetricsCollection,omitempty"`

// +optional
EBSOptimized *bool `json:"ebsOptimized,omitempty"`
Expand Down
28 changes: 28 additions & 0 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.

17 changes: 17 additions & 0 deletions userdocs/src/usage/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,18 @@ ManagedNodeGroup:
- ScalingConfig
- privateNetworking
type: object
MetricsCollection:
additionalProperties: false
properties:
granularity:
type: string
metrics:
items:
type: string
type: array
required:
- granularity
type: object
Network:
additionalProperties: false
properties:
Expand All @@ -369,6 +381,11 @@ NodeGroup:
type: string
amiFamily:
type: string
asgMetricsCollection:
items:
$ref: '#/definitions/MetricsCollection'
$schema: http://json-schema.org/draft-04/schema#
type: array
availabilityZones:
items:
type: string
Expand Down

0 comments on commit 9634ce1

Please sign in to comment.