eks-anywhere-prow-jobs icon indicating copy to clipboard operation
eks-anywhere-prow-jobs copied to clipboard

Make a library from common files in templater that can be shared between EKS-D/A

Open zafs23 opened this issue 2 years ago • 0 comments

EKS-A templater has a main.go which is almost similar to EKS-D with a few custom changes to generate EKS-A specific prow jobs. As the change is small, the plan is to make a library based on templater/jobs/utils, templater/jobs/types and templater/main.go so that this functionality can be shared in templaters across EKS-A and EKS-D to reduce duplication of code and keep templaters in sync.

Two possible approaches:

  1. Import packages into the go templater program that lives in both repos
  2. Publish a binary that is pulled in by both repos.

zafs23 avatar Dec 07 '22 22:12 zafs23