Skip to content

feat: kubernetes runner with workflow steps as native pods - #40

Draft
hllvc wants to merge 48 commits into
mainfrom
feat/k8s-run-controller
Draft

hllvc wants to merge 48 commits into
mainfrom
feat/k8s-run-controller

feat: publish the kubernetes runner images and chart to ghcr on relea…

bf01800
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Oct 14, 2026 in 22s

Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 200 in k8s/chart/sg-runner/templates/runner-statefulset.yaml

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Specify a storage limit for this container.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvvc85mCeENibQD5&open=AaE8qvvc85mCeENibQD5&pullRequest=40

Check warning on line 40 in k8s/chart/sg-runner/templates/scaler-deployment.yaml

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Bind this Service Account to RBAC or disable "automountServiceAccountToken".

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvvl85mCeENibQEA&open=AaE8qvvl85mCeENibQEA&pullRequest=40

Check warning on line 568 in k8s/runner.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add an explicit return statement at the end of the function.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwD85mCeENibQEc&open=AaE8qvwD85mCeENibQEc&pullRequest=40

Check warning on line 486 in k8s/runner.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add an explicit return statement at the end of the function.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwD85mCeENibQEW&open=AaE8qvwD85mCeENibQEW&pullRequest=40

Check warning on line 232 in k8s/runner.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add an explicit return statement at the end of the function.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwD85mCeENibQEK&open=AaE8qvwD85mCeENibQEK&pullRequest=40

Check warning on line 293 in k8s/runner.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add an explicit return statement at the end of the function.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwD85mCeENibQEN&open=AaE8qvwD85mCeENibQEN&pullRequest=40

Check warning on line 87 in k8s/runner.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add an explicit return statement at the end of the function.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwD85mCeENibQEF&open=AaE8qvwD85mCeENibQEF&pullRequest=40

Check warning on line 96 in k8s/runner.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add an explicit return statement at the end of the function.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwD85mCeENibQEG&open=AaE8qvwD85mCeENibQEG&pullRequest=40

Check warning on line 336 in .github/scripts/kind-smoke.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of using the literal '[\"true\"]' 6 times.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwX85mCeENibQE1&open=AaE8qvwX85mCeENibQE1&pullRequest=40

Check warning on line 46 in .github/scripts/chart-check.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwh85mCeENibQE4&open=AaE8qvwh85mCeENibQE4&pullRequest=40

Check warning on line 213 in k8s/chart/sg-runner/templates/runner-statefulset.yaml

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Specify a memory limit for this container.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvvc85mCeENibQD0&open=AaE8qvvc85mCeENibQD0&pullRequest=40

Check warning on line 65 in .github/scripts/chart-check.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Assign this positional parameter to a local variable.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwh85mCeENibQFA&open=AaE8qvwh85mCeENibQFA&pullRequest=40

Check warning on line 637 in k8s/runner.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add an explicit return statement at the end of the function.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwD85mCeENibQEe&open=AaE8qvwD85mCeENibQEe&pullRequest=40

Check warning on line 200 in k8s/chart/sg-runner/templates/runner-statefulset.yaml

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Specify a memory request for this container.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvvc85mCeENibQD9&open=AaE8qvvc85mCeENibQD9&pullRequest=40

Check warning on line 57 in .github/scripts/chart-check.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Assign this positional parameter to a local variable.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwh85mCeENibQE5&open=AaE8qvwh85mCeENibQE5&pullRequest=40

Check failure on line 134 in k8s/scaler/internal/steps/podspec.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 25 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvr585mCeENibQDk&open=AaE8qvr585mCeENibQDk&pullRequest=40

Check warning on line 22 in k8s/Dockerfile

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Sort these package names alphanumerically.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwM85mCeENibQEh&open=AaE8qvwM85mCeENibQEh&pullRequest=40

Check warning on line 162 in .github/scripts/chart-check.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwh85mCeENibQFI&open=AaE8qvwh85mCeENibQFI&pullRequest=40

Check failure on line 71 in k8s/scaler/internal/steps/imageconfig.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvrc85mCeENibQDg&open=AaE8qvrc85mCeENibQDg&pullRequest=40

Check failure on line 153 in k8s/scaler/internal/config/config.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvtQ85mCeENibQDw&open=AaE8qvtQ85mCeENibQDw&pullRequest=40

Check warning on line 23 in k8s/scaler/internal/controller/nudge_test.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Group together these consecutive parameters of the same type.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvs585mCeENibQDt&open=AaE8qvs585mCeENibQDt&pullRequest=40

Check warning on line 11 in k8s/Dockerfile

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The "debian" image runs with "root" as the default user. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwM85mCeENibQEg&open=AaE8qvwM85mCeENibQEg&pullRequest=40

Check failure on line 67 in k8s/scaler/internal/steps/state.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 42 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvsB85mCeENibQDl&open=AaE8qvsB85mCeENibQDl&pullRequest=40

Check failure on line 287 in .github/scripts/kind-smoke.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a default case (*) to handle unexpected values.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwX85mCeENibQEp&open=AaE8qvwX85mCeENibQEp&pullRequest=40

Check warning on line 479 in .github/scripts/kind-smoke.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Assign this positional parameter to a local variable.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwX85mCeENibQEq&open=AaE8qvwX85mCeENibQEq&pullRequest=40