diff --git a/pkg/apis/v1alpha1/awsnodetemplate.go b/pkg/apis/v1alpha1/awsnodetemplate.go index 7722bdf8443b..03ba492935d4 100644 --- a/pkg/apis/v1alpha1/awsnodetemplate.go +++ b/pkg/apis/v1alpha1/awsnodetemplate.go @@ -69,6 +69,18 @@ type AWSNodeTemplateStatus struct { // cluster under the AMI selectors. // +optional AMIs []AMI `json:"amis,omitempty"` + // Licenses contains the current License Configuration Specifications + // that currently apply given the LicenseConfiguration selectors. + // +optional + Licenses []string `json:"licenses,omitempty"` + // HostResourceGroups contains the current Host Resource Groups + // that currently apply given the HostResourceGroup selectors. + // +optional + HostResourceGroups []string `json:"hostResourceGroups,omitempty"` + // Licenses contains the current License Configuration Specifications + // that currently apply given the LicenseConfiguration selectors. + // +optional + PlacementGroups []string `json:"placementGroups,omitempty"` } // AWSNodeTemplateSpec is the top level specification for the AWS Karpenter Provider. diff --git a/pkg/apis/v1alpha1/provider.go b/pkg/apis/v1alpha1/provider.go index 0fe2f8071b06..c0e1b56e189c 100644 --- a/pkg/apis/v1alpha1/provider.go +++ b/pkg/apis/v1alpha1/provider.go @@ -41,6 +41,15 @@ type AWS struct { // SecurityGroups specify the names of the security groups. // +optional SecurityGroupSelector map[string]string `json:"securityGroupSelector,omitempty" hash:"ignore"` + // LicenseConfiguration specifies the license configuration specifications to launch instances with + // +optional + LicenseSelector map[string]string `json:"licenseSelector,omitempty" hash:"ignore"` + // HostResourceGroups specific the hostResourceGroupArns to use for ec2 placement + // +optional + HostResourceGroupSelector map[string]string `json:"hostResourceGroup,omitempty" hash:"ignore"` + // PlacementGroup specifies the placement group to use for ec2 placement + // +optional + PlacementGroupSelector map[string]string `json:"placementGroup,omitempty" hash:"ignore"` // Tags to be applied on ec2 resources like instances and launch templates. // +optional Tags map[string]string `json:"tags,omitempty"` diff --git a/website/content/en/preview/concepts/node-templates.md b/website/content/en/preview/concepts/node-templates.md index 1ac2c6d4f65f..f8f6aeef6f62 100644 --- a/website/content/en/preview/concepts/node-templates.md +++ b/website/content/en/preview/concepts/node-templates.md @@ -604,8 +604,6 @@ spec: ``` licenseSelector: name: myLicense - tags: - key: value ``` ## spec.hostResourceGroupSelector