Skip to content

Commit

Permalink
Add end of standard support dates for all kubernetes versions above 1…
Browse files Browse the repository at this point in the history
….28 (#4174)

* Add end of standard support dates for all kubernetes versions above 1.28

* Update the date values to use the unambiguous date format as a string

* Update the project upgrader tool to include end of support date field when upgrading EKS-D latest releases file
  • Loading branch information
sp1999 authored Dec 31, 2024
1 parent 93b55f2 commit e367a59
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions EKSD_LATEST_RELEASES
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ releases:
- branch: 1-28
kubeVersion: v1.28.15
number: 38
endOfStandardSupport: "2024-12-31"
- branch: 1-29
kubeVersion: v1.29.11
number: 27
endOfStandardSupport: "2025-04-30"
- branch: 1-30
kubeVersion: v1.30.7
number: 20
endOfStandardSupport: "2025-08-31"
- branch: 1-31
kubeVersion: v1.31.3
number: 9
endOfStandardSupport: "2025-12-31"
7 changes: 5 additions & 2 deletions tools/version-tracker/pkg/commands/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,13 @@ func updateUpstreamProjectsTrackerFile(projectsList *types.ProjectsList, buildTo
}
b.Write([]byte("\n"))

// Create a new YAML encoder with an appropriate indentation value and encode the project list into a byte buufer
// Create a new YAML encoder with an appropriate indentation value and encode the project list into a byte buffer
yamlEncoder := goyamlv3.NewEncoder(&b)
yamlEncoder.SetIndent(2)
yamlEncoder.Encode(&projectsList)
err = yamlEncoder.Encode(&projectsList)
if err != nil {
return fmt.Errorf("encoding the project list into a byte buffer: %v", err)
}

err = os.WriteFile(upstreamProjectsTrackerFilePath, b.Bytes(), 0o644)
if err != nil {
Expand Down
9 changes: 5 additions & 4 deletions tools/version-tracker/pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ type ImageMetadata struct {
}

type EKSDistroRelease 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 EKSDistroLatestReleases struct {
Expand Down

0 comments on commit e367a59

Please sign in to comment.