kubernetes-sigs / kubernetes-sigs/cli-utils
Bug: poller status message replaces apply failure message in table printer
- Dominant language
- Go
- Stars
- 178
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
When applying an invalid Service (missing ports) I realized that the `kpt live apply --output table` output was showing me `Resource not found` instead of the apply error `The Service "cassandra" is invalid: spec.ports: Required value` which you get from kubectl apply.
I assume this means the status event for NotFound was received after the apply event error and the table replaced the error with the status message. This seems like confusing behavior. The user probably wants to see the apply error and not any sort of status update from waiting (which was hopefully skipped for that object).
```
apiVersion: v1
kind: Service
metadata:
name: cassandra
namespace: cassandra
spec:
selector:
app: cassandra
# ports:
# - port: 80
```
Contributor guide
Research direction
Reproduce the case with `kpt live apply --output table` using the invalid Service shown in the issue, then trace how apply errors and NotFound status events reach the table printer. Done means the apply error `The Service "cassandra" is invalid: spec.ports: Required value` remains visible instead of being replaced by `Resource not found`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100