Skip to content

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

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

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

fix: roll runner and scaler pods when the runner group config changes

a8aff03
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Oct 27, 2026 in 19s

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 41 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 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=AaE8qvwX85mCeENibQEr&open=AaE8qvwX85mCeENibQEr&pullRequest=40

Check warning on line 551 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=AaE8qvwX85mCeENibQEx&open=AaE8qvwX85mCeENibQEx&pullRequest=40

Check warning on line 43 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=AaE8qvwh85mCeENibQE3&open=AaE8qvwh85mCeENibQE3&pullRequest=40

Check warning on line 214 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=AaE8qvvc85mCeENibQD6&open=AaE8qvvc85mCeENibQD6&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 warning on line 541 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=AaE8qvwX85mCeENibQEw&open=AaE8qvwX85mCeENibQEw&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=AaE8qvwh85mCeENibQE_&open=AaE8qvwh85mCeENibQE_&pullRequest=40

Check warning on line 72 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=AaE8qvwh85mCeENibQFD&open=AaE8qvwh85mCeENibQFD&pullRequest=40

Check warning on line 533 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=AaE8qvwX85mCeENibQEt&open=AaE8qvwX85mCeENibQEt&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 failure on line 55 in k8s/scaler/internal/steps/gc_test.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=AaE8qvrk85mCeENibQDi&open=AaE8qvrk85mCeENibQDi&pullRequest=40

Check warning on line 67 in .github/scripts/kind-smoke.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=AaE8qvwX85mCeENibQEl&open=AaE8qvwX85mCeENibQEl&pullRequest=40

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Specify a storage request for this container.

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

Check warning on line 577 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=AaE8qvwX85mCeENibQEz&open=AaE8qvwX85mCeENibQEz&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

Make sure that using clear-text protocols is safe here.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_sg-runner&issues=AaE8qvwX85mCeENibQEk&open=AaE8qvwX85mCeENibQEk&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 214 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 201 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 31 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=AaE8qvwh85mCeENibQE2&open=AaE8qvwh85mCeENibQE2&pullRequest=40

Check warning on line 214 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=AaE8qvvc85mCeENibQD-&open=AaE8qvvc85mCeENibQD-&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 201 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 235 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=AaE8qvwX85mCeENibQEm&open=AaE8qvwX85mCeENibQEm&pullRequest=40

Check warning on line 170 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=AaE8qvwh85mCeENibQFG&open=AaE8qvwh85mCeENibQFG&pullRequest=40