Skip to content

Unable to use CRDs imported as modules #3770

@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

No one assigned

    Labels

    backlogPull requests/issues that are backlog itemsstalePull requests/issues with no activity

    Type

    No type

    Projects

    Status

    Done 🚀

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions