diff --git a/charts/karpenter-crd/templates/karpenter.azure.com_aksnodeclasses.yaml b/charts/karpenter-crd/templates/karpenter.azure.com_aksnodeclasses.yaml index fb3d0ab25..ddf2aea44 100644 --- a/charts/karpenter-crd/templates/karpenter.azure.com_aksnodeclasses.yaml +++ b/charts/karpenter-crd/templates/karpenter.azure.com_aksnodeclasses.yaml @@ -168,7 +168,7 @@ spec: default: 128 description: osDiskSizeGB is the size of the OS disk in GB. format: int32 - minimum: 100 + minimum: 30 type: integer tags: additionalProperties: diff --git a/pkg/apis/crds/karpenter.azure.com_aksnodeclasses.yaml b/pkg/apis/crds/karpenter.azure.com_aksnodeclasses.yaml index fb3d0ab25..ddf2aea44 100644 --- a/pkg/apis/crds/karpenter.azure.com_aksnodeclasses.yaml +++ b/pkg/apis/crds/karpenter.azure.com_aksnodeclasses.yaml @@ -168,7 +168,7 @@ spec: default: 128 description: osDiskSizeGB is the size of the OS disk in GB. format: int32 - minimum: 100 + minimum: 30 type: integer tags: additionalProperties: diff --git a/pkg/apis/v1alpha2/aksnodeclass.go b/pkg/apis/v1alpha2/aksnodeclass.go index 49f3764df..4d09d269c 100644 --- a/pkg/apis/v1alpha2/aksnodeclass.go +++ b/pkg/apis/v1alpha2/aksnodeclass.go @@ -33,7 +33,7 @@ type AKSNodeClassSpec struct { // +optional VNETSubnetID *string `json:"vnetSubnetID,omitempty"` // +kubebuilder:default=128 - // +kubebuilder:validation:Minimum=100 + // +kubebuilder:validation:Minimum=30 // osDiskSizeGB is the size of the OS disk in GB. OSDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"` // ImageID is the ID of the image that instances use. diff --git a/pkg/controllers/nodeclass/hash/suite_test.go b/pkg/controllers/nodeclass/hash/suite_test.go index 0fac30d3e..23ccf597a 100644 --- a/pkg/controllers/nodeclass/hash/suite_test.go +++ b/pkg/controllers/nodeclass/hash/suite_test.go @@ -114,7 +114,7 @@ var _ = Describe("NodeClass Hash Controller", func() { }, Entry("ImageFamily Drift", &v1alpha2.AKSNodeClass{Spec: v1alpha2.AKSNodeClassSpec{ImageFamily: lo.ToPtr("AzureLinux")}}), - Entry("OSDiskSizeGB Drift", &v1alpha2.AKSNodeClass{Spec: v1alpha2.AKSNodeClassSpec{OSDiskSizeGB: lo.ToPtr(int32(100))}}), + Entry("OSDiskSizeGB Drift", &v1alpha2.AKSNodeClass{Spec: v1alpha2.AKSNodeClassSpec{OSDiskSizeGB: lo.ToPtr(int32(30))}}), Entry("Tags Drift", &v1alpha2.AKSNodeClass{Spec: v1alpha2.AKSNodeClassSpec{Tags: map[string]string{"keyTag-test-3": "valueTag-test-3"}}}), ) It("should update AKSNodeClass-hash-version annotation when the AKSNodeClass-hash-version on the NodeClass does not match with the controller hash version", func() {