Open thcdrt opened 3 years ago
ok, we will check the doc, it seems lost some environment.
you can also use make create-environment
to startup a dev env
currently make run
can't started, because webhook is not accessible from cluster to your own machine which running go code
Hello,
I followed the development documentation, when launching harbor-operator I get the following error:
{"error": "controllers: notarysigner: setup: template: from configstore: stat: stat /etc/harbor-operator/templates/notarysigner-config.json.tmpl: no such file or directory", "errorVerbose": "stat /etc/harbor-operator/templates/notarysigner-config.json.tmpl: no such file or directory\nstat\ngithub.com/goharbor/harbor-operator/pkg/config/template.FromConfigStore\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/config/template/template.go:49\ngithub.com/goharbor/harbor-operator/controllers/goharbor/notarysigner.(*Reconciler).Template\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/controllers/goharbor/notarysigner/notarysigner.go:79\ngithub.com/goharbor/harbor-operator/controllers/goharbor/notarysigner.(*Reconciler).SetupWithManager\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/controllers/goharbor/notarysigner/notarysigner.go:41\ngithub.com/goharbor/harbor-operator/pkg/setup.(*controller).WithManager\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/setup/controllers.go:115\ngithub.com/goharbor/harbor-operator/pkg/setup.ControllersWithManager.func1\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/setup/setup.go:50\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/home/tacouder/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/home/tacouder/bin/go1.16.7/src/runtime/asm_amd64.s:1371\nfrom configstore\ngithub.com/goharbor/harbor-operator/controllers/goharbor/notarysigner.(*Reconciler).Template\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/controllers/goharbor/notarysigner/notarysigner.go:81\ngithub.com/goharbor/harbor-operator/controllers/goharbor/notarysigner.(*Reconciler).SetupWithManager\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/controllers/goharbor/notarysigner/notarysigner.go:41\ngithub.com/goharbor/harbor-operator/pkg/setup.(*controller).WithManager\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/setup/controllers.go:115\ngithub.com/goharbor/harbor-operator/pkg/setup.ControllersWithManager.func1\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/setup/setup.go:50\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/home/tacouder/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/home/tacouder/bin/go1.16.7/src/runtime/asm_amd64.s:1371\ntemplate\ngithub.com/goharbor/harbor-operator/controllers/goharbor/notarysigner.(*Reconciler).SetupWithManager\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/controllers/goharbor/notarysigner/notarysigner.go:43\ngithub.com/goharbor/harbor-operator/pkg/setup.(*controller).WithManager\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/setup/controllers.go:115\ngithub.com/goharbor/harbor-operator/pkg/setup.ControllersWithManager.func1\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/setup/setup.go:50\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/home/tacouder/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/home/tacouder/bin/go1.16.7/src/runtime/asm_amd64.s:1371\nsetup\ngithub.com/goharbor/harbor-operator/pkg/setup.(*controller).WithManager\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/setup/controllers.go:117\ngithub.com/goharbor/harbor-operator/pkg/setup.ControllersWithManager.func1\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/setup/setup.go:50\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/home/tacouder/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/home/tacouder/bin/go1.16.7/src/runtime/asm_amd64.s:1371\nnotarysigner\ngithub.com/goharbor/harbor-operator/pkg/setup.ControllersWithManager.func1\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/setup/setup.go:52\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/home/tacouder/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/home/tacouder/bin/go1.16.7/src/runtime/asm_amd64.s:1371\ncontrollers\ngithub.com/goharbor/harbor-operator/pkg/setup.WithManager.func1\n\t/home/tacouder/go/src/github.com/thcdrt/harbor-operator/pkg/setup/setup.go:16\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/home/tacouder/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/home/tacouder/bin/go1.16.7/src/runtime/asm_amd64.s:1371"}
I get this error because I don't have templates in /etc/harbor-operator/templates. I can't copy templates in there because I don't have rights. How could we improve the developer experience to not having to export all the x_template_path environments variables ?
Thomas