Skip to content

Commit

Permalink
Adding fields to API
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Cole committed Sep 4, 2023
1 parent 13e70f6 commit 0a56ee8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
12 changes: 12 additions & 0 deletions pkg/apis/v1alpha1/awsnodetemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions pkg/apis/v1alpha1/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 0 additions & 2 deletions website/content/en/preview/concepts/node-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,6 @@ spec:
```
licenseSelector:
name: myLicense
tags:
key: value
```

## spec.hostResourceGroupSelector
Expand Down

0 comments on commit 0a56ee8

Please sign in to comment.