-
Notifications
You must be signed in to change notification settings - Fork 916
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
Add karmadactl annotate
command
#4466
Comments
Hi @RainbowMango, What do you think of it? |
/assign |
@Affan-7 Hi~Command |
Just updated the description. I would love to hear your thoughts.
|
Thank you for providing your thoughts. However, as (base) ➜ karmada git:(crypt) ✗ ka annotate deployment deploy-01 description='my frontend'
deployment.apps/deploy-01 annotated
(base) ➜ karmada git:(crypt) ✗ ka get deployment deploy-01 -oyaml
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
description: my frontend
...
(base) ➜ karmada git:(crypt) ✗ km2 get deployment deploy-01 -oyaml
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
description: my frontend
...
(base) ➜ karmada git:(crypt) ✗ km2 annotate --overwrite deployment deploy-01 description='test'
deployment.apps/deploy-01 annotated
(base) ➜ karmada git:(crypt) ✗ km2 get deployment deploy-01 -oyaml
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
description: my frontend
... We can also find that when annotating control plane resources, the modifications have been synchronized to the member clusters, so it seems that there is no need to implement the annotate command specifically for the member clusters. |
Do you have a better idea to implement the annotations or we should close the issue? |
@Affan-7 Previously, at a weekly meeting, we discussed how to improve the karmadactl experience and found that users are more interested in commands for Karmada’s unique scenarios, such as promote, or commands with enhanced capabilities relative to kubectl. So I think you can think about it from the above two perspectives. This is more difficult than simply applying kubectl's capabilities to karmada. I haven't have a good idea yet. If there is any progress on my side, I will ping you as soon as possible. |
What would you like to be added:
Add the
karmadactl annotate
command.Why is this needed:
Users may want to use the
annotate
command from the karmadactl. Currently the karmadactl doesn't support theannotate
command, so users would have to switch to thekubectl
to run it. Adding the annotate command into the karmadactl will enhance the user experience and take karmadactl one step closer to become independent of kubectl.Part of #4291.
Design:
The karmadactl will communicate with the Karmada API server to add, remove or update the annotations. A user must specify a single member cluster using
--cluster
flag to perform this action.The text was updated successfully, but these errors were encountered: