aws eks list-nodegroups 和 eksctl get nodegroups 结果不一致

The results of `aws eks list-nodegroups` and `eksctl get nodegroups` are inconsistent

eksctl  get nodegroups --cluster=cluster-name --profile=dev
aws eks list-nodegroups --cluster=cluster-name --profile=dev

第一个结果正确
第二个结果是空气如下:

{ 
    "nodegroups": [] 
} 

我用这两个命令来获取集群的nodegroup,但是发现结果不一致。
我使用的配置文件是一样的~/.aws/config。
命令检查了 cluster_name。出来了,这两个命令可以正确检测cluster但是不能检测nodegroup
提前致谢

根据 eksctl documentation:

Listing nodegroups

To list the details about a nodegroup or all of the nodegroups, use:

eksctl get nodegroup --cluster=<clusterName> [--name=<nodegroupName>]

Nodegroup immutability

By design, nodegroups are immutable. This means that if you need to change something (other than scaling) like the AMI or the instance type of a nodegroup, you would need to create a new nodegroup with the desired changes, move the load and delete the old one. Check Deleting and draining.

来自 AWS list-nodegroup documentation

Lists the Amazon EKS managed node groups associated with the specified cluster in your AWS account in the specified Region. Self-managed node groups are not listed.

如您所见,这些命令存在差异,例如 Self-managed 第二个命令中未列出节点组。