Skip to content

feat: add storage, RBAC, and custom resource tools#129

Merged
basebandit merged 1 commit into
mainfrom
feat/storage-rbac-crd
Jun 11, 2026
Merged

feat: add storage, RBAC, and custom resource tools#129
basebandit merged 1 commit into
mainfrom
feat/storage-rbac-crd

feat: add storage, RBAC, and custom resource tools

bcdd50a
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jun 11, 2026 in 26s

Annotations

Check failure on line 30 in cluster/persistentvolume.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "error getting client: %w" 3 times.

See more on https://sonarcloud.io/project/issues?id=basebandit_kai&issues=AZ62oNUXsvfB9vMHvnIx&open=AZ62oNUXsvfB9vMHvnIx&pullRequest=129

Check failure on line 35 in cluster/customresource.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "error getting dynamic client: %w" 4 times.

See more on https://sonarcloud.io/project/issues?id=basebandit_kai&issues=AZ62oNWnsvfB9vMHvnIz&open=AZ62oNWnsvfB9vMHvnIz&pullRequest=129

Check failure on line 37 in cluster/persistentvolumeclaim.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "persistent volume claim name is required" 3 times.

See more on https://sonarcloud.io/project/issues?id=basebandit_kai&issues=AZ62oNWvsvfB9vMHvnI0&open=AZ62oNWvsvfB9vMHvnI0&pullRequest=129

Check failure on line 131 in tools/storage.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=basebandit_kai&issues=AZ62oNW-svfB9vMHvnI6&open=AZ62oNW-svfB9vMHvnI6&pullRequest=129

Check failure on line 91 in tools/storage.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "tool invoked" 4 times.

See more on https://sonarcloud.io/project/issues?id=basebandit_kai&issues=AZ62oNW-svfB9vMHvnI5&open=AZ62oNW-svfB9vMHvnI5&pullRequest=129

Check failure on line 35 in tools/storage.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Name of the PVC" 3 times.

See more on https://sonarcloud.io/project/issues?id=basebandit_kai&issues=AZ62oNW-svfB9vMHvnI3&open=AZ62oNW-svfB9vMHvnI3&pullRequest=129

Check failure on line 50 in cluster/persistentvolumeclaim.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "error getting client: %w" 4 times.

See more on https://sonarcloud.io/project/issues?id=basebandit_kai&issues=AZ62oNWvsvfB9vMHvnI1&open=AZ62oNWvsvfB9vMHvnI1&pullRequest=129

Check failure on line 34 in cluster/rbac.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "error getting client: %w" 10 times.

See more on https://sonarcloud.io/project/issues?id=basebandit_kai&issues=AZ62oNWdsvfB9vMHvnIy&open=AZ62oNWdsvfB9vMHvnIy&pullRequest=129

Check failure on line 54 in tools/customresource.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "tool invoked" 4 times.

See more on https://sonarcloud.io/project/issues?id=basebandit_kai&issues=AZ62oNW2svfB9vMHvnI2&open=AZ62oNW2svfB9vMHvnI2&pullRequest=129

Check failure on line 36 in tools/storage.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Namespace (defaults to current)" 4 times.

See more on https://sonarcloud.io/project/issues?id=basebandit_kai&issues=AZ62oNW-svfB9vMHvnI4&open=AZ62oNW-svfB9vMHvnI4&pullRequest=129