From 7b9ec59504237a14410924c9b75d7ef26c007950 Mon Sep 17 00:00:00 2001 From: Claudio Beatrice Date: Mon, 27 Nov 2023 15:42:53 +0100 Subject: [PATCH] feat: add max pods parameter to node pool instances schema --- pkg/apis/ekscluster/v1alpha2/private/schema.go | 3 +++ pkg/apis/ekscluster/v1alpha2/public/schema.go | 3 +++ schemas/private/ekscluster-kfd-v1alpha2.json | 3 +++ schemas/public/ekscluster-kfd-v1alpha2.json | 3 +++ 4 files changed, 12 insertions(+) diff --git a/pkg/apis/ekscluster/v1alpha2/private/schema.go b/pkg/apis/ekscluster/v1alpha2/private/schema.go index 7dc88a484..a6cdbabff 100644 --- a/pkg/apis/ekscluster/v1alpha2/private/schema.go +++ b/pkg/apis/ekscluster/v1alpha2/private/schema.go @@ -1072,6 +1072,9 @@ const ( ) type SpecKubernetesNodePoolInstance struct { + // MaxPods corresponds to the JSON schema field "maxPods". + MaxPods *int `json:"maxPods,omitempty" yaml:"maxPods,omitempty" mapstructure:"maxPods,omitempty"` + // Spot corresponds to the JSON schema field "spot". Spot *bool `json:"spot,omitempty" yaml:"spot,omitempty" mapstructure:"spot,omitempty"` diff --git a/pkg/apis/ekscluster/v1alpha2/public/schema.go b/pkg/apis/ekscluster/v1alpha2/public/schema.go index 891e4f6d0..b983ec1c3 100644 --- a/pkg/apis/ekscluster/v1alpha2/public/schema.go +++ b/pkg/apis/ekscluster/v1alpha2/public/schema.go @@ -2450,6 +2450,9 @@ const ( ) type SpecKubernetesNodePoolInstance struct { + // MaxPods corresponds to the JSON schema field "maxPods". + MaxPods *int `json:"maxPods,omitempty" yaml:"maxPods,omitempty" mapstructure:"maxPods,omitempty"` + // Spot corresponds to the JSON schema field "spot". Spot *bool `json:"spot,omitempty" yaml:"spot,omitempty" mapstructure:"spot,omitempty"` diff --git a/schemas/private/ekscluster-kfd-v1alpha2.json b/schemas/private/ekscluster-kfd-v1alpha2.json index c6d3ff35b..6a9b054f7 100644 --- a/schemas/private/ekscluster-kfd-v1alpha2.json +++ b/schemas/private/ekscluster-kfd-v1alpha2.json @@ -1981,6 +1981,9 @@ }, "volumeSize": { "type": "integer" + }, + "maxPods": { + "type": "integer" } }, "required": [ diff --git a/schemas/public/ekscluster-kfd-v1alpha2.json b/schemas/public/ekscluster-kfd-v1alpha2.json index 6d64cb4a4..8994f98bc 100644 --- a/schemas/public/ekscluster-kfd-v1alpha2.json +++ b/schemas/public/ekscluster-kfd-v1alpha2.json @@ -684,6 +684,9 @@ }, "volumeSize": { "type": "integer" + }, + "maxPods": { + "type": "integer" } }, "required": ["type"]