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)