All,
I have thousands of namespaces and most of them were created without having owner information before automation. Now I wish to add that missing information to all namespaces and looking for a best command to add owner id & email as you see below.
vusers@1.11.11.21~]$ kubectl describe ns cpnp-dev-powerui
Name: cpnp-dev-powerui
Labels: kube.company.com/role-bound=invalid
project.lob=rts
project.hjad=bpjp
Annotations: appreleasename: dev
environment: nonprod
internetfacing: No
launchedby: k8s:ciccd:automation
lob: rts
namespacetype: user_namespace
owner-eid: 123456
**owner-emailid: firstname.lastname@company.com
project-distro-emailid: firstname.lastname@company.com**
projectname: powerui
vsad: bpjp
Status: Active
No resource quota.
No resource limits.
I wish to edit existing namespaces and add below annotations
owner-eid: 123456
owner-emailid: firstname.lastname@company.com
project-distro-emailid: firstname.lastname@company.com
Thanks
Bala