aws / aws/eks-charts

kubectl version command on pre_upgrade_check.sh script need to be updated.

Open
#1,007 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Mustache
Stars
1.3k
Forks
1.1k
Avg merge
22m
Merged PRs (30d)
5

Description

**Describe the bug**
A concise description of what the bug is.

**Steps to reproduce**
kubectl is installed and run on command prompt sh ./pre_upgrade_check.sh as described [here](https://docs.aws.amazon.com/app-mesh/latest/userguide/getting-started-kubernetes.html)

**Expected outcome**
- expected to see message "Your cluster is ready for upgrade. Please proceed to the installation instructions"
**Environment**
- Mac OS
* Chart name:
* Chart version:
* Kubernetes version: 1.24.6
* Using EKS (yes/no), if so version?

**Additional Context**:
the call in check_kube_intallation: kube_err=$(kubectl version --short 2>&1 >/dev/null) is deprecated and should be changed to
kube_err=$(kubectl version --output=json 2>&1 >/dev/null)

Contributor guide

Open the contributing guide

Research direction

Open pre_upgrade_check.sh and locate check_kube_intallation; first inspect the current kubectl version check and run the script using the documented Kubernetes setup. Update the deprecated invocation to the requested JSON form, then confirm that the expected cluster-ready message appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes, shell
Domain
cli, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.