Project Description

The rancher/rancher project uses generated wrangler controllers to manage Kubernetes objects. With the introduction of generics to golang in v1.18 we have the ability to consolidate this generated code into one package.

Goal for this Hackweek

  • Core controller code is no longer defined in a large string.
  • Make testable controller code can be tested.
  • Remove a large number of duplicate code in Rancher ~20,000 lines
  • Faster Unit Test
  • Controllers can be created without code generation.

Resources

PR for controller refactor using Generics https://github.com/rancher/wrangler/pull/264

Looking for hackers with the skills:

rancher containers golang

This project is part of:

Hack Week 22

Activity

  • over 2 years ago: kjoiner started this project.
  • over 2 years ago: kjoiner added keyword "rancher" to this project.
  • over 2 years ago: kjoiner added keyword "containers" to this project.
  • over 2 years ago: kjoiner added keyword "golang" to this project.
  • over 2 years ago: kjoiner originated this project.

  • Comments

    • ericmenk33
      4 days ago by ericmenk33 | Reply

      That’s an interesting approach to cutting down redundant Kubernetes code, especially with the use of generics in Go for cleaner and faster testing. Just like efficient coding simplifies system management, services like Slotenmaker020 bring the same reliability in real life by offering quick, 24/7 locksmith solutions in Amsterdam, ensuring safety and convenience without unnecessary complications. Both focus on reducing complexity while improving security and performance.

    Similar Projects

    This project is one of its kind!