carvel-dev / carvel

Carvel provides a set of reliable, single-purpose, composable tools that aid in your application building, configuration, and deployment to Kubernetes. This repo contains information regarding the Carvel open-source community.
https://carvel.dev/
Apache License 2.0
373 stars 110 forks source link

Developers can warn users of potential issues while installing packages #605

Closed mstergianis closed 1 year ago

mstergianis commented 1 year ago

Describe the problem/challenge you have I write ytt code that validates configuration options as passed in to values files (for kapp-controller PackageInstall objects). I love being able to assert. However, sometimes warning the user is appropriate as well. When I tried this, albeit naively print("warning: <message>"), I found kapp-controller wouldn't bubble up my message to the PackageInstall when I described it.

Describe the solution you'd like kapp-controller

  1. kapp-controller is able to detect when a templating step has passed, but with warnings
  2. kapp-controller bubbles up those logs
  3. kapp-controller has a status for something like InstallationSuccessfulButWithWarnings :shrug: on PackageInstalls?

ytt(optional): provides helpers in the standard library to warn users

Anything else you would like to add: Hopefully I didn't miss that this already exists :flushed: I grepped through the latest kapp-controller docs for warn and didn't find anything useful

github-actions[bot] commented 1 year ago

This issue is being marked as stale due to a long period of inactivity and will be closed in 5 days if there is no response.