krisnova / naml

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

Build failed #114

Open tuxtof opened 1 year ago

tuxtof commented 1 year ago

trying to make a basic test

kubectl get job beeps -o yaml | naml codify > main.go

naml build

2022-10-04T16:44:09+02:00 [Warning   ]  ⚠ naml build alpha feature ⚠
2022-10-04T16:44:09+02:00 [Warning   ]  if this is a feature you plan on using please make your use case known in the issue tracker
2022-10-04T16:44:09+02:00 [Warning   ]  ⚠ naml build alpha feature ⚠
2022-10-04T16:44:09+02:00 [Critical  ]  unable to build NAML binary from source:

+-------------------------+---------------------------------
| Codify Compile Failure  |
+-------------------------+
|
|
| # github.com/kris-nova/naml/codify
../../go/pkg/mod/github.com/kris-nova/naml@v1.0.3/codify/codify.go:138:3: unknown field 'ClusterName' in struct literal of type "k8s.io/apimachinery/pkg/apis/meta/v1".ObjectMeta
../../go/pkg/mod/github.com/kris-nova/naml@v1.0.3/codify/codify.go:138:33: m.ClusterName undefined (type "k8s.io/apimachinery/pkg/apis/meta/v1".ObjectMeta has no field or method ClusterName)
+----------------------------------------------------------