error: unable to recognize “/tmp/kubeapply-3046101275": no matches for kind “AKODeploymentConfig” in version “networking.tkg.tanzu.vmware.com/v1alpha1”
: exit status 1, retrying
patch cluster object with operation status:
{
“metadata”: {
“annotations”:
{ “TKGOperationInfo” : “
{\“Operation\“:\“Create\“,\“OperationStartTimestamp\“:\“2022-01-05 08:00:11.468329342 +0000 UTC\“,\“OperationTimeout\“:1800}
“,
“TKGOperationLastObservedTimestamp” : “2022-01-05 08:00:11.468329342 +0000 UTC”
}
}
}
This is a false alarm and known issue in TKGm 1.4
The problem is because tanzu cli deploys ADC(AKO Deployment config) definition and ADC object when creating management cluster, but when tanzu cli applies ytt template, it doesn't have a certain order to follow, so when the object got applied first and definition applied last, then it will throw this error. But since the cli will retry, it will finally get everything applied as requested.