Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure kubeconfig ends with \n #880

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

graywolf-at-work
Copy link
Contributor

In order to be a text file according to POSIX, file needs to be composed of
text lines. Text line is defined as sequence of characters ending in \n. Sadly,
~} did strip everything including the \n, so the kubeconfing did not end
with a new line. Output empty string at the end to make sure of it.

PR o'clock

Description

Please explain the changes you made here and link to any relevant issues.

Checklist

@graywolf-at-work graywolf-at-work changed the title Ensure kubeconfig ends with \n bug: Ensure kubeconfig ends with \n May 14, 2020
@graywolf-at-work graywolf-at-work changed the title bug: Ensure kubeconfig ends with \n fix: Ensure kubeconfig ends with \n May 14, 2020
@barryib barryib requested a review from dpiddockcmp May 15, 2020 10:16
Copy link
Contributor

@dpiddockcmp dpiddockcmp left a comment

Choose a reason for hiding this comment

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

Works for me

@barryib
Copy link
Member

barryib commented May 29, 2020

@graywolf-at-work Thanks for your contribution. Can you please update your branch, so I can merge it ?

@graywolf-at-work
Copy link
Contributor Author

I've rebased on current master.

In order to be a text file according to POSIX, file needs to be composed of
text lines. Text line is defined as sequence of characters ending in \n. Sadly,
`~}` did strip everything including the \n, so the kubeconfing did not end
with a new line. Output empty string at the end to make sure of it.
@dpiddockcmp dpiddockcmp merged commit 05cd785 into terraform-aws-modules:master Jun 2, 2020
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants