Skip to content

Commit

Permalink
CSPL-3156: Add kubectl-splunk Plugin for Executing Splunk Commands wi…
Browse files Browse the repository at this point in the history
…thin Kubernetes Pods (#1407)

* adding kubectl splunk plugin

Signed-off-by: Vivek Reddy <[email protected]>

* Fix code scanning alert no. 32: Clear-text logging of sensitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* added auto credentials

Signed-off-by: Vivek Reddy <[email protected]>

* Fix code scanning alert no. 34: Clear-text logging of sensitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* modularized code with test

Signed-off-by: Vivek Reddy <[email protected]>

* adding workflow for this

Signed-off-by: Vivek Reddy <[email protected]>

* adding workflow for this

Signed-off-by: Vivek Reddy <[email protected]>

* adding name to workflow

Signed-off-by: Vivek Reddy <[email protected]>

* adding name to workflow

Signed-off-by: Vivek Reddy <[email protected]>

* adding name to workflow

Signed-off-by: Vivek Reddy <[email protected]>

* adding branch for test

Signed-off-by: Vivek Reddy <[email protected]>

---------

Signed-off-by: Vivek Reddy <[email protected]>
Co-authored-by: Vivek Reddy <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Arjun Kondur <[email protected]>
  • Loading branch information
4 people authored Jan 27, 2025
1 parent 59b8171 commit 07f1447
Show file tree
Hide file tree
Showing 9 changed files with 2,094 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/kubectl-splunk-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# .github/workflows/ci.yml

name: Kubectl Splunk CI

on:
push:
branches:
- feature/CSPL-3152
pull_request:
branches:
- feature/CSPL-3152

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r tools/kubect-splunk/requirements.txt
pip install -e .
pip install pytest coverage
- name: Run Tests with Coverage
run: |
source .venv/bin/activate
coverage run -m unittest discover -s tests
coverage report
coverage xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: coverage.xml
flags: unittests
name: codecov-umbrella
Loading

0 comments on commit 07f1447

Please sign in to comment.