Skip to content

Commit

Permalink
Add end of standard support field to EKS-A bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
sp1999 committed Dec 27, 2024
1 parent 2d73db2 commit 2a2eeb3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
2 changes: 2 additions & 0 deletions config/crd/bases/anywhere.eks.amazonaws.com_bundles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,8 @@ spec:
- components
- diagnosticCollector
type: object
endOfStandardSupport:
type: string
etcdadmBootstrap:
properties:
components:
Expand Down
3 changes: 3 additions & 0 deletions config/manifest/eksa-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,8 @@ spec:
- components
- diagnosticCollector
type: object
endOfStandardSupport:
type: string
etcdadmBootstrap:
properties:
components:
Expand Down Expand Up @@ -3453,6 +3455,7 @@ spec:
- docker
- eksD
- eksa
- endOfStandardSupport
- etcdadmBootstrap
- etcdadmController
- flux
Expand Down
1 change: 1 addition & 0 deletions release/api/v1alpha1/bundle_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func init() {

type VersionsBundle struct {
KubeVersion string `json:"kubeVersion"`
EndOfStandardSupport string `json:"endOfStandardSupport,omitempty"`
EksD EksDRelease `json:"eksD"`
CertManager CertManagerBundle `json:"certManager"`
ClusterAPI CoreClusterAPI `json:"clusterAPI"`
Expand Down
4 changes: 4 additions & 0 deletions release/cli/pkg/bundles/bundles.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func GetVersionsBundles(r *releasetypes.ReleaseConfig, imageDigests releasetypes
number := strconv.Itoa(release.Number)
dev := release.Dev
kubeVersion := release.KubeVersion
endOfStandardSupport := release.EndOfStandardSupport
shortKubeVersion := strings.Join(strings.SplitN(kubeVersion[1:], ".", 3)[:2], ".")

if !slices.Contains(supportedK8sVersions, channel) {
Expand Down Expand Up @@ -206,6 +207,9 @@ func GetVersionsBundles(r *releasetypes.ReleaseConfig, imageDigests releasetypes
Nutanix: nutanixBundle,
Upgrader: upgraderBundle,
}
if endOfStandardSupport != "" {
versionsBundle.EndOfStandardSupport = endOfStandardSupport
}
versionsBundles = append(versionsBundles, versionsBundle)
}
return versionsBundles, nil
Expand Down
9 changes: 5 additions & 4 deletions release/cli/pkg/filereader/file_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ import (
)

type EksDLatestRelease struct {
Branch string `json:"branch"`
KubeVersion string `json:"kubeVersion"`
Number int `json:"number"`
Dev bool `json:"dev,omitempty"`
Branch string `json:"branch"`
KubeVersion string `json:"kubeVersion"`
Number int `json:"number"`
Dev bool `json:"dev,omitempty"`
EndOfStandardSupport string `json:"endOfStandardSupport,omitempty"`
}

type EksDLatestReleases struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,8 @@ spec:
- components
- diagnosticCollector
type: object
endOfStandardSupport:
type: string
etcdadmBootstrap:
properties:
components:
Expand Down

0 comments on commit 2a2eeb3

Please sign in to comment.