SIGN IN SIGN UP

[cmd] Implement rootless deprecation messages

I have added a system for showing fatal and non-fatal deprecation warnings. It's configurable by command and environment.

If we merge this PR, running a rootless image with any OPA command other than `opa run` will result in a fatal error and exit code 1.

It's possible for users to continue to use the image by unsetting: OPA_DOCKER_IMAGE_TAG=rootless.

`opa run` will show the message, but it's not fatal for this command. This is intended to avoid production disruption.

Signed-off-by: Charlie Egan <charlie@styra.com>
C
Charlie Egan committed
d584a15d537819d3e0c4a4667dc7e0703bcc44c2
Parent: cda3bfb
Committed by GitHub <noreply@github.com> on 7/14/2023, 6:38:17 PM