From a15099a8da869594b64f755f9222cfc5f9c7a776 Mon Sep 17 00:00:00 2001 From: Atanas Pamukchiev Date: Sat, 2 Dec 2023 14:21:03 +0100 Subject: [PATCH] feat(splunk): Add HEC service (#15353) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ Type of change** - [x] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [x] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- charts/incubator/splunk/Chart.yaml | 3 ++- charts/incubator/splunk/questions.yaml | 22 ++++++++++++++++++++++ charts/incubator/splunk/values.yaml | 8 ++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/charts/incubator/splunk/Chart.yaml b/charts/incubator/splunk/Chart.yaml index db7a350baaa..eb1ca9ca1ac 100644 --- a/charts/incubator/splunk/Chart.yaml +++ b/charts/incubator/splunk/Chart.yaml @@ -1,7 +1,7 @@ kubeVersion: '>=1.24.0' apiVersion: v2 name: splunk -version: 4.0.0 +version: 4.1.0 appVersion: 9.1.2 description: This is a Chartfile for Splunk designed for OpenShift and TrueNAS based on Alpine Linux - https://www.splunk.com @@ -12,6 +12,7 @@ sources: - https://splunk.github.io/docker-splunk - https://github.com/truecharts/charts/tree/master/charts/incubator/splunk - https://hub.docker.com/r/splunk/splunk +type: application maintainers: - name: TrueCharts email: info@truecharts.org diff --git a/charts/incubator/splunk/questions.yaml b/charts/incubator/splunk/questions.yaml index 13ca244affe..58b56b6b522 100644 --- a/charts/incubator/splunk/questions.yaml +++ b/charts/incubator/splunk/questions.yaml @@ -65,6 +65,28 @@ questions: type: int default: 8000 required: true + - variable: hec + label: HTTP Event Collector service + description: The service for the Splunk HTTP Event Collector (HEC) + schema: + additional_attrs: true + type: dict + attrs: +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: hec + label: HTTP Event Collector Service Port Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: Port + description: This port exposes the container port on the service + schema: + type: int + default: 8088 + required: true - variable: management label: management service description: HTTPS API diff --git a/charts/incubator/splunk/values.yaml b/charts/incubator/splunk/values.yaml index b3b718e2a93..c3e22a0c4fc 100644 --- a/charts/incubator/splunk/values.yaml +++ b/charts/incubator/splunk/values.yaml @@ -30,6 +30,14 @@ service: port: 8000 protocol: http targetPort: 8000 + hec: + enabled: true + ports: + hec: + enabled: true + port: 8088 + protocol: http + targetPort: 8088 management: enabled: true ports: