From 673a04a8ddf6fc54af56b58d71f79c6d30c59688 Mon Sep 17 00:00:00 2001 From: Humair Khan <HumairAK@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:55:54 -0500 Subject: [PATCH] feat: correct logger messages in dspa params Signed-off-by: Humair Khan <HumairAK@users.noreply.github.com> --- controllers/dspipeline_params.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/dspipeline_params.go b/controllers/dspipeline_params.go index 6b861dab2..4d49ceba4 100644 --- a/controllers/dspipeline_params.go +++ b/controllers/dspipeline_params.go @@ -428,7 +428,7 @@ func setResourcesDefault(defaultValue dspa.ResourceRequirements, value **dspa.Re } } -func (p *DSPAParams) ExtractParams(ctx context.Context, dsp *dspa.DataSciencePipelinesApplication, client client.Client, log logr.Logger) error { +func (p *DSPAParams) ExtractParams(ctx context.Context, dsp *dspa.DataSciencePipelinesApplication, client client.Client, loggr logr.Logger) error { p.Name = dsp.Name p.Namespace = dsp.Namespace p.Owner = dsp @@ -447,6 +447,8 @@ func (p *DSPAParams) ExtractParams(ctx context.Context, dsp *dspa.DataSciencePip p.APIServerPiplinesCABundleMountPath = config.APIServerPiplinesCABundleMountPath p.PiplinesCABundleMountPath = config.PiplinesCABundleMountPath + log := loggr.WithValues("namespace", p.Namespace).WithValues("dspa_name", p.Name) + if p.APIServer != nil { serverImageFromConfig := config.GetStringConfigWithDefault(config.APIServerImagePath, config.DefaultImageValue)