|
@@ -27,6 +27,7 @@ type sbState struct {
|
|
dbExists bool
|
|
dbExists bool
|
|
Eps []epState
|
|
Eps []epState
|
|
EpPriority map[string]int
|
|
EpPriority map[string]int
|
|
|
|
+ ExtDNS []string
|
|
}
|
|
}
|
|
|
|
|
|
func (sbs *sbState) Key() []string {
|
|
func (sbs *sbState) Key() []string {
|
|
@@ -113,6 +114,10 @@ func (sbs *sbState) CopyTo(o datastore.KVObject) error {
|
|
dstSbs.Eps = append(dstSbs.Eps, eps)
|
|
dstSbs.Eps = append(dstSbs.Eps, eps)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ for _, dns := range sbs.ExtDNS {
|
|
|
|
+ dstSbs.ExtDNS = append(dstSbs.ExtDNS, dns)
|
|
|
|
+ }
|
|
|
|
+
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
|
|
|
|
@@ -126,6 +131,7 @@ func (sb *sandbox) storeUpdate() error {
|
|
ID: sb.id,
|
|
ID: sb.id,
|
|
Cid: sb.containerID,
|
|
Cid: sb.containerID,
|
|
EpPriority: sb.epPriority,
|
|
EpPriority: sb.epPriority,
|
|
|
|
+ ExtDNS: sb.extDNS,
|
|
}
|
|
}
|
|
|
|
|
|
retry:
|
|
retry:
|
|
@@ -198,6 +204,7 @@ func (c *controller) sandboxCleanup(activeSandboxes map[string]interface{}) {
|
|
dbIndex: sbs.dbIndex,
|
|
dbIndex: sbs.dbIndex,
|
|
isStub: true,
|
|
isStub: true,
|
|
dbExists: true,
|
|
dbExists: true,
|
|
|
|
+ extDNS: sbs.ExtDNS,
|
|
}
|
|
}
|
|
|
|
|
|
msg := " for cleanup"
|
|
msg := " for cleanup"
|