Skip to content

Commit 41370fd

Browse files
authored
chore: add KIND_CONFIG variable to override kind configuration (#19)
## What <!-- One sentence summary --> Allows overriding kind cluster, required for OIDC setup for kind cluster used by UI E2E test, see opendefensecloud/solution-arsenal#397 ## Why <!-- Motivation / problem being solved. Skip if obvious from the linked issue. --> See above. ## Testing <!-- How was this tested? e.g. unit, envtest, manual against vX.Y.Z --> See above. ## Checklist - [x] Tests added/updated - [x] No breaking changes (or upgrade path documented above) - [x] Readable commit history (squashed and cleaned up as desired) - [x] AI code review considered and comments resolved <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Chores** * Enhanced local cluster setup to support custom Kind cluster configuration when specified. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 5107b50 + ee759b0 commit 41370fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ setup-local-cluster: ## Set up a Kind cluster for local development if it does n
200200
echo "Kind cluster '$(KIND_CLUSTER)' already exists. Skipping creation." ;; \
201201
*) \
202202
echo "Creating Kind cluster '$(KIND_CLUSTER)'..."; \
203-
$(KIND) create cluster --name $(KIND_CLUSTER) ;; \
203+
$(KIND) create cluster --name $(KIND_CLUSTER) $(if $(KIND_CONFIG),--config $(KIND_CONFIG)) ;; \
204204
esac
205205

206206
##@ Common golang targets

0 commit comments

Comments
 (0)