-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use current operator SDK-style metrics setup
Instead of starting our own HTTP listener, use the server provided by the operator library. The current operator SDK produces service and service monitor templates for use with Kubebuilder. We still need to support setting up metrics without Kubebuilder, so we still take care of creating the metrics service and service monitor; however, instead of using the old SDK-inspired code, which needs obsolete SDK packages, use the metrics setup code we have for our own managed applications. The major difference between the two is that the old SDK-inspired code set the service's owner reference appropriately, whereas the new code doesn't; but the Kubebuilder-based setup also does *not* set the owner reference, so this doesn't seem too bad. The Kubebuilder-based setup also supports an authenticating proxy, which this doesn't; using this also requires adding permissions for Prometheus, and should be handled as a separate change. Signed-off-by: Stephen Kitt <[email protected]>
- Loading branch information
Showing
7 changed files
with
46 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.