-
Notifications
You must be signed in to change notification settings - Fork 118
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
Remove resource kind from resource names #329
Conversation
This should ideally be replaced with a reference instead.
What's the chart version bump policy? Should I bump the chart version, or is that done automatically and/or in a later stage or the release process? Do you consider this a breaking change? |
Again: it's redundant to specify the resource type in the name.
I saw that the secrets had a |
Do not merge this yet, the tests aren't yet working when removing the |
I cannot remove the What I'm doing: sed -i 's/neuvector-controller-secret/neuvector-controller/g' charts/core/templates/controller* test/deployment_test.go
cd test
go test |
We will bump up the version when release. However, we will not accept this patch. Having the resource kind in the name might not be necessary, it also doesn't hurt to have it. Extensive change like this will likely break the upgrade case. |
Quite alright. But can we please be consistent with it then? Let's add the resource kind to all names. And maybe we can remove the "pod" suffix from the non-pod resources. This too "does not hurt", but surely it's not a good thing to have a name that indicates the wrong kind...
I'm happy to break this change into smaller parts, if you think that would be better. |
@becitsthere What do you say? How do we best make the naming more consistent? |
The Kubernetes objects created by this Helm chart were littered with the "-pod" suffix for resource names and labels. Notably, this was the case for non-pod resources. This change removes that suffix.
I also noticed that the secrets had a
-secrets
suffix, and services had sometimes-svc
and sometimes-service
infixes which are also removed with in change. It is always clear from the manifest what resource kind one is working with; so I see no need to over-specify this into the.metadata.name
field as well.Fixes #327