Skip to content

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

Conversation

nathanmcgarvey-modopayments
Copy link
Contributor

  • 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
Copy link
Contributor Author

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
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dead link

Comment on lines +6 to +8
k8s.io/api v0.24.15
k8s.io/apimachinery v0.24.15
k8s.io/client-go v0.24.15
Copy link
Contributor Author

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"

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 🙂

Suggested change
appVersion: "1.9"
appVersion: "2.0"

drop:
- ALL
seccompProfile:
type: RuntimeDefault

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

Copy link
Owner

@max-rocket-internet max-rocket-internet left a 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

@max-rocket-internet max-rocket-internet merged commit d910d1b into max-rocket-internet:master Jun 21, 2023
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.

2 participants