cybozu-go / coil

CNI plugin for Kubernetes designed for scalability and extensibility
Apache License 2.0
164 stars 20 forks source link

Coil v2 fails to build with kustomize v4 following setup.md #159

Closed vifino closed 3 years ago

vifino commented 3 years ago

Describe the bug I cannot seem to build coil v2 with kustomize following the setup guide in docs/setup.md.

Environments

To Reproduce

$ git clone https://github.com/cybozu-go/coil
<SNIP>
$ cd coil/v2
$ make certs
go run ./cmd/gencert -outdir=/root/coil/coil2/v2/config/default
$ # kustomization.yaml needed no change
$ # netconf.json changed just like in setup.md but with MTU 9000
$ kustomize build . > coil.yaml
Error: field specified in var '{CACERT ~G_v1_Secret {data[ca.crt]}}' not found in corresponding resource

Expected behavior kustomize builds coil.yaml successfully.

ymmt2005 commented 3 years ago

It seems that kustomize v4 changed some behavior. Could you please try it again with kustomize v3.7.0?

We will fix the manifests for kustomize v4.

vifino commented 3 years ago

Yes, with v3.7.0 it works. I have other problems setting up coil, but I'll create a seperate issue for that.

ymmt2005 commented 3 years ago

addressed in #160

vifino commented 3 years ago

Awesome!