Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Run Failing and Installation on EKS Cluster failing - error undeclared name: VPN make: *** [vet] Error 2** #5

Open
jevans3 opened this issue Sep 28, 2020 · 0 comments

Comments

@jevans3
Copy link

jevans3 commented Sep 28, 2020

Local run, erroring on "undeclared name VPN"

When trying to get the aws-vpn-controller to Run Locally; I edited config/samples/networking_v1alpha1_vpn.yaml to include my vpcid and vpnconnections settings.

MacBook-Pro aws-vpn-controller % make manifests install run
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
CRD manifests generated under '/Users//go/src/github.com/awslabs/aws-vpn-controller/config/crds'
RBAC manifests generated under '/Users//go/src/github.com/awslabs/aws-vpn-controller/config/rbac'
kubectl apply -f config/crds
customresourcedefinition.apiextensions.k8s.io/vpns.networking.amazonaws.com configured
go generate ./pkg/... ./cmd/...
go fmt ./pkg/... ./cmd/...
go vet ./pkg/... ./cmd/...
# github.com/awslabs/aws-vpn-controller/pkg/apis/github.com/awslabs/aws-vpn-controller/pkg/apis/networking/v1alpha1
**vet: pkg/apis/github.com/awslabs/aws-vpn-controller/pkg/apis/networking/v1alpha1/zz_generated.deepcopy.go:26:11: undeclared name: VPN
make: *** [vet] Error 2**

EKS Cluster Build Issue:

note On the Installing section: I have a stable EKS 1.16 Cluster running, I have kubectl and awscli setup, and have an IAM role assigned to k8 nodes with admin access for testing at this time.

 ~/go/src #  go get github.com/awslabs/aws-vpn-controller
 ~/go/src # cd github.com/awslabs/aws-vpn-controller/
~/go/src/github.com/awslabs/aws-vpn-controller # ls
CODE_OF_CONDUCT.md  CONTRIBUTING.md  Dockerfile  Gopkg.lock  Gopkg.toml  LICENSE  Makefile  NOTICE  OWNERS  PROJECT  README.md  cmd  config  hack  pkg  vendor
1 ~/go/src/github.com/awslabs/aws-vpn-controller #  
IMG="<accountID>.dkr.ecr.us-east-1.amazonaws.com/aws-vpn-controller:latest"   ROLEARN="arn:aws:I am::<accountID>:role/DMA_CS_Role" make docker-build
go generate ./pkg/... ./cmd/...
go fmt ./pkg/... ./cmd/...
go vet ./pkg/... ./cmd/...
# github.com/awslabs/aws-vpn-controller/pkg/apis/github.com/awslabs/aws-vpn-controller/pkg/apis/networking/v1alpha1
vet: pkg/apis/github.com/awslabs/aws-vpn-controller/pkg/apis/networking/v1alpha1/zz_generated.deepcopy.go:26:11: undeclared name: VPN
make: *** [vet] Error 2

Any assistance on this issue would be greatly appreciated. I have tried updating the ../crds/networking_v1alpha1_vpn.yaml with a name: vpc-10, and vpcid: similar to whats shown in the ../samples/networking_v1alpha1_vpn.yaml having the name: samplevpn, and added the vpcid: but it still is not getting past the 'make docker-build' but do not seem to be making any progress.
Thanks All,
Best,
Jesse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant