Skip to content

Commit 65b212c

Browse files
committed
Don't require version to be set
Skip equal test if version is unset Signed-off-by: Dinar Valeev <[email protected]>
1 parent a10fc5d commit 65b212c

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ spec:
120120
type: string
121121
required:
122122
- name
123-
- version
124123
type: object
125124
type: array
126125
associateOIDCProvider:

controlplane/eks/api/v1beta1/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ type Addon struct {
144144
// +kubebuilder:validation:Required
145145
Name string `json:"name"`
146146
// Version is the version of the addon to use
147+
// +optional
147148
Version string `json:"version"`
148149
// Configuration of the EKS addon
149150
// +optional

pkg/eks/addons/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (e *EKSAddon) IsEqual(other *EKSAddon, includeTags bool) bool {
4040
if e == other {
4141
return true
4242
}
43-
if !cmp.Equal(e.Version, other.Version) {
43+
if !cmp.Equal(e.Version, other.Version) && e.Version != nil {
4444
return false
4545
}
4646
if !cmp.Equal(e.ServiceAccountRoleARN, other.ServiceAccountRoleARN) {

0 commit comments

Comments
 (0)