Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReformatObj ¶
ReformatObj reformats client objects to solve the quantity bug. The bug is happening when setting a quantity field without quantity type. for example
limit: cpu: "1.5"
In this case, the client actually set a formatted value to the resource in K8s cluster, while HCO keep use the original un-typed quantity value. That causes an endless loop of updates, because HCO compares the values and finds out they are different.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.