Skip to content

chore: allow PIA adoption by clusterName, namespace, and ServiceAccount#193

Open
michaelhtm wants to merge 2 commits intoaws-controllers-k8s:mainfrom
michaelhtm:chore/adoptbyclustername
Open

chore: allow PIA adoption by clusterName, namespace, and ServiceAccount#193
michaelhtm wants to merge 2 commits intoaws-controllers-k8s:mainfrom
michaelhtm:chore/adoptbyclustername

Conversation

@michaelhtm
Copy link
Member

@michaelhtm michaelhtm commented Dec 11, 2025

Issue #2684

Description of changes:
With these changes, we allow users to use ClusterName, Namespace, and
ServiceAccount to adopt a PodIdentityAssociation resource when using
adopt-or-create if AssociationID is not provided.

Note: this will not work when using adopt adoption policy

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot requested review from a-hilaly and jlbutler December 11, 2025 22:39
@ack-prow ack-prow bot added the approved label Dec 11, 2025
With these changes, we allow users to use ClusterName, Namespace, and
ServiceAccount to adopt a PodIdentityAssociation resource when using
`adopt-or-create`
@michaelhtm michaelhtm force-pushed the chore/adoptbyclustername branch from f116109 to 98a2228 Compare January 26, 2026 20:39
Copy link
Contributor

@knottnt knottnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: What is the behavior when using the adopt policy?

Comment on lines +48 to +52
// if more than one are returned, we don't want to manage them
// and treat it as not found
if len(resp.Associations) != 1 {
return nil, nil
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about a terminal condition? if we are in adoption mode

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will just be marked as not found, instead of terminal in sdkFind. This way we can trigger a creation during adopt-or-create

@michaelhtm michaelhtm force-pushed the chore/adoptbyclustername branch from f4cdbec to 5160ba8 Compare February 6, 2026 19:49
@michaelhtm
Copy link
Member Author

/test eks-kind-e2e

@michaelhtm michaelhtm force-pushed the chore/adoptbyclustername branch from 5160ba8 to b19ea90 Compare February 12, 2026 22:19
@michaelhtm michaelhtm force-pushed the chore/adoptbyclustername branch from b19ea90 to a7a3587 Compare February 13, 2026 17:43
@ack-prow
Copy link

ack-prow bot commented Feb 16, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: knottnt, michaelhtm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow
Copy link

ack-prow bot commented Feb 20, 2026

@michaelhtm: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
eks-verify-code-gen a7a3587 link false /test eks-verify-code-gen
eks-crd-compat-check a7a3587 link true /test eks-crd-compat-check

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants