Skip to content

eksctl update addon with version: latest and useDefaultPodIdentityAssociations fails #7841

Description

@cPu1

From a user on Slack:

eksctl update addon fails for this config file:

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
availabilityZones:
  - us-east-1a
  - us-east-1b
  - us-east-1c
metadata:
  name: cluster-79
  region: us-east-1
  version: "1.28"
addons:
  - name: eks-pod-identity-agent
  - name: aws-ebs-csi-driver
    podIdentityAssociations:
    - serviceAccountName: ebs-csi-controller-sa
      namespace: kube-system
      permissionPolicyARNs: ["arn:aws:iam::XXXXXXXXXXXX:policy/ebs-csi-policy"]
  - name: vpc-cni
    version: latest
    useDefaultPodIdentityAssociations: true

2024-06-18 13:45:07 [ℹ] Kubernetes version "1.28" in use by cluster "cluster-79"
2024-06-18 13:45:08 [ℹ] no new version provided, preserving existing version: v1.2.0-eksbuild.1
2024-06-18 13:45:08 [ℹ] updating addon
2024-06-18 13:45:19 [ℹ] addon "eks-pod-identity-agent" active
2024-06-18 13:45:20 [ℹ] no new version provided, preserving existing version: v1.31.0-eksbuild.1
2024-06-18 13:45:21 [ℹ] updating IAM resources stack "eksctl-cluster-79-addon-aws-ebs-csi-driver-podidentityrole-ebs-csi-controller-sa" for pod identity association "a-xpaah4j4xsvt9af6l"
2024-06-18 13:45:22 [ℹ] waiting for CloudFormation changeset "eksctl-kube-system-ebs-csi-controller-sa-update-1718714721" for stack "eksctl-cluster-79-addon-aws-ebs-csi-driver-podidentityrole-ebs-csi-controller-sa"
2024-06-18 13:45:22 [ℹ] nothing to update
2024-06-18 13:45:22 [ℹ] IAM resources for kube-system/ebs-csi-controller-sa (pod identity association ID: a-xpaah4j4xsvt9af6l) are already up-to-date
2024-06-18 13:45:22 [ℹ] updating addon
2024-06-18 13:46:04 [ℹ] addon "aws-ebs-csi-driver" active

Error: getting recommended policies for addon vpc-cni


eksctl needs to resolve the keyword latest to the latest version before attempting to describe recommended policies for an addon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions