mirror of
https://github.com/kairos-io/provider-kairos.git
synced 2025-09-19 09:42:58 +00:00
feat(embedded registry): allow to enable embedded registry (#675)
This is a simple way to enable Spegel with k3s by following https://docs.k3s.io/installation/registry-mirror?_highlight=spegel . Part of https://github.com/kairos-io/kairos/issues/3100 Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
efd4796286
commit
ee17f04079
@@ -77,4 +77,5 @@ type K3s struct {
|
||||
ReplaceArgs bool `yaml:"replace_args,omitempty"`
|
||||
Args []string `yaml:"args,omitempty"`
|
||||
Enabled bool `yaml:"enabled,omitempty"`
|
||||
EmbeddedRegistry bool `yaml:"embedded_registry,omitempty"`
|
||||
}
|
||||
|
@@ -81,6 +81,10 @@ func genArgs(pconfig *providerConfig.Config, ip, ifaceIP string) (args []string)
|
||||
args = append(args, fmt.Sprintf("--tls-san=%s", ip), fmt.Sprintf("--node-ip=%s", ifaceIP))
|
||||
}
|
||||
|
||||
if pconfig.K3s.EmbeddedRegistry {
|
||||
args = append(args, "--embedded-registry")
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user