Skip to content

[v13] Change Helm reference --set formatting#25509

Merged
ptgott merged 2 commits intobranch/v13from
bot/backport-24944-branch/v13
May 10, 2023
Merged

[v13] Change Helm reference --set formatting#25509
ptgott merged 2 commits intobranch/v13from
bot/backport-24944-branch/v13

Conversation

@ptgott
Copy link
Copy Markdown
Contributor

@ptgott ptgott commented May 2, 2023

Backport #24944 to branch/v13

ptgott added 2 commits May 2, 2023 19:40
Closes #9686

Since the `--set` flag examples aren't commands, this change removes the
shell prompts and changes code fence labels from `code` to `text`.
Keep the values.yaml examples. Used the following script to generate the
change:

files="$(find docs/pages/reference/helm-reference -name "*.mdx")";

for i in $(echo "$files"); do
    tmp=$(awk 'BEGIN{yaml=""}
    /<Tabs>/{t=1}
    t==1 && /```yaml/{y=1; yaml="`values.yaml` example:\n\n"}
    y==1{yaml = (yaml "\n" $0)}
    y==1 && /```$/{y=0; print yaml; yaml=""}
    t==1 && /<\/Tabs/{t=0; next}
    t==0{print $0 }' $i)
    echo "$tmp" > $i;
done
@ptgott ptgott added this pull request to the merge queue May 10, 2023
Merged via the queue into branch/v13 with commit 2ff8282 May 10, 2023
@ptgott ptgott deleted the bot/backport-24944-branch/v13 branch May 10, 2023 22:22
@r0mant r0mant mentioned this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants