operator-utils
operator-utils copied to clipboard
Create Programatic ServiceMonitor Resource
Most CoP operators currently include a ServiceMonitor
to enable monitoring of the operator. This capability functions appropriately if the operator is deployed to the suggested namespace. However, due to limitations in the Operator Framework, additional resources packaged within an Operator Bundle can only be statically defined ad cannot take advantage of adapting to the current operating environment.
The suggested approach is to include logic within an operaator to create a ServiceMonitor
resource where it will then be able to take advantage of properly manage the configuration of the resource.
- Develop a reusable function that can be invoked from consuming operators to create
ServiceMonitor
resources