Skip to content

Update secret loading logic#7

Merged
dminnear-rh merged 4 commits into
mainfrom
update-secret-loading-logic
Jul 23, 2025
Merged

Update secret loading logic#7
dminnear-rh merged 4 commits into
mainfrom
update-secret-loading-logic

Conversation

@dminnear-rh

Copy link
Copy Markdown
Collaborator

No description provided.

…configuration

**Core Changes:**
- **New architecture**: Replaced hardcoded `USE_SECRETS` modifications with dynamic configuration reading from `values-global.yaml`
- **Single source of truth**: Added `global.secretLoader.disabled` field that controls secrets behavior (true = disabled, false = enabled)
- **Makefile restructure**: Now generates simple include-based `Makefile` + always copies `Makefile-pattern` with dynamic logic
- **Runtime configuration**: `Makefile-pattern` uses `yq` to read `global.secretLoader.disabled` and set `USE_SECRETS` accordingly

**Implementation Details:**
- Updated `ProcessGlobalValues()` to accept `withSecrets` parameter and set `global.secretLoader.disabled` field
- Modified Makefile generation to create include-based structure instead of copying/modifying single file
- Removed static file modifications from `pattern.sh` and `HandleSecretsSetup()`
- Updated all unit and integration tests to validate new `global.secretLoader.disabled` behavior
- Added Cursor acknowledgment to README and updated documentation

**Benefits:**
- Cleaner architecture with configuration-driven behavior
- Users can customize Makefiles while retaining common functionality
- Eliminates need for static file modifications
- Single configuration field controls all secrets-related behavior

The change maintains full backward compatibility while providing a more robust and maintainable architecture.
@dminnear-rh dminnear-rh merged commit 458f960 into main Jul 23, 2025
3 checks passed
@dminnear-rh dminnear-rh deleted the update-secret-loading-logic branch July 23, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant