-
Notifications
You must be signed in to change notification settings - Fork 33
Minor updates for best practices/linting/security #24
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
Minor updates for best practices/linting/security #24
Conversation
nathanmcgarvey-modopayments
commented
Jun 21, 2023
- minor security enhancements in helm chart
- minor best-practices/linting (E.g. using select{} instead of a ifinite loop with sleep, using log.Print vs fmt.Print, formatted the imports, etc.)
- minor readme changes (linting for links and header sizes, removal/change for dead link(s), and addition of some other log collectors like Promtail and Logstash)
- bump go to 1.20 to pull in some security fixes
- bump k8s.io deps to v0.24.15 (note that this version is about to become non-maintained, but still is for now)
- minor best-practices/linting (E.g. using select{} instead of a ifinite loop with sleep, using log.Print vs fmt.Print, formatted the imports, etc.) - minor readme changes (linting for links and header sizes, removal/change for dead link(s), and addition of some other log collectors like Promtail and Logstash) - bump go to 1.20 to pull in some security fixes - bump k8s.io deps to v0.24.15 (note that this version is about to become non-maintained, but still is for now)
|
||
```sh | ||
make IMG=maxrocketinternet/k8s-event-logger TAG=latest | ||
make all IMG=<your-container-registry>/k8s-event-logger TAG=latest |
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.
This does the the full multi-arch setup, too. (the "all" target, that is). I found it easier to test with that and then a make clean
afterwards, but feel free to reject this for the simpler make image.
|
||
[multi-platform image]: https://docs.docker.com/build/building/multi-platform/ | ||
[qemu-binfmt]: https://docs.nvidia.com/datacenter/cloud-native/playground/x-arch.html |
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.
dead link
k8s.io/api v0.24.15 | ||
k8s.io/apimachinery v0.24.15 | ||
k8s.io/client-go v0.24.15 |
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.
Up to k8s 1.27 now, versions are only +/- 1 compatible, or in some circumstances +/- 2. So this probably needs to be bumped at some point in the near future.
@@ -1,6 +1,6 @@ | |||
apiVersion: v1 | |||
appVersion: "1.8" | |||
version: "1.1.3" | |||
appVersion: "1.9" |
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.
Let's go for 2.0 since this is the largest update this project has had since being created 🙂
appVersion: "1.9" | |
appVersion: "2.0" |
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault |
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.
I also made these changes to the hosted chart: deliveryhero/helm-charts#490
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.
Amazing, I love it, thank you @nathanmcgarvey-modopayments