From 4e1804e42e526f002d78c40e87a751fbb24f1ccb Mon Sep 17 00:00:00 2001 From: shydefoo Date: Wed, 11 Dec 2024 11:24:26 +0800 Subject: [PATCH] Add extra arguments to merlin logger (#620) # Description - kserve v0.14.0 adds new params in the agent arguments https://github.com/kserve/kserve/commit/02293acd44bf0cadb0a0fb5b126a1ca2246b8020#diff-61358711e980ccf505246fd3915f97cbd3a380e9b66f6fa5aad46749968c5ca3R78, this causes the merlin-logger to fail when starting up as it cannot parse those extra arguments # Modifications - This PR adds support for those 2 arguments # Tests # Checklist - [ ] Added PR label - [ ] Added unit test, integration, and/or e2e tests - [ ] Tested locally - [ ] Updated documentation - [ ] Update Swagger spec if the PR introduce API changes - [ ] Regenerated Golang and Python client if the PR introduces API changes # Release Notes ```release-note ``` --- api/cmd/inference-logger/main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/cmd/inference-logger/main.go b/api/cmd/inference-logger/main.go index e045a6829..63afdfe70 100644 --- a/api/cmd/inference-logger/main.go +++ b/api/cmd/inference-logger/main.go @@ -41,9 +41,11 @@ var ( namespace = flag.String("namespace", "my-project", "The namespace to add as header to log events") // These flags are not needed by our logger but provided by Kserve, hence we need to parse it to avoid error. - sourceUri = flag.String("source-uri", "", "The source URI to use when publishing cloudevents") - endpoint = flag.String("endpoint", "", "The endpoint name to add as header to log events") - component = flag.String("component", "", "The component name (predictor, explainer, transformer) to add as header to log events") + sourceUri = flag.String("source-uri", "", "The source URI to use when publishing cloudevents") + endpoint = flag.String("endpoint", "", "The endpoint name to add as header to log events") + component = flag.String("component", "", "The component name (predictor, explainer, transformer) to add as header to log events") + CaCertFile = flag.String("logger-ca-cert-file", "service-ca.crt", "The logger CA certificate file") + TlsSkipVerify = flag.Bool("logger-tls-skip-verify", false, "Skip verification of TLS certificate") ) const (