Skip to content

Clean up configuration - #1404

Merged
jorge-romero merged 20 commits into
masterfrom
bugfix/cleanConfig
Oct 7, 2026
Merged

jorge-romero merged 20 commits into
masterfrom
bugfix/cleanConfig

Conversation

@jafarre-bi

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread scripts/migrate-provapp-secrets.sh Outdated
oc patch secret "${SECRET_NAME}" \
-n "${NAMESPACE}" \
--type merge \
-p "$(printf '{"stringData":{"%s":"%s"}}' "${ENV_VAR}" "${VALUE}")"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it si not the value in base64 it can break this. You can use something like:
PATCH=$(jq -n
--arg key "$ENV_VAR"
--arg value "$VALUE"
'{stringData: {($key): $value}}')

oc patch secret "$SECRET_NAME"
-n "$NAMESPACE"
--type merge
-p "$PATCH"

@jorge-romero
jorge-romero merged commit f2b2e50 into master Oct 7, 2026
24 checks passed
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.

3 participants