Azure / Azure/kubectl-aks

Add flag `--current-node` to `set-node` command

Open
#57 0 comments 0 reactions 0 assignees View on GitHub
config good first issue
Dominant language
Go
Stars
39
Forks
15
PR merge metrics
No merged PRs in 30d

Description

## Current situation

Users have to set the node and set it as current node:

```bash
$ kubectl aks config set-node node1 --subscription mySubID --node-resource-group myRG --vmss myVMSS --instance-id myInstanceID1
$ kubectl aks config use-node node1

# Run command automatically on node1
$ kubectl aks check-apiserver-connectivity
```

## Ideal situation

Allow doing it in one command:

```bash
$ kubectl aks config set-node node1 --current-node --subscription mySubID --node-resource-group myRG --vmss myVMSS --instance-id myInstanceID1

# Run command automatically on node1
$ kubectl aks check-apiserver-connectivity
```

## NOTE

Consider changing `use-node` to `set --current-node`. Specially after https://github.com/Azure/kubectl-aks/issues/56.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the `set-node` and `use-node` command entry points and review issue #56 for the related command design. Add the `--current-node` behavior shown in the example, preserving the existing node-setting options, and verify that the connectivity command runs against the selected node afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, go, kubernetes
Domain
cli, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.