Skip to content

Commit 0d43d12

Browse files
committed
Initial open source version (pre-release)
1 parent 7700ad3 commit 0d43d12

File tree

212 files changed

+41629
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+41629
-68
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: 🐛 Bug report
3+
about: Problems, bugs and issues with KTA
4+
title: '[Bug] '
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
<!-- A clear and concise description of what the bug is. -->
12+
13+
**Steps to reproduce the bug**
14+
<!-- Steps that lead to the bug. -->
15+
16+
**Expected behavior**
17+
<!-- A clear and concise description of what you expected to happen. -->
18+
19+
**Screenshots**
20+
<!-- If applicable, add screenshots to help explain your problem. Otherwise, put "n/a". ->
21+
22+
**System details**
23+
<!-- Please complete the following information. -->
24+
25+
- OS: [e.g. Ubuntu]
26+
- Architecture: [e.g. x86]
27+
- Kubernetes distribution and version: [e.g. vanilla Kubernetes v1.29]
28+
- Container engine and version: [e.g. Docker]
29+
30+
**Additional context**
31+
<!-- Add any other context about the problem here. Otherwise, put "n/a". -->
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: ✨ Feature request
3+
about: Suggest a new feature or enhancement for KTA
4+
title: '[Feature] '
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
<!-- A clear and concise description of what the problem is. -->
12+
13+
**Describe the solution you'd like**
14+
<!-- A clear and concise description of what you want to happen. -->
15+
16+
**Describe alternatives you've considered**
17+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
18+
19+
**Additional context**
20+
<!-- Add any other context or screenshots about the feature request here. -->
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: 🤔 How to do ...?
3+
about: How can I do <insert interesting stuff> in KTA?
4+
title: '[How to] '
5+
labels: ['question', 'community help wanted']
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Before opening an issue, please check the official KTA documentation first: https://dynatrace-oss.github.io/kubernetes-topology-autoscaler -->
11+
<!-- If this is a general question, please use the respective issue type. -->
12+
13+
**What are you trying to achieve?**
14+
<!-- A clear and concise description of what you want to do. -->
15+
16+
**Where do you need help?**
17+
<!-- Let us know where you are stuck. -->
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: 📬 General question
3+
about: General questions and inquiries about KTA
4+
title: '[Question] '
5+
labels: 'question'
6+
assignees: ''
7+
8+
---
9+
10+
Put your question here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build KTA Kubernetes Operator
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'kta-kubernetes-operator/**'
9+
pull_request:
10+
paths:
11+
- 'kta-kubernetes-operator/**'
12+
13+
jobs:
14+
build:
15+
name: Build with Java ${{ matrix.java }}
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
java: [17, 21]
20+
21+
defaults:
22+
run:
23+
working-directory: kta-kubernetes-operator
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
29+
- name: Set up JDK ${{ matrix.java }}
30+
uses: actions/setup-java@v4
31+
with:
32+
distribution: 'temurin'
33+
java-version: ${{ matrix.java }}
34+
35+
- name: Cache Gradle packages
36+
uses: actions/cache@v4
37+
with:
38+
path: |
39+
~/.gradle/caches
40+
~/.gradle/wrapper
41+
key: ${{ runner.os }}-java${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle') }}
42+
restore-keys: |
43+
${{ runner.os }}-java${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle') }}
44+
${{ runner.os }}-java${{ matrix.java }}-gradle-
45+
46+
- name: Build
47+
run: ./gradlew build
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build KTA Python SDK
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'kta-python-sdk/**'
9+
pull_request:
10+
paths:
11+
- 'kta-python-sdk/**'
12+
13+
jobs:
14+
build:
15+
name: Build with Python ${{ matrix.python }}
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python: [3.12, 3.13]
20+
21+
defaults:
22+
run:
23+
working-directory: kta-python-sdk
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
29+
- name: Set up Python ${{ matrix.python }}
30+
uses: actions/setup-python@v4
31+
with:
32+
python-version: ${{ matrix.python }}
33+
34+
- name: Install uv
35+
run: |
36+
curl -LsSf https://astral.sh/uv/install.sh | sh
37+
38+
- name: Set up virtual environment and install dependencies
39+
run: |
40+
uv sync --all-extras --python-preference=only-system
41+
42+
- name: Lint
43+
run: |
44+
source .venv/bin/activate
45+
uv run ruff check src test
46+
47+
- name: Static type check
48+
run: |
49+
source .venv/bin/activate
50+
uv run mypy src
51+
52+
- name: Test
53+
run: |
54+
source .venv/bin/activate
55+
uv run pytest test
56+
57+
- name: Build
58+
run: |
59+
source .venv/bin/activate
60+
uv build
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build KTA website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'website/**'
9+
pull_request:
10+
paths:
11+
- 'website/**'
12+
13+
jobs:
14+
build:
15+
name: Build website
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Lint
23+
run: make markdownlint-docs
24+
25+
- name: Set up Python 3.12
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: '3.12'
29+
30+
- name: Set up virtual environment
31+
working-directory: website
32+
run: |
33+
python3 -m venv .venv
34+
source .venv/bin/activate
35+
pip install -r requirements.txt
36+
37+
- name: Build
38+
working-directory: website
39+
run: |
40+
source .venv/bin/activate
41+
mkdocs build
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy KTA website
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Install apturl
12+
run: sudo apt-get update && sudo apt-get install -y apturl
13+
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.12'
21+
22+
- name: Install dependencies
23+
working-directory: website
24+
run: |
25+
python3 -m venv .venv
26+
source .venv/bin/activate
27+
pip install -r requirements.txt
28+
29+
- name: Deploy
30+
working-directory: website
31+
run: |
32+
source .venv/bin/activate
33+
mkdocs gh-deploy --force

.github/workflows/lint-readmes.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Lint READMEs
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
name: Lint READMEs
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Lint
17+
run: make markdownlint-readmes

0 commit comments

Comments
 (0)