Skip to content

[Bug] Drift eksctl pod identity association management between get/create/update #8474

@nsagnett

Description

@nsagnett

What were you trying to accomplish?

Create Pod identity Associations saving in other files than cluster config file, by using eksctl get/create/update podidentityassociation commands

What happened?

Command works fine, but when I compare eksctl get podidentityassociation output and fields which can be present (https://github.com/eksctl-io/eksctl/blob/main/examples/39-pod-identity-association.yaml), missing some potential crucial information (wellKnownPolicies, permissionPolicyARNs, ...)

How to reproduce it?

  1. Create cluster with mentionned iam podIdentityAssociations
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
  name: my-cluster
iam:
  podIdentityAssociations:
    - namespace: my-namespace
      serviceAccountName: my-sa
      roleName: my-role
      permissionPolicyARNs:
        - arn:aws:iam::112233445566:policy/my-policy
    - namespace: cert-manager
      serviceAccountName: cert-manager
      wellKnownPolicies:
        certManager: true
  1. Launch eksctl get podidentityassociation --cluster my-cluster and save output.
  2. You can see output doesn't mentioned some creation fields
  3. If you launch eksctl update podidentityassociation --cluster my-cluster --namespace my-namespace --service-account-name my-sa --role-arn my-role-arn, my-role will be modify to remove permissionPolicyARNs and I can set it with update command
  4. In the same time, for cert-manager exemple, wellKnownPolicies are missing from output from get command and we can't set it with update command

Logs

Anything else we need to know?

Versions

$ eksctl info
eksctl version: 0.212.0
kubectl version: v1.32.5
OS: linux

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions