Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mesheryctl] Add support for EKS config #1995

Merged
merged 5 commits into from Jan 7, 2021
Merged

Conversation

hexxdump
Copy link
Contributor

[mesheryctl] Add support for EKS config

Signed-off-by: Hussaina Begum Nandyala hexxdump@gmail.com

Description
Add support for "mesheryctl system config eks"

This PR fixes #

Notes for Reviewers
Could not test the changes as I do not have EKS cluster.

Signed commits

  • Yes, I signed my commits.

@probot-autolabeler probot-autolabeler bot added component/mesheryctl CLI for Meshery language/go Issues or pull requests that use Golang labels Nov 30, 2020
@leecalcote
Copy link
Member

Yay!

1 similar comment
@leecalcote
Copy link
Member

Yay!

set -e
set -o pipefail

TARGET_FOLDER="/tmp/meshery/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hexxdump can we avoid use of a temp location and use Meshery's application folder instead? ~/.meshery

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking fine to me after the directory update. Need to test it out!

Add support for "mesheryctl system config eks"

Signed-off-by: Hussaina Begum Nandyala <hexxdump@gmail.com>
set -e
set -o pipefail

TARGET_FOLDER="~/.meshery/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hexxdump can we avoid creating a new directory? We can reuse the user's existing MesheryFolder (https://github.com/layer5io/meshery/blob/master/mesheryctl/pkg/utils/helpers.go#L63).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This portion of the command can be done in golang. Let's put as little as possible into shell script.

REGION_NAME=%s
CLUSTER_NAME="%s"

create_target_folder() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this function?


create_update_kubeconfig() {
echo -e "\\nQuerying the kubernetes configuration for cluster ${CLUSTER_NAME} from EKS..."
aws eks --region ${REGION_NAME} update-kubeconfig --name ${CLUSTER_NAME} --kubeconfig ${KUBECONFIG}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to try / catch when using aws. Let's first check for the availability of this requisite dependency.

leecalcote and others added 2 commits December 6, 2020 00:30
Signed-off-by: leecalcote <leecalcote@gmail.com>
Signed-off-by: Hussaina Begum Nandyala <hexxdump@gmail.com>
@netlify
Copy link

netlify bot commented Dec 20, 2020

✔️ Deploy preview for meshery-docs ready!

🔨 Explore the source changes: faad8e5

🔍 Inspect the deploy logs: https://app.netlify.com/sites/meshery-docs/deploys/5ff777fee6d4d20007a2d133

😎 Browse the preview: https://deploy-preview-1995--meshery-docs.netlify.app

leecalcote and others added 2 commits January 7, 2021 15:04
Signed-off-by: leecalcote <leecalcote@gmail.com>
@leecalcote
Copy link
Member

Thank you, @hexxdump

@leecalcote leecalcote merged commit 9a91f56 into meshery:master Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/mesheryctl CLI for Meshery language/go Issues or pull requests that use Golang
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants