crossplane-contrib / crossplane-contrib/function-patch-and-transform

Premature Kubectl Wait Return For Composite Resource Readiness

Open
#82 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
46
Forks
41
Avg merge
1d 10h
Merged PRs (30d)
3

Description

When waiting for a composite resource to assume the Ready state, kubectl wait may return prematurely. This could imply that the Ready state is briefly set and then revoked.

Example:
kubectl-v1.27.3 wait vault.sec.upbound.io configuration-vault --for=condition=Ready --timeout 5m

After kubectl wait returned, crossplane beta trace vault.sec.upbound.io configuration-vault shows that the resource is not yet ready.

```
NAME SYNCED READY STATUS
Vault/configuration-vault (default) True False Waiting: ...resource claim is waiting for composite resource to become Ready
└─ XVault/configuration-vault-mhtj5 True False Creating: Unready resources: xVaultAuth, xVaultPolicies, and xVaultSecrets
├─ XAuth/configuration-vault-mhtj5-g2cbg True False Creating: Unready resources: generic-endpoint, userpass-auth-backend
│ ├─ Backend/configuration-vault-auth-backend-userpass True True Available
│ └─ Endpoint/configuration-vault-auth-generic-endpoint True False Creating
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.