Skip to content

Unable to use CRDs imported as modules #3770

Open
@nixx

Description

@nixx

Describe the bug
When automating the configuration for NGINX Ingress Controller, we need access to the CRDs. Importing them as a golang module, is preferrable.

To Reproduce
Steps to reproduce the behavior:
Running " go get -u github.com/nginxinc/kubernetes-ingress" will fail with " require github.com/nginxinc/kubernetes-ingress: version "v3.1.0" invalid: should be v0 or v1, not v3"

This is fixable with adding /v3 in the module name in go.mod.

Expected behavior
Expecting to be able to import the module.
I do get around it with psedo-versions (go get -u github.com/nginxinc/[email protected])

Your environment
v3.1.0
Kubernetes: N/A

Metadata

Metadata

Assignees

Labels

backlogPull requests/issues that are backlog items

Type

No type

Projects

Status

Todo ☑

Relationships

None yet

Development

No branches or pull requests

Issue actions