Skip to content

fix: cleans up the resources lists in the generated Role - #2875

Merged
armru merged 3 commits into
cloudnative-pg:mainfrom
EnterpriseDB:dev/cnp-4161
Sep 26, 2023
Merged

armru merged 3 commits into
cloudnative-pg:mainfrom
EnterpriseDB:dev/cnp-4161

Conversation

@YanniHu1996

@YanniHu1996 YanniHu1996 commented Sep 26, 2023 •

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.19 labels Sep 26, 2023
@github-actions

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@leonardoce leonardoce changed the title fix: Removed empty secret name fix: cleans up the resources lists in the generated Role Sep 26, 2023
@leonardoce

Copy link
Copy Markdown
Contributor

/test

@github-actions

Copy link
Copy Markdown
Contributor

YanniHu1996 and others added 3 commits September 26, 2023 16:40
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
@armru

armru commented Sep 26, 2023

Copy link
Copy Markdown
Member

/ok-to-merge

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Sep 26, 2023
@armru
armru merged commit 03eacc3 into cloudnative-pg:main Sep 26, 2023
@armru
armru deleted the dev/cnp-4161 branch September 26, 2023 15:21
cnpg-bot pushed a commit that referenced this pull request Sep 26, 2023
…tency (#2875)

Addresses two inconsistencies in the `ResourceName` sections of the generated roles:
- Ensures entries are sorted, preventing items from appearing out of order.
- Removes empty items

This is achieved using a new utility function, `cleanupResourceList`.

Signed-off-by: YanniHu1996 <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Co-authored-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
(cherry picked from commit 03eacc3)
sxd pushed a commit that referenced this pull request Sep 26, 2023
…tency (#2875)

Addresses two inconsistencies in the `ResourceName` sections of the generated roles:
- Ensures entries are sorted, preventing items from appearing out of order.
- Removes empty items

This is achieved using a new utility function, `cleanupResourceList`.

Signed-off-by: YanniHu1996 <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Co-authored-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
Lennart01 pushed a commit to Lennart01/cloudnative-pg that referenced this pull request Sep 30, 2023
…tency (cloudnative-pg#2875)

Addresses two inconsistencies in the `ResourceName` sections of the generated roles:
- Ensures entries are sorted, preventing items from appearing out of order.
- Removes empty items

This is achieved using a new utility function, `cleanupResourceList`.

Signed-off-by: YanniHu1996 <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Co-authored-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
Signed-off-by: Lennart Krauch <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases ok to merge 👌 This PR can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suspicious resource names in generated role

4 participants