-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.18.0
-
None
-
False
-
Steps to Reproduce:
1. Run any hypershift CLI command in an environment without a live cluster e.g. hypershift create cluster --help 2024-10-30T12:19:21+08:00 ERROR Failed to create default options {"error": "failed to retrieve feature-gate ConfigMap: failed to get API group resources: unable to retrieve the complete list of server APIs: v1: Get \"https://ci-op-68zb-ci-op-68zbrc3h-2-53b8f5-qycsv9k7.hcp.northcentralus.azmk8s.io:443/api/v1\": dial tcp: lookup ci-op-68zb-ci-op-68zbrc3h-2-53b8f5-qycsv9k7.hcp.northcentralus.azmk8s.io: no such host"} github.com/openshift/hypershift/cmd/cluster/azure.NewCreateCommand /Users/fxie/Projects/hypershift/cmd/cluster/azure/create.go:480 github.com/openshift/hypershift/cmd/cluster.NewCreateCommands /Users/fxie/Projects/hypershift/cmd/cluster/cluster.go:36 github.com/openshift/hypershift/cmd/create.NewCommand /Users/fxie/Projects/hypershift/cmd/create/create.go:20 main.main /Users/fxie/Projects/hypershift/main.go:64 runtime.main /usr/local/go/src/runtime/proc.go:271 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x10455ea8c] goroutine 1 [running]: github.com/spf13/cobra.(*Command).AddCommand(0x1400069db08, {0x14000d91a18, 0x1, 0x1}) /Users/fxie/Projects/hypershift/vendor/github.com/spf13/cobra/command.go:1311 +0xbc github.com/openshift/hypershift/cmd/cluster.NewCreateCommands() /Users/fxie/Projects/hypershift/cmd/cluster/cluster.go:36 +0x4c4 github.com/openshift/hypershift/cmd/create.NewCommand() /Users/fxie/Projects/hypershift/cmd/create/create.go:20 +0x11c main.main() /Users/fxie/Projects/hypershift/main.go:64 +0x368
Actual results:
panic: runtime error: invalid memory address or nil pointer dereference