Sitelet https://github.com/kubernetes/kops/pull/18672
Skip to content

iam: do not mutate Policy.Statement in AsJSON() - #18672

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes:masterfrom
hakman:iam-asjson-no-mutate
Aug 8, 2026
Merged

kubernetes-prow[bot] merged 1 commit into
kubernetes:masterfrom
hakman:iam-asjson-no-mutate

Conversation

@hakman

@hakman hakman commented Aug 8, 2026

Copy link
Copy Markdown
Member

Build the rendered statement list locally so that a second AsJSON() call does not duplicate the synthesized statements. Latent issue, as all current callers render a fresh Policy exactly once. Rendered JSON is unchanged.

/cc @rifelpet @ameukam

Build the rendered statement list locally so that a second AsJSON()
call does not duplicate the synthesized statements. Latent issue, as
all current callers render a fresh Policy exactly once. Rendered JSON
is unchanged.
@kubernetes-prow
kubernetes-prow Bot requested review from ameukam and rifelpet August 8, 2026 06:07
@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 8, 2026
@ameukam

ameukam commented Aug 8, 2026

Copy link
Copy Markdown
Member

/lgtm

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 8, 2026
@hakman

hakman commented Aug 8, 2026

Copy link
Copy Markdown
Member Author

/approve

@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

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

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 8, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit b07a354 into kubernetes:master Aug 8, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants