krisnova / naml

Convert Kubernetes YAML to Golang
Apache License 2.0
1.26k stars 38 forks source link

codify now dynamically generates package imports #59

Closed fkautz closed 2 years ago

fkautz commented 2 years ago

This patch dynamically generates package imports

An example:

        "github.com/hexops/valast"
        appsv1 "k8s.io/api/apps/v1"
        corev1 "k8s.io/api/core/v1"
        metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
        "k8s.io/apimachinery/pkg/types"
        "k8s.io/apimachinery/pkg/util/intstr"

One caveat, valast is currently forked to github.com/fkautz/valast. I will try to upstream the patch and see if they take it. Otherwise, we can maintain a fork with necessary changes.

Signed-off-by: Frederick F. Kautz IV fkautz@alumni.cmu.edu