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

Cannot make charts #401

Open
madflow opened this issue Jan 17, 2025 · 0 comments
Open

Cannot make charts #401

madflow opened this issue Jan 17, 2025 · 0 comments

Comments

@madflow
Copy link

madflow commented Jan 17, 2025

Just to let you know - just a drive-by issue report.

I was following https://github.com/kubernetes-sigs/hierarchical-namespaces/blob/master/docs/user-guide/how-to.md#install-with-helm which seemed like a doc how to install - but I guess I just need

kubectl apply -f https://github.com/kubernetes-sigs/hierarchical-namespaces/releases/download/${HNC_VERSION}/${HNC_VARIANT}.yaml 
  • go version go1.23.4 darwin/arm64
  • System Version: macOS 15.2 (24C101)
  • Kernel Version: Darwin 24.2.0
  • Model Name: MacBook Pro
  • Model Identifier: MacBookPro18,3
  • Chip: Apple M1 Pro
export HNC_REGISTRY=gcr.io/k8s-staging-multitenancy
export HNC_IMG_NAME=hnc-manager
export HNC_IMG_TAG=v1.1.0
make charts
go: downloading github.com/mikefarah/yq/v4 v4.34.1
go: downloading gopkg.in/op/go-logging.v1 v1.0.0-20160211212156-b2cb9fa56473
go: downloading github.com/a8m/envsubst v1.4.2
go: downloading github.com/elliotchance/orderedmap v1.5.0
go: downloading github.com/alecthomas/participle/v2 v2.0.0
go: downloading github.com/goccy/go-yaml v1.11.0
go: downloading github.com/jinzhu/copier v0.3.5
go: downloading github.com/pelletier/go-toml/v2 v2.0.7
go: downloading golang.org/x/net v0.10.0
go: downloading golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f
go build -o /Users/.../hierarchical-namespaces/bin/controller-gen sigs.k8s.io/controller-tools/cmd/controller-gen
Building manifests with image gcr.io/k8s-staging-multitenancy/hnc-manager:v1.1.0
/Users/.../hierarchical-namespaces/bin/controller-gen crd rbac:roleName=manager-role webhook paths="./api/..." paths="./cmd/..." paths="./internal/..." output:crd:artifacts:config=config/crd/bases
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1032c8ea4]

goroutine 32 [running]:
go/types.(*Checker).handleBailout(0x14001bc4000, 0x14001815d38)
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/check.go:404 +0x9c
panic({0x1035a7360?, 0x103b73d20?})
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/runtime/panic.go:785 +0x124
go/types.(*StdSizes).Sizeof(0x0, {0x103679600, 0x103b7c700})
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/sizes.go:229 +0x314
go/types.(*Config).sizeof(...)
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/sizes.go:334
go/types.representableConst.func1({0x103679600?, 0x103b7c700?})
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/const.go:77 +0x90
go/types.representableConst({0x10367fef0, 0x103b48660}, 0x14001bc4000, 0x103b7c700, 0x14001815608)
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/const.go:93 +0x134
go/types.(*Checker).representation(0x14001bc4000, 0x14002602ac0, 0x103b7c700)
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/const.go:257 +0x68
go/types.(*Checker).implicitTypeAndValue(0x14001bc4000, 0x14002602ac0, {0x103679628, 0x14000280930})
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/expr.go:377 +0x304
go/types.(*Checker).assignment(0x14001bc4000, 0x14002602ac0, {0x103679628, 0x14000280930}, {0x1033de744, 0x14})
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/assignments.go:70 +0x3ac
go/types.(*Checker).initConst(0x14001bc4000, 0x14002549080, 0x14002602ac0)
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/assignments.go:144 +0x1f8
go/types.(*Checker).constDecl(0x14001bc4000, 0x14002549080, {0x10367c858, 0x14001ba6160}, {0x10367c858, 0x14001ba6180}, 0x0)
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/decl.go:482 +0x23c
go/types.(*Checker).objDecl(0x14001bc4000, {0x1036856c0, 0x14002549080}, 0x0)
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/decl.go:185 +0x840
go/types.(*Checker).packageObjects(0x14001bc4000)
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/resolver.go:714 +0x3f0
go/types.(*Checker).checkFiles(0x14001bc4000, {0x140017dad50, 0x5, 0x5})
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/check.go:459 +0x190
go/types.(*Checker).Files(0x140000ae2c0?, {0x140017dad50?, 0x140018883c0?, 0x5?})
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/go/types/check.go:422 +0x80
sigs.k8s.io/controller-tools/pkg/loader.(*loader).typeCheck(0x140002b16b0, 0x14000a30c60)
        /Users/.../hierarchical-namespaces/vendor/sigs.k8s.io/controller-tools/pkg/loader/loader.go:286 +0x2d8
sigs.k8s.io/controller-tools/pkg/loader.(*Package).NeedTypesInfo(0x14000a30c60)
        /Users/.../hierarchical-namespaces/vendor/sigs.k8s.io/controller-tools/pkg/loader/loader.go:99 +0x44
sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check(0x14001150750, 0x14000a30c60)
        /Users/.../hierarchical-namespaces/vendor/sigs.k8s.io/controller-tools/pkg/loader/refs.go:268 +0x300
sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check.func1(0x64?)
        /Users/.../hierarchical-namespaces/vendor/sigs.k8s.io/controller-tools/pkg/loader/refs.go:262 +0x54
created by sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check in goroutine 81
        /Users/.../hierarchical-namespaces/vendor/sigs.k8s.io/controller-tools/pkg/loader/refs.go:260 +0x22c
make: *** [manifests] Error 2
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