Skip to content

Commit

Permalink
fixup! style: 💄 create one ticket per upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Jan 18, 2024
1 parent 6309ac8 commit bab3b57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scripts/eks-addon-updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ do
# get latest supported addon version for the cluster/k8s version
LATEST_SUPPORTED_ADDON_VERSION_FOR_KUBERNETES_VERSION=$(aws eks describe-addon-versions --addon-name "$CLUSTER_ADDON" --kubernetes-version "$CLUSTER_VERSION" | jq -r '.addons[0].addonVersions[0].addonVersion')

TITLE="EKS addon ($CLUSTER): Update $CLUSTER_ADDON from $CLUSTER_ADDON_VERSION to the latest version"
TITLE="EKS addon Production Clusters: Update $CLUSTER_ADDON from $CLUSTER_ADDON_VERSION to the latest version"

if [[ "$LATEST_SUPPORTED_ADDON_VERSION_FOR_KUBERNETES_VERSION" != "$CLUSTER_ADDON_VERSION" ]]; then # check if newer version is supported
BODY=$(cat << END
## Background
There is a new version of the EKS add-on $CLUSTER_ADDON. $CLUSTER_ADDON needs updating on the $CLUSTER cluster. When this issue was created, the latest supported add-on version for Kubernetes $CLUSTER_VERSION was $LATEST_SUPPORTED_ADDON_VERSION_FOR_KUBERNETES_VERSION.
There is a new version of the EKS add-on $CLUSTER_ADDON. $CLUSTER_ADDON needs updating on all of our clusters. When this issue was created, the latest supported add-on version for Kubernetes $CLUSTER_VERSION was $LATEST_SUPPORTED_ADDON_VERSION_FOR_KUBERNETES_VERSION.
## Environments Checklist:
## Production Clusters Checklist:
- [ ] live-2
- [ ] manager
Expand Down
6 changes: 3 additions & 3 deletions scripts/eks-updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ for VERSION in "${VERSIONS[@]}";
do
if [[ "$CLUSTER_VERSION" != "$VERSION" ]]; then
if (( $(echo "$CLUSTER_VERSION < $VERSION" | bc -l) )); then # check if newer version is supported
TITLE="EKS: Upgrade $CLUSTER to Kubernetes v$VERSION";
TITLE="EKS: Upgrade Production Clusters to Kubernetes v$VERSION";
BODY=$(cat << END
## Background
EKS supports Kubernetes $VERSION. The $CLUSTER cluster needs upgrading to Kubernetes $VERSION.
EKS supports Kubernetes $VERSION. Our Production Clusters need upgrading to Kubernetes $VERSION.
## Environments Checklist:
## Production Clusters Checklist:
- [ ] live-2
- [ ] manager
Expand Down

0 comments on commit bab3b57

Please sign in to comment.