Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions cmd/create-upgrade-issues/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,21 @@ func main() {
{Title: "Update vpc-cni to latest supported release for current EKS version", Int: 2},
{Title: "Update kube-proxy to latest supported release for current EKS version", Int: 3},
{Title: "Update core-dns to latest supported release for current EKS version", Int: 4},
{Title: "Test EKS " + *upgradeVersion + " on test cluster", Int: 5},
{Title: "Test EKS " + *upgradeVersion + " on live-like cluster", Int: 6},
{Title: "EKS: Upgrade Production clusters to Kubernetes " + *upgradeVersion, Int: 7},
{Title: "Update vpc-cni to latest supported release for upgraded EKS version", Int: 8},
{Title: "Update kube-proxy to latest supported release for upgraded EKS version", Int: 9},
{Title: "Update core-dns to latest supported release for upgraded EKS version", Int: 10},
{Title: "Review cluster components for upgrading", Int: 11},
{Title: "Review and upgrade kube-state-metrics for the upgraded EKS version " + *upgradeVersion, Int: 12},
{Title: "Upgrade cluster autoscaler for EKS version " + *upgradeVersion, Int: 13},
{Title: "Upgrade cluster descheduler for EKS version " + *upgradeVersion, Int: 14},
{Title: "Post EKS version " + *upgradeVersion + " Cleanup", Int: 15},
{Title: "Add deprecated apis from " + *upgradeVersion + " to Gatekeeper", Int: 16},
{Title: "Update Upgrade runbook and Cluster Upgrade Issue Template", Int: 17},
{Title: "Update guardduty to latest supported release for current EKS version", Int: 5},
{Title: "Test EKS " + *upgradeVersion + " on test cluster", Int: 6},
{Title: "Test EKS " + *upgradeVersion + " on live-like cluster", Int: 7},
{Title: "EKS: Upgrade Production clusters to Kubernetes " + *upgradeVersion, Int: 8},
{Title: "Update vpc-cni to latest supported release for upgraded EKS version", Int: 9},
{Title: "Update kube-proxy to latest supported release for upgraded EKS version", Int: 10},
{Title: "Update core-dns to latest supported release for upgraded EKS version", Int: 11},
{Title: "Update guardduty to latest supported release for upgraded EKS version", Int: 12},
{Title: "Review cluster components for upgrading", Int: 13},
{Title: "Review and upgrade kube-state-metrics for the upgraded EKS version " + *upgradeVersion, Int: 14},
{Title: "Upgrade cluster autoscaler for EKS version " + *upgradeVersion, Int: 15},
{Title: "Upgrade cluster descheduler for EKS version " + *upgradeVersion, Int: 16},
{Title: "Post EKS version " + *upgradeVersion + " Cleanup", Int: 17},
{Title: "Add deprecated apis from " + *upgradeVersion + " to Gatekeeper", Int: 18},
{Title: "Update Upgrade runbook and Cluster Upgrade Issue Template", Int: 19},
}

client, err := utils.AppClient(ghAccess.Key, ghAccess.AppID, ghAccess.InstallID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,37 @@ See the [Amazon EKS add-ons](https://docs.aws.amazon.com/eks/latest/userguide/ek

## Issue 5:

### Update guardduty to latest supported release for current EKS version

Check for the latest supported addon release for the current EKS version and update the clusters
[Runbook link](https://runbooks.cloud-platform.service.justice.gov.uk/upgrade-eks-addons.html#listing-available-eks-upgrades)

Production Clusters Checklist:

- [ ] live-2
- [ ] manager
- [ ] live

See the [Amazon EKS add-ons](https://docs.aws.amazon.com/eks/latest/userguide/eks-add-ons.html) documentation for more information about addons, or find the latest versions for these EKS add-ons directly:

- [coredns](https://docs.aws.amazon.com/eks/latest/userguide/managing-coredns.html)
- [kube-proxy](https://docs.aws.amazon.com/eks/latest/userguide/managing-kube-proxy.html)
- [vpc-cni](https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html)
- [runtime-monitoring](https://docs.aws.amazon.com/guardduty/latest/ug/how-does-runtime-monitoring-work.html)

## Issue 6:

### Test EKS <upgrade-version> on test cluster

Follow instructions from Upgrade runbook: https://runbooks.cloud-platform.service.justice.gov.uk/upgrade-eks-cluster.html#upgrade-eks-cluster

## Issue 6:
## Issue 7:

### Test EKS <upgrade-version> on live-like cluster

Follow instructions from creating a live like cluster runbook: https://runbooks.cloud-platform.service.justice.gov.uk/creating-a-live-like.html#creating-a-live-like-cluster

## Issue 7:
## Issue 8:

### EKS: Upgrade Production clusters to Kubernetes <upgrade-version>

Expand All @@ -103,7 +123,7 @@ Production Clusters Checklist:
- [ ] manager
- [ ] live

## Issue 8:
## Issue 9:

### Update vpc-cni to latest supported release for upgraded EKS version

Expand All @@ -123,7 +143,7 @@ See the [Amazon EKS add-ons](https://docs.aws.amazon.com/eks/latest/userguide/ek
- [vpc-cni](https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html)
- [runtime-monitoring](https://docs.aws.amazon.com/guardduty/latest/ug/how-does-runtime-monitoring-work.html)

## Issue 9:
## Issue 10:

### Update kube-proxy to latest supported release for upgraded EKS version

Expand All @@ -143,7 +163,7 @@ See the [Amazon EKS add-ons](https://docs.aws.amazon.com/eks/latest/userguide/ek
- [vpc-cni](https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html)
- [runtime-monitoring](https://docs.aws.amazon.com/guardduty/latest/ug/how-does-runtime-monitoring-work.html)

## Issue 10:
## Issue 11:

### Update core-dns to latest supported release for upgraded EKS version

Expand All @@ -163,15 +183,35 @@ See the [Amazon EKS add-ons](https://docs.aws.amazon.com/eks/latest/userguide/ek
- [vpc-cni](https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html)
- [runtime-monitoring](https://docs.aws.amazon.com/guardduty/latest/ug/how-does-runtime-monitoring-work.html)

## Issue 11:
## Issue 12:

### Update guardduty to latest supported release for upgraded EKS version

Check for the latest supported addon version for the upgraded EKS version and update the clusters
[Runbook link](https://runbooks.cloud-platform.service.justice.gov.uk/upgrade-eks-addons.html#listing-available-eks-upgrades)

Production Clusters Checklist:

- [ ] live-2
- [ ] manager
- [ ] live

See the [Amazon EKS add-ons](https://docs.aws.amazon.com/eks/latest/userguide/eks-add-ons.html) documentation for more information about addons, or find the latest versions for these EKS add-ons directly:

- [coredns](https://docs.aws.amazon.com/eks/latest/userguide/managing-coredns.html)
- [kube-proxy](https://docs.aws.amazon.com/eks/latest/userguide/managing-kube-proxy.html)
- [vpc-cni](https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html)
- [runtime-monitoring](https://docs.aws.amazon.com/guardduty/latest/ug/how-does-runtime-monitoring-work.html)

## Issue 13:

### Review cluster components for upgrading

https://runbooks.cloud-platform.service.justice.gov.uk/container-images.html#container-images-used-by-cluster-components

Review the compatibility matrix for all cluster components and verify if the image is compatible with the upgraded Kubernetes version

## Issue 12:
## Issue 14:

### Review and upgrade kube-state-metrics for the upgraded EKS version <upgrade-version>

Expand All @@ -181,7 +221,7 @@ https://github.com/kubernetes/kube-state-metrics?tab=readme-ov-file#compatibilit

Review the compatibility matrix of kube-state-metrics and verify if the image is compatible with the upgraded Kubernetes version. If the version is a mismatch, check if the whole kube-prometheus-chart needs updating to get the default version of kube-state-metrics from the chart-> values. Otherwise, pin the kube-state-metrics image to match the Kubernetes version.

## Issue 13:
## Issue 15:

### Upgrade cluster autoscaler for EKS version <upgrade-version>

Expand All @@ -190,7 +230,7 @@ The Cloud Platform EKS Cluster is in Kubernetes version <upgrade-version>. Hence
https://github.com/kubernetes/autoscaler/tree/master/charts/cluster-autoscaler
https://github.com/ministryofjustice/cloud-platform-terraform-cluster-autoscaler

## Issue 14:
## Issue 16:

### Upgrade cluster descheduler for EKS version <upgrade-version>

Expand All @@ -199,7 +239,7 @@ The Cloud Platform EKS Cluster is in Kubernetes version <upgrade-version>. Hence
https://github.com/kubernetes-sigs/descheduler?tab=readme-ov-file#%EF%B8%8F--documentation-versions-by-release
https://github.com/ministryofjustice/cloud-platform-terraform-descheduler

## Issue 15:
## Issue 17:

### Post EKS version <upgrade-version> Cleanup

Expand All @@ -210,13 +250,13 @@ Update tools-image for kubectl version
Update cloud-platform-cli for kubectl version
Update concourse pipelines to use updated tools-image and cli

## Issue 16:
## Issue 18:

### Add deprecated apis from <upgrade-version> to Gatekeeper

Following upgrade to EKS <upgrade-version>, create a new [gatekeeper constraint](https://github.com/ministryofjustice/cloud-platform-terraform-gatekeeper/tree/main/resources/constraints) that stops people from using any apis that are now deprecated as a part of the <upgrade-version> upgrade.

## Issue 17:
## Issue 19:

### Update Upgrade runbook and Cluster Upgrade Issue Template

Expand Down
6 changes: 3 additions & 3 deletions cmd/create-upgrade-issues/utils/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ func CreateIssue(client *github.Client, ghAccess GitHubAccess, issue string, upg
if issue.Title == title {
found = true
switch issue.Int {
case 1, 2, 3, 4, 5, 6:
case 1, 2, 3, 4, 5, 6, 7:
labels = append(labels, "eks-"+upgradeVersion+"-upgrade", "eks-pre-upgrade")
case 7:
case 8:
labels = append(labels, "eks-"+upgradeVersion+"-upgrade")
case 8, 9, 11, 12, 13, 14, 15, 16:
case 9, 10, 11, 12, 13, 14, 15, 16, 17, 18:
labels = append(labels, "eks-"+upgradeVersion+"-upgrade", "eks-post-upgrade")
default:
fmt.Println("This issue isnt listed please add to Issues struct via variable issuesTitles, default label added:", title)
Expand Down
Loading