mirror of
https://github.com/rancher/types.git
synced 2025-07-15 22:15:49 +00:00
Workload mapper nil pointer fix
This commit is contained in:
parent
51a81eb72f
commit
b697d5b08a
@ -13,6 +13,9 @@ func (n WorkloadAnnotations) FromInternal(data map[string]interface{}) {
|
||||
v, ok := values.RemoveValue(data, "workloadAnnotations", "field.cattle.io/publicEndpoints")
|
||||
if ok {
|
||||
annotations := convert.ToMapInterface(data["annotations"])
|
||||
if annotations == nil {
|
||||
annotations = map[string]interface{}{}
|
||||
}
|
||||
annotations["field.cattle.io/publicEndpoints"] = v
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user