3.6. 验证配置更改
当使用控制器应用新配置时,Cluster Applied
参数会在 ManagedClusterAddOn
中更新。该条件时间戳有助于正确验证配置。例如,这个命令可在 local-cluster
中的 cert-policy-controller
已更新时验证:
oc get -n local-cluster managedclusteraddon cert-policy-controller | grep -B4 'type: ManifestApplied'
您可能会收到以下输出:
- lastTransitionTime: "2023-01-26T15:42:22Z" message: manifests of addon are applied successfully reason: AddonManifestApplied status: "True" type: ManifestApplied