Wrong custom HAProxy configuration breaks the Pod

Description

I have made wrong configuration in haproxy section and can't revert it to defaults without "hacking" (deleting configmap manually).

Steps:

  1. add to manifest

and apply it

  1. remove configuration from manifest and apply

configmap not changed and haproxy can't start

 

also configmap not deleted when I set haproxy.disabled=false

Environment

None

Smart Checklist

Activity

Jira Bot January 21, 2021 at 2:56 PM

To:
CC:

Hi, I'm jira-bot, Percona's Jira automation tool. I've detected that someone from
Percona has made an edit to the Summary field of an issue that you reported.

I'm not sentient (yet) so I'm not sure whether the person fixed a typo, changed
a few words, or completely rewrote the text. In any case, it is Percona Engineering's
intention to make the Summary and Description of an issue as accurate as possible
so that we're fixing the actual problem you're encountering, and to avoid
misunderstandings about symptoms and causes.

If the current Summary does not accurately reflect the problem you are reporting,
or if you feel the change was otherwise inappropriate in some way, please add a
new comment explaining things and we'll address it as soon as we can.

This message will be added only once per issue, regardless of how many times
the Summary is edited.

message-code:summary-edited

Slava Sarzhan January 4, 2021 at 2:54 PM

Now if incorrect config is applied it will be ignored and user will have the possibility of correcting config and  re-applying it once again.

Slava Sarzhan January 4, 2021 at 2:10 PM

Hi,

I have added the validation for HAProxy custom config (configmap).

Done

Details

Assignee

Reporter

Time tracking

4h 50m logged

Fix versions

Affects versions

Priority

Smart Checklist

Created November 18, 2020 at 7:35 AM
Updated March 5, 2024 at 6:02 PM
Resolved February 2, 2021 at 3:49 PM