mirror of
https://github.com/rancher/os.git
synced 2025-09-01 06:40:31 +00:00
Support registry credentials in cloud config
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
yaml "github.com/cloudfoundry-incubator/candiedyaml"
|
||||
"github.com/coreos/coreos-cloudinit/datasource"
|
||||
"github.com/coreos/coreos-cloudinit/initialize"
|
||||
"github.com/docker/engine-api/types"
|
||||
composeConfig "github.com/docker/libcompose/config"
|
||||
"github.com/rancher/os/util"
|
||||
)
|
||||
@@ -194,6 +195,9 @@ func amendNils(c *CloudConfig) *CloudConfig {
|
||||
if t.Rancher.ServicesInclude == nil {
|
||||
t.Rancher.ServicesInclude = map[string]bool{}
|
||||
}
|
||||
if t.Rancher.RegistryAuths == nil {
|
||||
t.Rancher.RegistryAuths = map[string]types.AuthConfig{}
|
||||
}
|
||||
return &t
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user