-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend cilium-operator binary to be used as command line tool #14484
Conversation
8454d52
to
f68651a
Compare
test-me-please |
retest-gke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL about go-swagger generation 👍
Couple of comments I have as below, will do another round of review later.
4f4e858
to
181b76d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM. I think CODEOWNERS
should be updated to take into account the new /api/v1/operator
directory:
diff --git a/CODEOWNERS b/CODEOWNERS
index bdbe06c83..29d6a492e 100644
--- a/CODEOWNERS
+++ b/CODEOWNERS
@@ -35,6 +35,7 @@
/api/ @cilium/api
/api/v1/flow/ @cilium/api @cilium/hubble
/api/v1/observer/ @cilium/api @cilium/hubble
+/api/v1/operator/ @cilium/api @cilium/operator
/api/v1/peer/ @cilium/api @cilium/hubble
/bpf/ @cilium/bpf
Makefile* @cilium/build
test-me-please |
e47d1f5
to
b738a1d
Compare
Signed-off-by: Deepesh Pathak <deepshpathak@gmail.com>
Signed-off-by: Deepesh Pathak <deepshpathak@gmail.com>
Signed-off-by: Deepesh Pathak <deepshpathak@gmail.com>
* By default the open-api spec contains the /v1 basepath. This commit adds a separate handler for /healthz requests outside of the default basepath. This is done using HTTP server mux where the index handler is the default open-api router and `/healthz` requests are handled by a new handler. Signed-off-by: Deepesh Pathak <deepshpathak@gmail.com>
Signed-off-by: Deepesh Pathak <deepshpathak@gmail.com>
Signed-off-by: Deepesh Pathak <deepshpathak@gmail.com>
b738a1d
to
e40cf73
Compare
test-me-please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💯
This PullRequest aims at extending the
cilium-operator
binary to be used as a command-line tool. There are two reworks associated with this PR.cilium-operator
to useopenapi
config as apiserver implementation similar to what we have for Cilium andcilium-health
.cilium-operator
to list metrics from a running cilium-operator instance apiserver.Fixes #13132