-
Notifications
You must be signed in to change notification settings - Fork 0
feat: consistent labeling of all resources #5
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements consistent labeling across Kubernetes resources by centralizing label creation in a single helper and refactoring resource definitions to use it.
- Moved and updated CreateResourceLabels to pkg/utils/labels.go and its tests.
- Refactored resource creation (PVCs, ConfigMaps, Deployments, Services, StatefulSets) to use consistent labeling and helper functions.
- Updated naming conventions across the signet_node and builder components for clarity and consistency.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/utils/labels_test.go | Added tests to verify consistent label creation. |
| pkg/utils/labels.go | Introduced centralized label creation with merging additional labels. |
| pkg/signet_node/signet_node.go | Refactored resource creations to leverage helper functions for labels. |
| pkg/signet_node/helpers_test.go | Updated tests to reflect new label location. |
| pkg/signet_node/helpers.go | Removed obsolete CreateResourceLabels function. |
| pkg/builder/helpers.go | Updated to call centralized label helper. |
| pkg/builder/builder.go | Refactored resource names and labels for service accounts, deployments, and services. |
Comments suppressed due to low confidence (2)
pkg/signet_node/signet_node.go:69
- The config map name 'exex-configmap' appears to be misspelled. Consider renaming it to 'exec-configmap' or 'execution-configmap' for clarity and consistency.
executionConfigMapName := "exex-configmap"
pkg/signet_node/signet_node.go:139
- [nitpick] Appending '-set' to hostStatefulSetName (which is already 'signet-node-execution-set') leads to a redundant resource name ('signet-node-execution-set-set'). Verify if this naming is intentional or adjust to avoid duplication.
hostStatefulSetResourceName := fmt.Sprintf("%s-set", hostStatefulSetName)
57f5e7d to
70c5d1d
Compare
55df81a to
e4b185d
Compare
70c5d1d to
d4b0242
Compare
d4b0242 to
5b2886c
Compare
e4b185d to
35cfcf6
Compare
35cfcf6 to
8430abf
Compare
cfa82fa to
a76a2c1
Compare
8430abf to
477f988
Compare
ad1e1fc to
1d0d165
Compare
9c043f0 to
4a5e5b2
Compare
4a5e5b2 to
4c6b6ea
Compare
4c6b6ea to
7d779ad
Compare

No description provided.