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

Standardize resource names across the helm chart #993

Merged
merged 4 commits into from
Jan 26, 2022

Conversation

thisisnotashwin
Copy link
Contributor

@thisisnotashwin thisisnotashwin commented Jan 25, 2022

Changes proposed in this PR:

  • Rename helm resources that have redundant resource-name suffixes.
  • Update server-acl-init as the secret name was hard-coded to use the -svc-aaccount suffix.

How I've tested this PR:

  • Pipelines.

How I expect reviewers to test this PR:

  • 👀

Checklist:

  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)

@thisisnotashwin thisisnotashwin force-pushed the standardize-resource-names branch 4 times, most recently from 55d9ab1 to cc59742 Compare January 25, 2022 20:48
@thisisnotashwin thisisnotashwin requested review from lkysow, a team and t-eckert and removed request for a team January 26, 2022 15:49
@thisisnotashwin thisisnotashwin marked this pull request as ready for review January 26, 2022 15:49
@thisisnotashwin thisisnotashwin force-pushed the standardize-resource-names branch from b38f4e0 to 7842c75 Compare January 26, 2022 18:40
Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

  • enterprise-license-job name should be -enterprise-licence

@@ -3,7 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "consul.fullname" . }}-connect-injector-authmethod-role
name: {{ template "consul.fullname" . }}-connect-injector-authmethod
Copy link
Member

Choose a reason for hiding this comment

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

I think these can all be -connect-injector

@@ -3,7 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ template "consul.fullname" . }}-connect-injector-authmethod-authdelegator-role-binding
name: {{ template "consul.fullname" . }}-connect-injector-authmethod-authdelegator
Copy link
Member

Choose a reason for hiding this comment

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

this can be -connect-injector-authdelegator since this is a special clusterrolebinding where we're binding to a preset role vs how we're usually binding to a role we've created. So this can be with the special name and the rest can be just the name of the component, i.e. -connect-injector

namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ template "consul.fullname" . }}-connect-injector-authmethod-serviceaccount-role-binding
name: {{ template "consul.fullname" . }}-connect-injector-authmethod-serviceaccount
Copy link
Member

Choose a reason for hiding this comment

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

and then this can just be -connect-injector

Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

I'm also thinking we should list this under breaking changes with a link to the PR and saying something like "if you're not referencing any consul components by names externally this won't be a breaking change"

Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

I'm irrationally stoked about this.

@thisisnotashwin thisisnotashwin force-pushed the standardize-resource-names branch from e69ef33 to c80c9ec Compare January 26, 2022 19:23
Copy link
Contributor

@t-eckert t-eckert left a comment

Choose a reason for hiding this comment

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

Beautifully done. No notes.

@thisisnotashwin thisisnotashwin merged commit 040b55a into main Jan 26, 2022
@thisisnotashwin thisisnotashwin deleted the standardize-resource-names branch January 26, 2022 20:25
david-yu pushed a commit that referenced this pull request Jan 26, 2022
Update PR link to #993
@david-yu david-yu mentioned this pull request Jan 26, 2022
2 tasks
david-yu pushed a commit that referenced this pull request Jan 26, 2022
geobeau pushed a commit to geobeau/consul-k8s that referenced this pull request May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants