carvel-dev / carvel-dev/kapp-controller

`kctrl`: Better errors for malformed `package-resources.yml`

Open
#953 1 comment 0 reactions 0 assignees View on GitHub
carvel-accepted cli enhancement priority/important-longterm
Dominant language
Go
Stars
323
Forks
127
Avg merge
2d 10h
Merged PRs (30d)
6

Description

**Describe the problem/challenge you have**
[A description of the current challenge that you are experiencing.]
Today, if resources are missing from `package-resources.yml` we get an error somewhat like this,
```bash
$ kctrl package release --version 1.0.0
kctrl: Error: Parsing resource config 'package-resources.yml':
Unknown apiVersion '' or kind '' for resource
```

**Describe the solution you'd like**
[A clear and concise description of what you want to happen. If applicable a visual representation of the UX.]
We should have a better error message or even ignore the cases in which a resource is not necessary.

---
Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `kctrl package release --version 1.0.0` with the malformed or incomplete `package-resources.yml`, then trace the package resource parsing path. Done means the command reports a clearer, actionable error for missing resources, or consistently ignores resources that are not needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, yaml
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.