From 8035d6d9f81ab6d2345b6ecefdf92d265277a25d Mon Sep 17 00:00:00 2001 From: Hyeonmin Park Date: Mon, 16 May 2022 11:34:56 +0900 Subject: [PATCH] chart: Add extraPaths to Ingress of GitHub Webhook Server (#1129) * chart: Add extraPaths to Ingress of GitHub Webhook Server * Update charts/actions-runner-controller/templates/githubwebhook.ingress.yaml Co-authored-by: Yusuke Kuoka * Prefix the toYaml expression to remove the extra newline before extra paths Co-authored-by: Yusuke Kuoka --- .../templates/githubwebhook.ingress.yaml | 3 +++ charts/actions-runner-controller/values.yaml | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/charts/actions-runner-controller/templates/githubwebhook.ingress.yaml b/charts/actions-runner-controller/templates/githubwebhook.ingress.yaml index 68b47bb7..0ca81bad 100644 --- a/charts/actions-runner-controller/templates/githubwebhook.ingress.yaml +++ b/charts/actions-runner-controller/templates/githubwebhook.ingress.yaml @@ -37,6 +37,9 @@ spec: - host: {{ .host | quote }} http: paths: + {{- if .extraPaths }} + {{- toYaml .extraPaths | nindent 10 }} + {{- end }} {{- range .paths }} - path: {{ .path }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index 633e619e..4efe97e9 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -224,6 +224,20 @@ githubWebhookServer: paths: [] # - path: /* # pathType: ImplementationSpecific + # Extra paths that are not automatically connected to the server. This is useful when working with annotation based services. + extraPaths: [] + # - path: /* + # backend: + # serviceName: ssl-redirect + # servicePort: use-annotation + ## for Kubernetes >=1.19 (when "networking.k8s.io/v1" is used) + # - path: /* + # pathType: Prefix + # backend: + # service: + # name: ssl-redirect + # port: + # name: use-annotation tls: [] # - secretName: chart-example-tls # hosts: