Create a CLI for Operator
In order to configure and control Operator behaviour at runtime, contextual information and control parameters need to be passed to it. At the moment we use a series of environment variables. This needs to be changed to an extensible CLI. Here's an example:
gitlab-operator [command] [options]
COMMAND
version
Prints out version information and exits.
reconcile
Reconciles GitLab resources.
...
OPTIONS
--gitlab-class
The class of GitLab resources. Used to isolate different
releases. Operator only reconciles resources that have
the same class. This option is mandatory in reconcile mode.
...
EXIT CODES
0: Success
1: Invalid command line
...