Skip to content

Commit

Permalink
Add license token string to cluster spec
Browse files Browse the repository at this point in the history
  • Loading branch information
sp1999 committed Dec 25, 2024
1 parent 1b040bf commit 3a24150
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/crd/bases/anywhere.eks.amazonaws.com_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ spec:
type: array
kubernetesVersion:
type: string
licenseToken:
type: string
machineHealthCheck:
description: MachineHealthCheck allows to configure timeouts for machine
health checks. Machine Health Checks are responsible for remediating
Expand Down
9 changes: 9 additions & 0 deletions config/manifest/eksa-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4273,6 +4273,8 @@ spec:
type: array
kubernetesVersion:
type: string
licenseToken:
type: string
machineHealthCheck:
description: MachineHealthCheck allows to configure timeouts for machine
health checks. Machine Health Checks are responsible for remediating
Expand Down Expand Up @@ -5680,6 +5682,13 @@ spec:
bundle for users that configured their Prism Central with certificates
from non-publicly trusted CAs
type: string
ccmExcludeNodeIPs:
description: CcmExcludeIPs is the optional list of IP addresses that
should be excluded from the CCM IP pool for nodes. List should be
valid IP addresses and IP address ranges.
items:
type: string
type: array
credentialRef:
description: CredentialRef is the reference to the secret name that
contains the credentials for the Nutanix Prism Central. The namespace
Expand Down
4 changes: 4 additions & 0 deletions pkg/api/v1alpha1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ type ClusterSpec struct {
EksaVersion *EksaVersion `json:"eksaVersion,omitempty"`
MachineHealthCheck *MachineHealthCheck `json:"machineHealthCheck,omitempty"`
EtcdEncryption *[]EtcdEncryption `json:"etcdEncryption,omitempty"`
LicenseToken string `json:"licenseToken,omitempty"`
}

// EksaVersion is the semver identifying the release of eks-a used to populate the cluster components.
Expand Down Expand Up @@ -185,6 +186,9 @@ func (n *Cluster) Equal(o *Cluster) bool {
if !reflect.DeepEqual(n.Spec.EtcdEncryption, o.Spec.EtcdEncryption) {
return false
}
if n.Spec.LicenseToken != o.Spec.LicenseToken {
return false
}

Check warning on line 191 in pkg/api/v1alpha1/cluster_types.go

View check run for this annotation

Codecov / codecov/patch

pkg/api/v1alpha1/cluster_types.go#L190-L191

Added lines #L190 - L191 were not covered by tests

return true
}
Expand Down

0 comments on commit 3a24150

Please sign in to comment.