@@ -133,7 +133,7 @@ func AddCluster(clientset *kubernetes.Clientset, client *rest.RESTClient, cl *cr
133
133
ContainerResources : operator .GetContainerResourcesJSON (& cl .Spec .ContainerResources ),
134
134
ConfVolume : operator .GetConfVolume (clientset , cl , namespace ),
135
135
CollectAddon : operator .GetCollectAddon (clientset , namespace , & cl .Spec ),
136
- BadgerAddon : operator .GetBadgerAddon (clientset , namespace , cl ),
136
+ BadgerAddon : operator .GetBadgerAddon (clientset , namespace , cl , cl . Spec . Name ),
137
137
PgmonitorEnvVars : operator .GetPgmonitorEnvVars (cl .Spec .UserLabels [config .LABEL_COLLECT ]),
138
138
PgbackrestEnvVars : operator .GetPgbackrestEnvVars (cl .Labels [config .LABEL_BACKREST ], cl .Spec .ClusterName , cl .Spec .Name ,
139
139
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
336
336
ContainerResources : operator .GetContainerResourcesJSON (& cs ),
337
337
NodeSelector : operator .GetReplicaAffinity (cluster .Spec .UserLabels , replica .Spec .UserLabels ),
338
338
CollectAddon : operator .GetCollectAddon (clientset , namespace , & cluster .Spec ),
339
- BadgerAddon : operator .GetBadgerAddon (clientset , namespace , cluster ),
339
+ BadgerAddon : operator .GetBadgerAddon (clientset , namespace , cluster , replica . Spec . Name ),
340
340
PgmonitorEnvVars : operator .GetPgmonitorEnvVars (cluster .Spec .UserLabels [config .LABEL_COLLECT ]),
341
341
PgbackrestEnvVars : operator .GetPgbackrestEnvVars (cluster .Labels [config .LABEL_BACKREST ], replica .Spec .ClusterName , replica .Spec .Name ,
342
342
cluster .Spec .Port , cluster .Spec .UserLabels [config .LABEL_BACKREST_STORAGE_TYPE ]),
0 commit comments