Skip to content

Commit

Permalink
fix: fix typos on the apisv1 (#7277)
Browse files Browse the repository at this point in the history
Signed-off-by: Vacant2333 <vacant2333@gmail.com>
  • Loading branch information
Vacant2333 authored Nov 30, 2024
1 parent b648fbc commit b8aea98
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ spec:
additionalProperties:
type: string
description: |-
Tags is a map of key/value tags used to select subnets
Tags is a map of key/value tags used to select amis.
Specifying '*' for a value selects all values for a given tag key.
maxProperties: 20
type: object
Expand Down Expand Up @@ -485,7 +485,7 @@ spec:
additionalProperties:
type: string
description: |-
Tags is a map of key/value tags used to select subnets
Tags is a map of key/value tags used to select security groups.
Specifying '*' for a value selects all values for a given tag key.
maxProperties: 20
type: object
Expand Down Expand Up @@ -695,7 +695,7 @@ spec:
type: string
securityGroups:
description: |-
SecurityGroups contains the current Security Groups values that are available to the
SecurityGroups contains the current security group values that are available to the
cluster under the SecurityGroups selectors.
items:
description: SecurityGroup contains resolved SecurityGroup selector values utilized for node launch
Expand All @@ -712,7 +712,7 @@ spec:
type: array
subnets:
description: |-
Subnets contains the current Subnet values that are available to the
Subnets contains the current subnet values that are available to the
cluster under the subnet selectors.
items:
description: Subnet contains resolved Subnet selector values utilized for node launch
Expand Down
8 changes: 4 additions & 4 deletions pkg/apis/crds/karpenter.k8s.aws_ec2nodeclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ spec:
additionalProperties:
type: string
description: |-
Tags is a map of key/value tags used to select subnets
Tags is a map of key/value tags used to select amis.
Specifying '*' for a value selects all values for a given tag key.
maxProperties: 20
type: object
Expand Down Expand Up @@ -485,7 +485,7 @@ spec:
additionalProperties:
type: string
description: |-
Tags is a map of key/value tags used to select subnets
Tags is a map of key/value tags used to select security groups.
Specifying '*' for a value selects all values for a given tag key.
maxProperties: 20
type: object
Expand Down Expand Up @@ -695,7 +695,7 @@ spec:
type: string
securityGroups:
description: |-
SecurityGroups contains the current Security Groups values that are available to the
SecurityGroups contains the current security group values that are available to the
cluster under the SecurityGroups selectors.
items:
description: SecurityGroup contains resolved SecurityGroup selector values utilized for node launch
Expand All @@ -712,7 +712,7 @@ spec:
type: array
subnets:
description: |-
Subnets contains the current Subnet values that are available to the
Subnets contains the current subnet values that are available to the
cluster under the subnet selectors.
items:
description: Subnet contains resolved Subnet selector values utilized for node launch
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/v1/ec2nodeclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ type SubnetSelectorTerm struct {
// SecurityGroupSelectorTerm defines selection logic for a security group used by Karpenter to launch nodes.
// If multiple fields are used for selection, the requirements are ANDed.
type SecurityGroupSelectorTerm struct {
// Tags is a map of key/value tags used to select subnets
// Tags is a map of key/value tags used to select security groups.
// Specifying '*' for a value selects all values for a given tag key.
// +kubebuilder:validation:XValidation:message="empty tag keys or values aren't supported",rule="self.all(k, k != '' && self[k] != '')"
// +kubebuilder:validation:MaxProperties:=20
Expand Down Expand Up @@ -184,7 +184,7 @@ type AMISelectorTerm struct {
// +kubebuilder:validation:MaxLength=30
// +optional
Alias string `json:"alias,omitempty"`
// Tags is a map of key/value tags used to select subnets
// Tags is a map of key/value tags used to select amis.
// Specifying '*' for a value selects all values for a given tag key.
// +kubebuilder:validation:XValidation:message="empty tag keys or values aren't supported",rule="self.all(k, k != '' && self[k] != '')"
// +kubebuilder:validation:MaxProperties:=20
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/v1/ec2nodeclass_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ type AMI struct {

// EC2NodeClassStatus contains the resolved state of the EC2NodeClass
type EC2NodeClassStatus struct {
// Subnets contains the current Subnet values that are available to the
// Subnets contains the current subnet values that are available to the
// cluster under the subnet selectors.
// +optional
Subnets []Subnet `json:"subnets,omitempty"`
// SecurityGroups contains the current Security Groups values that are available to the
// SecurityGroups contains the current security group values that are available to the
// cluster under the SecurityGroups selectors.
// +optional
SecurityGroups []SecurityGroup `json:"securityGroups,omitempty"`
Expand Down

0 comments on commit b8aea98

Please sign in to comment.