feat: cloud-init supports all documented KubeSolo CLI flags
Add missing flags (--local-storage-shared-path, --debug, --pprof-server, --portainer-edge-id, --portainer-edge-key, --portainer-edge-async) so all 10 documented KubeSolo parameters can be configured via cloud-init YAML. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -46,6 +46,30 @@ func buildExtraFlags(cfg *Config) string {
|
||||
parts = append(parts, "--apiserver-extra-sans", san)
|
||||
}
|
||||
|
||||
if cfg.KubeSolo.LocalStorageSharedPath != "" {
|
||||
parts = append(parts, "--local-storage-shared-path", cfg.KubeSolo.LocalStorageSharedPath)
|
||||
}
|
||||
|
||||
if cfg.KubeSolo.Debug {
|
||||
parts = append(parts, "--debug")
|
||||
}
|
||||
|
||||
if cfg.KubeSolo.PprofServer {
|
||||
parts = append(parts, "--pprof-server")
|
||||
}
|
||||
|
||||
if cfg.KubeSolo.PortainerEdgeID != "" {
|
||||
parts = append(parts, "--portainer-edge-id", cfg.KubeSolo.PortainerEdgeID)
|
||||
}
|
||||
|
||||
if cfg.KubeSolo.PortainerEdgeKey != "" {
|
||||
parts = append(parts, "--portainer-edge-key", cfg.KubeSolo.PortainerEdgeKey)
|
||||
}
|
||||
|
||||
if cfg.KubeSolo.PortainerEdgeAsync {
|
||||
parts = append(parts, "--portainer-edge-async")
|
||||
}
|
||||
|
||||
return strings.Join(parts, " ")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user