@@ -511,15 +511,15 @@ func (r *NemoCustomizerReconciler) renderCustomizerConfig(ctx context.Context, n
511
511
return nil , err
512
512
}
513
513
514
- if err := r .addModelConfig (ctx , cfg , n ); err != nil {
514
+ if err := r .addModelConfig (ctx , n , cfg ); err != nil {
515
515
return nil , err
516
516
}
517
517
518
- if err := r .addCustomizationTargetConfig (ctx , cfg , n ); err != nil {
518
+ if err := r .addCustomizationTargetConfig (ctx , n , cfg ); err != nil {
519
519
return nil , err
520
520
}
521
521
522
- if err := r .addCustomizationConfigTemplates (ctx , cfg , n ); err != nil {
522
+ if err := r .addCustomizationConfigTemplates (ctx , n , cfg ); err != nil {
523
523
return nil , err
524
524
}
525
525
@@ -700,7 +700,7 @@ func (r *NemoCustomizerReconciler) addTrainingConfig(ctx context.Context, cfg ma
700
700
return nil
701
701
}
702
702
703
- func (r * NemoCustomizerReconciler ) addModelConfig (ctx context.Context , cfg map [string ]interface {}, n * appsv1alpha1. NemoCustomizer ) error {
703
+ func (r * NemoCustomizerReconciler ) addModelConfig (ctx context.Context , n * appsv1alpha1. NemoCustomizer , cfg map [string ]interface {}) error {
704
704
modelsRaw , err := k8sutil .GetRawYAMLFromConfigMap (ctx , r .GetClient (), n .GetNamespace (), n .Spec .Models .Name , "models" )
705
705
if err != nil {
706
706
if goerrors .Is (err , k8sutil .ErrConfigMapKeyNotFound ) {
@@ -719,7 +719,7 @@ func (r *NemoCustomizerReconciler) addModelConfig(ctx context.Context, cfg map[s
719
719
return nil
720
720
}
721
721
722
- func (r * NemoCustomizerReconciler ) addCustomizationTargetConfig (ctx context.Context , cfg map [string ]interface {}, n * appsv1alpha1. NemoCustomizer ) error {
722
+ func (r * NemoCustomizerReconciler ) addCustomizationTargetConfig (ctx context.Context , n * appsv1alpha1. NemoCustomizer , cfg map [string ]interface {}) error {
723
723
customizationTargetsRaw , err := k8sutil .GetRawYAMLFromConfigMap (ctx , r .GetClient (), n .GetNamespace (), n .Spec .Models .Name , "customizationTargets" )
724
724
if err != nil {
725
725
if goerrors .Is (err , k8sutil .ErrConfigMapKeyNotFound ) {
@@ -738,7 +738,7 @@ func (r *NemoCustomizerReconciler) addCustomizationTargetConfig(ctx context.Cont
738
738
return nil
739
739
}
740
740
741
- func (r * NemoCustomizerReconciler ) addCustomizationConfigTemplates (ctx context.Context , cfg map [string ]interface {}, n * appsv1alpha1. NemoCustomizer ) error {
741
+ func (r * NemoCustomizerReconciler ) addCustomizationConfigTemplates (ctx context.Context , n * appsv1alpha1. NemoCustomizer , cfg map [string ]interface {}) error {
742
742
customizationConfigTemplatesRaw , err := k8sutil .GetRawYAMLFromConfigMap (ctx , r .GetClient (), n .GetNamespace (), n .Spec .Models .Name , "customizationConfigTemplates" )
743
743
if err != nil {
744
744
if goerrors .Is (err , k8sutil .ErrConfigMapKeyNotFound ) {
0 commit comments