reformatobj

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReformatObj

func ReformatObj[T any](obj *T) (*T, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL