From a29df50c0c9ed277c9e5b0603bfe38e60d092907 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Tue, 3 Oct 2023 23:14:29 +0300 Subject: [PATCH] chore(traefik): fix mid quests --- charts/enterprise/traefik/Chart.yaml | 2 +- .../customRequestHeadersMiddleware.yaml | 34 +++++++++++-------- .../customResponseHeadersMiddleware.yaml | 34 +++++++++++-------- 3 files changed, 41 insertions(+), 29 deletions(-) diff --git a/charts/enterprise/traefik/Chart.yaml b/charts/enterprise/traefik/Chart.yaml index c3c80902df5..97a91f57274 100644 --- a/charts/enterprise/traefik/Chart.yaml +++ b/charts/enterprise/traefik/Chart.yaml @@ -23,7 +23,7 @@ sources: - https://github.com/traefik/traefik-helm-chart - https://traefik.io/ type: application -version: 21.0.4 +version: 21.0.5 annotations: truecharts.org/catagories: | - network diff --git a/templates/questions/traefik/customRequestHeadersMiddleware.yaml b/templates/questions/traefik/customRequestHeadersMiddleware.yaml index f0a1256cdb2..7baa729c9cb 100644 --- a/templates/questions/traefik/customRequestHeadersMiddleware.yaml +++ b/templates/questions/traefik/customRequestHeadersMiddleware.yaml @@ -21,18 +21,24 @@ type: list default: [] items: - - variable: name - label: Header Name - description: Name of custom header to be added to requests, eg. X-Custom-Header + - variable: headersEntry + label: "" schema: - valid_chars: ^[a-zA-Z0-9_\-]*$ - type: string - required: true - default: "" - - variable: value - label: Header Value - description: The value of the header. If the value is empty, the header will be removed. - schema: - type: string - required: true - default: "" + additional_attrs: true + type: dict + attrs: + - variable: name + label: Header Name + description: Name of custom header to be added to requests, eg. X-Custom-Header + schema: + valid_chars: ^[a-zA-Z0-9_\-]*$ + type: string + required: true + default: "" + - variable: value + label: Header Value + description: The value of the header. If the value is empty, the header will be removed. + schema: + type: string + required: true + default: "" diff --git a/templates/questions/traefik/customResponseHeadersMiddleware.yaml b/templates/questions/traefik/customResponseHeadersMiddleware.yaml index c5c462865fb..459fcdf7179 100644 --- a/templates/questions/traefik/customResponseHeadersMiddleware.yaml +++ b/templates/questions/traefik/customResponseHeadersMiddleware.yaml @@ -21,18 +21,24 @@ type: list default: [] items: - - variable: name - label: Header Name - description: Name of custom header to be added to responses, eg. X-Custom-Header + - variable: headersEntry + label: "" schema: - valid_chars: ^[a-zA-Z0-9_\-]*$ - type: string - required: true - default: "" - - variable: value - label: Header Value - description: The value of the header. If the value is empty, the header will be removed. - schema: - type: string - required: true - default: "" + additional_attrs: true + type: dict + attrs: + - variable: name + label: Header Name + description: Name of custom header to be added to responses, eg. X-Custom-Header + schema: + valid_chars: ^[a-zA-Z0-9_\-]*$ + type: string + required: true + default: "" + - variable: value + label: Header Value + description: The value of the header. If the value is empty, the header will be removed. + schema: + type: string + required: true + default: ""