TypedLocalObjectReference
TypedLocalObjectReference 包含足够的信息,可以让你在同一个名称空间中定位指定类型的引用对象。
import "k8s.io/api/core/v1"
TypedLocalObjectReference 包含足够的信息,可以让你在同一个名称空间中定位特定类型的引用对象。
kind (string),必需
kind 是被引用的资源的类型。
name (string),必需
name 是被引用的资源的名称。
apiGroup (string)
apiGroup 是被引用资源的组。如果不指定 apiGroup,则指定的 kind 必须在核心 API 组中。 对于任何其它第三方类型,都需要 apiGroup。
最后修改 June 26, 2025 at 3:34 AM PST: Merge pull request #51077 from lmktfy/20250526_tweak_hpa_good_practise (a2145d1)