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

Readme: Wrong command #40

Closed
luebken opened this issue Oct 18, 2023 · 1 comment · Fixed by #44
Closed

Readme: Wrong command #40

luebken opened this issue Oct 18, 2023 · 1 comment · Fixed by #44

Comments

@luebken
Copy link
Contributor

luebken commented Oct 18, 2023

The readme under Quickstart says:

# Run
./idpbuilder -buildName localdev

Where in fact it doesn't work from the current branch:

./idpbuilder -buildName localdev
Error: unknown command "localdev" for "idpbuilder"
Run 'idpbuilder --help' for usage.
unknown command "localdev" for "idpbuilder"
@luebken
Copy link
Contributor Author

luebken commented Oct 18, 2023

I'm assuming the command should be ./idpbuilder create --buildName localdev. Unfortunaly that results in an error for me. But that is likely an unrelated error:

 ./idpbuilder create --buildName localdev
1.6976193431194959e+09	INFO	setup	Creating kind cluster
Cluster localdev already exists
1.697619343201996e+09	INFO	Reconciling registry container
1.6976193432022421e+09	INFO	Pulling registry image
{"status":"Pulling from library/registry","id":"2"}
{"status":"Digest: sha256:12a6ddd56d2de5611ff0d9735ac0ac1d1e44073c7d042477329e589c46867e4e"}
{"status":"Status: Image is up to date for registry:2"}
1.697619344367612e+09	INFO	Done pulling registry image
1.697619344369418e+09	INFO	Registry container found, skipping create
1.6976193443694348e+09	INFO	Registry container on kind network, skipping connecting network
1.697619344369439e+09	INFO	Done reconciling registry container
1.69761934443671e+09	ERROR	setup	Error exporting kubeconfig from kind cluster	{"error": "could not locate any control plane nodes for cluster named 'localdev'. Use the --name option to select a different cluster", "errorVerbose": "could not locate any control plane nodes for cluster named 'localdev'. Use the --name option to select a different cluster\nsigs.k8s.io/kind/pkg/errors.Errorf\n\t/Users/mdl/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/errors/errors.go:41\nsigs.k8s.io/kind/pkg/cluster/internal/kubeconfig.get\n\t/Users/mdl/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/cluster/internal/kubeconfig/kubeconfig.go:83\nsigs.k8s.io/kind/pkg/cluster/internal/kubeconfig.Export\n\t/Users/mdl/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/cluster/internal/kubeconfig/kubeconfig.go:36\nsigs.k8s.io/kind/pkg/cluster.(*Provider).ExportKubeConfig\n\t/Users/mdl/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/cluster/provider.go:206\ngithub.com/cnoe-io/idpbuilder/pkg/kind.(*Cluster).ExportKubeConfig\n\t/Users/mdl/workspace/other/idpbuilder/pkg/kind/cluster.go:107\ngithub.com/cnoe-io/idpbuilder/pkg/build.(*Build).ReconcileKindCluster\n\t/Users/mdl/workspace/other/idpbuilder/pkg/build/build.go:54\ngithub.com/cnoe-io/idpbuilder/pkg/build.(*Build).Run\n\t/Users/mdl/workspace/other/idpbuilder/pkg/build/build.go:96\ngithub.com/cnoe-io/idpbuilder/pkg/cmd/create.create\n\t/Users/mdl/workspace/other/idpbuilder/pkg/cmd/create/root.go:59\ngithub.com/spf13/cobra.(*Command).execute\n\t/Users/mdl/go/pkg/mod/github.com/spf13/[email protected]/command.go:940\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/Users/mdl/go/pkg/mod/github.com/spf13/[email protected]/command.go:1068\ngithub.com/spf13/cobra.(*Command).Execute\n\t/Users/mdl/go/pkg/mod/github.com/spf13/[email protected]/command.go:992\ngithub.com/cnoe-io/idpbuilder/pkg/cmd.Execute\n\t/Users/mdl/workspace/other/idpbuilder/pkg/cmd/root.go:24\nmain.main\n\t/Users/mdl/workspace/other/idpbuilder/main.go:6\nruntime.main\n\t/nix/store/s1xk6hrfn0kw8ycvqbx4vv4gr00k6qpl-go-1.21.1/share/go/src/runtime/proc.go:267\nruntime.goexit\n\t/nix/store/s1xk6hrfn0kw8ycvqbx4vv4gr00k6qpl-go-1.21.1/share/go/src/runtime/asm_arm64.s:1197"}
github.com/cnoe-io/idpbuilder/pkg/build.(*Build).ReconcileKindCluster
	/Users/mdl/workspace/other/idpbuilder/pkg/build/build.go:55
github.com/cnoe-io/idpbuilder/pkg/build.(*Build).Run
	/Users/mdl/workspace/other/idpbuilder/pkg/build/build.go:96
github.com/cnoe-io/idpbuilder/pkg/cmd/create.create
	/Users/mdl/workspace/other/idpbuilder/pkg/cmd/create/root.go:59
github.com/spf13/cobra.(*Command).execute
	/Users/mdl/go/pkg/mod/github.com/spf13/[email protected]/command.go:940
github.com/spf13/cobra.(*Command).ExecuteC
	/Users/mdl/go/pkg/mod/github.com/spf13/[email protected]/command.go:1068
github.com/spf13/cobra.(*Command).Execute
	/Users/mdl/go/pkg/mod/github.com/spf13/[email protected]/command.go:992
github.com/cnoe-io/idpbuilder/pkg/cmd.Execute
	/Users/mdl/workspace/other/idpbuilder/pkg/cmd/root.go:24
main.main
	/Users/mdl/workspace/other/idpbuilder/main.go:6
runtime.main
	/nix/store/s1xk6hrfn0kw8ycvqbx4vv4gr00k6qpl-go-1.21.1/share/go/src/runtime/proc.go:267
Error: could not locate any control plane nodes for cluster named 'localdev'. Use the --name option to select a different cluster
Usage:
  idpbuilder create [flags]

Flags:
      --buildName string                  Name for build (Prefix for kind cluster name, pod names, etc) (default "localdev")
  -h, --help                              help for create
      --recreate                          Delete cluster first if it already exists.
      --zap-devel                         Development Mode defaults(encoder=consoleEncoder,logLevel=Debug,stackTraceLevel=Warn). Production Mode defaults(encoder=jsonEncoder,logLevel=Info,stackTraceLevel=Error) (default true)
      --zap-encoder encoder               Zap log encoding (one of 'json' or 'console')
      --zap-log-level level               Zap Level to configure the verbosity of logging. Can be one of 'debug', 'info', 'error', or any integer value > 0 which corresponds to custom debug levels of increasing verbosity
      --zap-stacktrace-level level        Zap Level at and above which stacktraces are captured (one of 'info', 'error', 'panic').
      --zap-time-encoding time-encoding   Zap time encoding (one of 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'). Defaults to 'epoch'.

could not locate any control plane nodes for cluster named 'localdev'. Use the --name option to select a different cluster

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

Successfully merging a pull request may close this issue.

1 participant