Skip to content

allow to map/filter substitute secret data - #133

Open
cbarbian-sap wants to merge 1 commit into
mainfrom
substitute-from-with-items
Open

cbarbian-sap wants to merge 1 commit into
mainfrom
substitute-from-with-items

Conversation

@cbarbian-sap

@cbarbian-sap cbarbian-sap commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

So far, with spec.substituteFrom, the whole content of the referenced secrets is merged and passed to envsubst (such that secret keys become variables). With this PR keys can be filtered and mapped, such as:

spec:
  substituteFrom:
  - name: my-secret
    items:
    - key: original-name
      as: ALIASED_NAME
```

If items is not specified or empty, the original behaviour happens (that is all secret keys are used unchanged).
Also note that transforming happens before merging; that is, the transformed keys are used for the merge. 

This branch has not been deployed

No deployments
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.

2 participants