yonahd/kor

Refactor: move resource exceptions to external files

yonahd opened this issue · 4 comments

Move the resource exceptions to a different file.

Currently the lists of exception resource are quite long e.g. https://github.com/yonahd/kor/blob/main/pkg/kor/configmaps.go#L17 and will cause future contributors more cognitive load.

We should separate these from the actual code

It might be nice to also break out resources into their individual clouds (then merge them all together) using a helper function. We can better track changes related to specific environments this way and also allow targeting specific environments.

  • pkg
    • exceptions
      • gke
      • aks
      • kind
      • minikube
      • universal (i.e. kube-proxy)

It might be nice to also break out resources into their individual clouds (then merge them all together) using a helper function. We can better track changes related to specific environments this way and also allow targeting specific environments.

  • pkg

    • exceptions

      • gke
      • aks
      • kind
      • minikube
      • universal (i.e. kube-proxy)

I was thinking of splitting it using the resource type but this might make more sense. Let's see if there are any takers and we'll see how simply it can be done

Happy to take a initial stab at this.

Go for it.
Let's see how it looks