Fix eventing and worker name setup (#2204)
* Don't automatically create worker names, as this is now invalid for PKI workers * Fix a check in dev that clears out name/description in exactly the wrong cases * Change eventing setup to use a hostname-based ID instead of the name (which could change on every start anyways)
This commit is contained in:
1 parent
214ca9a668
commit
9a4545e59e
9 files changed
+75
-90
No files matched your search
@@ -117,7 +117,7 @@ func New(ctx context.Context, conf *Config) (*Controller, error) {
|
||||
conf.RawConfig.Controller = new(config.Controller)
|
||||
}
|
||||
|
||||
if conf.RawConfig.Controller.Name, err = conf.RawConfig.Controller.InitNameIfEmpty(); err != nil {
|
||||
if err := conf.RawConfig.Controller.InitNameIfEmpty(); err != nil {
|
||||
return nil, fmt.Errorf("error auto-generating controller name: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user