Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed namespace from cluster role #4446

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

NahisWayard
Copy link

Changes proposed in this PR

  • Remove namespace declaration from the ClusterRole in the helm chart

How I've tested this PR

  • Locally using helm install

How I expect reviewers to test this PR

  • Deploying consul the same as they used to and noticed no changes

Checklist

@NahisWayard NahisWayard requested a review from a team as a code owner December 19, 2024 17:37
Copy link

hashicorp-cla-app bot commented Dec 19, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes

Have you signed the CLA already but the status is still pending? Recheck it.

Copy link
Member

@blake blake left a comment

Choose a reason for hiding this comment

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

Hi @NahisWayard, thanks for this PR.

I'm assuming you want to remove this because ClusterRole is not a namespaced resource. Would it be too much to ask for you to explain that in the PR description as well as the commit message so that it is easier for others to understand the reason behind this change?

Also, would you be opposed to expanding this PR to remove namespace from all ClusterRole resources in the Helm chart? I did a quick search and only found it present in the ClusterRole for Consul CNI, but it wouldn't hurt to verify that there aren't other ClusterRoles with this unnecessary field.

namespace: {{ default .Release.Namespace .Values.connectInject.cni.namespace }}

Thanks again.

@@ -0,0 +1,3 @@
```release-note:
helm: Removed useless namespace specification on CLusterRole
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
helm: Removed useless namespace specification on CLusterRole
helm: Removed namespace specification on ClusterRole

@blake blake added area/chart-only Related to changes that simply require yaml Helm chart changes, e.g. exposing a new field backport/1.6.x Changes are backported to 1.6 labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chart-only Related to changes that simply require yaml Helm chart changes, e.g. exposing a new field backport/1.6.x Changes are backported to 1.6
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants