kpt icon indicating copy to clipboard operation
kpt copied to clipboard

kpt live apply command gets stuck

Open hilliao opened this issue 3 years ago • 2 comments

Expected behavior

kpt live apply command returns error when the infrastructure as code change can't get applied in the namespace

Actual behavior

kpt live apply command gets stuck for more than 5 minutes and had to be Ctrl+C interrupted.

Information

steps to reproduce in blueprints/issues/194 including all files required to reproduce the bug.

kpt version 1.0.0-beta.15

hilliao avatar Jul 12 '22 17:07 hilliao

@mortent @karlkfi could you take a look?

natasha41575 avatar Jul 14 '22 18:07 natasha41575

  --reconcile-timeout:
    The threshold for how long to wait for all resources to reconcile before
    giving up. If this flag is not set, kpt live apply will wait until
    interrupted.

Try kpt live apply --reconcile-timeout 1m

As you can see form your example:

iampartialpolicy.iam.cnrm.cloud.google.com/iam-storage-delete-me-356017 reconcile pending

There's no subsequent reconciled event, which means reconciliation is still pending. This is likely due to either a configuration error in the object or a controller problem not updating the status to indicate reconciliation.

karlkfi avatar Jul 15 '22 00:07 karlkfi

closed this issue referring to @karlkfi comment

yuwenma avatar Jan 13 '23 13:01 yuwenma