@@ -202,7 +202,7 @@ func isGaleraContainerStartedAndWaiting(ctx context.Context, pod *corev1.Pod, in
202202 waiting := false
203203 err := mariadb .ExecInPod (ctx , h , config , instance .Namespace , pod .Name , "galera" ,
204204 []string {"/bin/bash" , "-c" , "test ! -f /var/lib/mysql/gcomm_uri && pgrep -aP1 | grep -o detect_gcomm_and_start.sh" },
205- func (stdout * bytes.Buffer , stderr * bytes.Buffer ) error {
205+ func (stdout * bytes.Buffer , _ * bytes.Buffer ) error {
206206 predicate := strings .TrimSuffix (stdout .String (), "\n " )
207207 waiting = (predicate == "detect_gcomm_and_start.sh" )
208208 return nil
@@ -219,7 +219,7 @@ func isGaleraContainerStartedAndWaiting(ctx context.Context, pod *corev1.Pod, in
219219func injectGcommURI (ctx context.Context , h * helper.Helper , config * rest.Config , instance * mariadbv1.Galera , pod * corev1.Pod , uri string ) error {
220220 err := mariadb .ExecInPod (ctx , h , config , instance .Namespace , pod .Name , "galera" ,
221221 []string {"/bin/bash" , "-c" , "echo '" + uri + "' > /var/lib/mysql/gcomm_uri" },
222- func (stdout * bytes.Buffer , stderr * bytes.Buffer ) error {
222+ func (_ * bytes.Buffer , _ * bytes.Buffer ) error {
223223 attr := instance .Status .Attributes [pod .Name ]
224224 attr .Gcomm = uri
225225 attr .ContainerID = pod .Status .ContainerStatuses [0 ].ContainerID
@@ -233,7 +233,7 @@ func injectGcommURI(ctx context.Context, h *helper.Helper, config *rest.Config,
233233func retrieveSequenceNumber (ctx context.Context , helper * helper.Helper , config * rest.Config , instance * mariadbv1.Galera , pod * corev1.Pod ) error {
234234 err := mariadb .ExecInPod (ctx , helper , config , instance .Namespace , pod .Name , "galera" ,
235235 []string {"/bin/bash" , "/var/lib/operator-scripts/detect_last_commit.sh" },
236- func (stdout * bytes.Buffer , stderr * bytes.Buffer ) error {
236+ func (stdout * bytes.Buffer , _ * bytes.Buffer ) error {
237237 seqno := strings .TrimSuffix (stdout .String (), "\n " )
238238 attr := mariadbv1.GaleraAttributes {
239239 Seqno : seqno ,
0 commit comments