eksctl icon indicating copy to clipboard operation
eksctl copied to clipboard

style(get): Adjust the command line parameters to be consistent

Open ysicing opened this issue 2 years ago • 1 comments

Adjust the command line parameters to be consistent

Signed-off-by: ysicing [email protected]

Description

Checklist

  • [ ] Added tests that cover your change (if possible)
  • [ ] Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • [x] Manually tested
  • [ ] Made sure the title of the PR is a good description that can go into the release notes
  • [x] (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! :exploding_head:

  • [ ] Backfilled missing tests for code in same general area :tada:
  • [ ] Refactored something and made the world a better place :star2:

ysicing avatar Aug 16 '22 02:08 ysicing

@ysicing, apologies for the delay. I'm occupied with other tasks and will need some time to review the new changes.

cPu1 avatar Sep 06 '22 09:09 cPu1

There's still at least one command https://github.com/weaveworks/eksctl/blob/main/pkg/ctl/utils/describe_addon_versions.go#L32 that isn't using cmdutils.AddClusterFlag.

@ysicing can you add changes for this as well, we'll get the PR merged after the changes are added. 👍🏻

Himangini avatar Sep 27 '22 10:09 Himangini

@Himangini @cPu1 PTAL

ysicing avatar Oct 04 '22 05:10 ysicing

@Himangini add test code ?

ysicing avatar Oct 08 '22 07:10 ysicing

@Himangini add test code ?

No, add some description of how you manually tested this.

Himangini avatar Oct 10 '22 17:10 Himangini

new version flags cluster has short command c

# old create iamserviceaccount
eksctl  create iamserviceaccount -h
Create an iamserviceaccount - AWS IAM role bound to a Kubernetes service account

Usage: eksctl create iamserviceaccount [flags]

General flags:
      --cluster string                      name of the EKS cluster to add the iamserviceaccount to

# new create iamserviceaccount
eksctl create iamserviceaccount -h
Create an iamserviceaccount - AWS IAM role bound to a Kubernetes service account

Usage: eksctl create iamserviceaccount [flags]

General flags:
  -c, --cluster string                      EKS cluster name
# old delete nodegroup
ekctl delete nodegroup -h
Delete a nodegroup

Usage: eksctl delete nodegroup [flags]

Aliases: nodegroup, ng

General flags:
      --cluster string                      EKS cluster name

# new delete nodegroup

eksctl delete nodegroup -h
Delete a nodegroup

Usage: eksctl delete nodegroup [flags]

Aliases: nodegroup, ng

General flags:
  -c, --cluster string                      EKS cluster name

ysicing avatar Oct 11 '22 02:10 ysicing