tuenti / secrets-manager

A daemon to sync Vault secrets to Kubernetes secrets
Apache License 2.0
171 stars 26 forks source link

Unable to build secrets-manager 2.0.0 #84

Closed thong234 closed 2 years ago

thong234 commented 2 years ago

I'm trying to build secrets-manager 2.0.0 on my local machine as it's seems that ci for secret manager's currently broken And found the following error Command I used to build : docker build . --file ./deploy/Dockerfile --platform linux/amd64 --target release --build-arg SECRETS_MANAGER_VERSION=v2.0.0

Error I got: => [builder 12/12] RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=v2.0.0" -a -o secrets-manager main.go 361.2s => => # # github.com/tuenti/secrets-manager/api/v1alpha1 => => # api/v1alpha1/secretdefinition_types.go:68:25: cannot use &SecretDefinition{} (type *SecretDefinition) as type runtime.Object in argument to SchemeBuilder.Register: => => # *SecretDefinition does not implement runtime.Object (missing DeepCopyObject method) => => # api/v1alpha1/secretdefinition_types.go:68:46: cannot use &SecretDefinitionList{} (type *SecretDefinitionList) as type runtime.Object in argument to SchemeBuilder.Register: => => # *SecretDefinitionList does not implement runtime.Object (missing DeepCopyObject method)

Can someone let me know if I've missed anything?

thong234 commented 2 years ago

I've found the issue as I didn't run make generate, I'll close this