@@ -133,7 +133,7 @@ func AddCluster(clientset *kubernetes.Clientset, client *rest.RESTClient, cl *cr
133133 ContainerResources : operator .GetContainerResourcesJSON (& cl .Spec .ContainerResources ),
134134 ConfVolume : operator .GetConfVolume (clientset , cl , namespace ),
135135 CollectAddon : operator .GetCollectAddon (clientset , namespace , & cl .Spec ),
136- BadgerAddon : operator .GetBadgerAddon (clientset , namespace , cl ),
136+ BadgerAddon : operator .GetBadgerAddon (clientset , namespace , cl , cl . Spec . Name ),
137137 PgmonitorEnvVars : operator .GetPgmonitorEnvVars (cl .Spec .UserLabels [config .LABEL_COLLECT ]),
138138 PgbackrestEnvVars : operator .GetPgbackrestEnvVars (cl .Labels [config .LABEL_BACKREST ], cl .Spec .ClusterName , cl .Spec .Name ,
139139 cl .Spec .Port , cl .Spec .UserLabels [config .LABEL_BACKREST_STORAGE_TYPE ]),
@@ -336,7 +336,7 @@ func Scale(clientset *kubernetes.Clientset, client *rest.RESTClient, replica *cr
336336 ContainerResources : operator .GetContainerResourcesJSON (& cs ),
337337 NodeSelector : operator .GetReplicaAffinity (cluster .Spec .UserLabels , replica .Spec .UserLabels ),
338338 CollectAddon : operator .GetCollectAddon (clientset , namespace , & cluster .Spec ),
339- BadgerAddon : operator .GetBadgerAddon (clientset , namespace , cluster ),
339+ BadgerAddon : operator .GetBadgerAddon (clientset , namespace , cluster , replica . Spec . Name ),
340340 PgmonitorEnvVars : operator .GetPgmonitorEnvVars (cluster .Spec .UserLabels [config .LABEL_COLLECT ]),
341341 PgbackrestEnvVars : operator .GetPgbackrestEnvVars (cluster .Labels [config .LABEL_BACKREST ], replica .Spec .ClusterName , replica .Spec .Name ,
342342 cluster .Spec .Port , cluster .Spec .UserLabels [config .LABEL_BACKREST_STORAGE_TYPE ]),
0 commit comments