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

[Backport release-1.30] Move generated CRDs into their own directory #4985

Merged

Commits on Sep 16, 2024

  1. Move generated CRDs into their own directory

    Introduce the static/_crds/* directories, which replace the
    static/manifests/*/CustomResourceDefinition directories. The underscore
    in the name prevents go tools from descending into the folder when
    looking for go files. This makes it safe to run go commands at the same
    time as generating the CRDs in this folder.
    
    This prevents errors like the following:
    
      go: finding module for package github.com/k0sproject/k0s/static/manifests/v1beta1/CustomResourceDefinition
      go: finding module for package github.com/k0sproject/k0s/static/manifests/helm/CustomResourceDefinition
      go: finding module for package github.com/k0sproject/k0s/static/manifests/autopilot/CustomResourceDefinition
      go: finding module for package github.com/k0sproject/k0s/static/manifests/etcd/CustomResourceDefinition
      go: github.com/k0sproject/k0s/static/manifests/autopilot/CustomResourceDefinition: no matching versions for query "latest"
      go: github.com/k0sproject/k0s/static/manifests/etcd/CustomResourceDefinition: no matching versions for query "latest"
      go: github.com/k0sproject/k0s/static/manifests/helm/CustomResourceDefinition: no matching versions for query "latest"
      go: github.com/k0sproject/k0s/static/manifests/v1beta1/CustomResourceDefinition: no matching versions for query "latest"
      make: *** [Makefile:113: go.sum] Error 1
    
    Signed-off-by: Tom Wieczorek <[email protected]>
    (cherry picked from commit 583cf5d)
    twz123 committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    76010af View commit details
    Browse the repository at this point in the history