Open mojtaba-esk opened 5 days ago
The changes in the traefik.go
file focus on enhancing the deployment logic and management of Kubernetes resources. A new constant for the service account name is introduced, replacing the previous random generation method. The updates also include the use of k8s.SanitizeName
for generating consistent names for ClusterRole
and middleware, improving clarity and predictability. Additionally, minor adjustments to error handling enhance code readability while maintaining existing functionality.
File | Change Summary |
---|---|
pkg/traefik/traefik.go | Added constant serviceAccountName , removed names.NewRandomK8() , updated role and middleware naming to use k8s.SanitizeName , and improved error handling in Deploy method. |
Objective | Addressed | Explanation |
---|---|---|
Remove names.NewRandomK8() completely from project (573) |
✅ |
🐰 In the land where the code does play,
A service account now leads the way.
No more randomness in names to find,
With clarity and order, we’re one of a kind!
Kubernetes sings a joyful tune,
As Traefik dances beneath the moon! 🌙
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closes #573
Note: we cannot delete completely random names from knuu as sometimes we need them. For example when reading a file from a docker image we need to create a random name or when kaniko wants to build an image, random names are used for jobs, pods, etc... which does not hurt the long running tests that uses static names.
Summary by CodeRabbit
New Features
Bug Fixes