adding a nodegroup to previously edited aws-auth ConfigMap failed
What happened? while adding a new nodegroup I faced this error
# eksctl create nodegroup -f file.yaml
[✔] all resources in cluster stack "eksctl-xxxxxx-cluster" are up-to-date
[ℹ] building nodegroup stack "eksctl-xxxx-nodegroup-pool-1"
[ℹ] deploying stack "eksctl-xxxxxx-nodegroup-pool-1"
Error: adding nodegroup to auth ConfigMap: unmarshalling "mapUsers": error converting YAML to JSON: yaml: line 2: mapping values are not allowed in this context
What you expected to happen? I expected that the new nodegroup iam role to be added successfully to aws-auth configmap but this didn't happen.
How to reproduce it?
create a cluster then add mapUsers section to aws-auth in kube-system namespace then add a new nodegroup
Anything else we need to know? eksctl version 0.17.0
Versions Please paste in the output of these commands:
$ eksctl version
0.17.0
$ kubectl version
kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-18T14:36:53Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.11-eks-af3caf", GitCommit:"af3caf6136cd355f467083651cc1010a499f59b1", GitTreeState:"clean", BuildDate:"2020-03-27T21:51:36Z", GoVersion:"go1.12.17", Compiler:"gc", Platform:"linux/amd64"}
Hi @agoloAbbas,
This looks like config map is incorrectly formatted, which happens often when it is manually edited. Did you edit it manually or with eksctl create iamidentitymapping?
@martina-if you are right. it was incorrectly formatted. Thanks