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

Remove the trailing document separator (---) from examples generated #221

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

turkenf
Copy link
Collaborator

@turkenf turkenf commented Jun 19, 2023

Description of your changes

This PR removes the document separator at the end of examples generated in upjet-based providers.

Fixes: #196

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Manually tested in turkenf/upjet and turkenf/provider-azuread.

@maximilianbraun
Copy link

Hey!

would appreciate the fix landing soon in a release.

// no sensitive info in the example manifest
if err := ioutil.WriteFile(pm.ManifestPath, buff.Bytes(), 0600); err != nil {
if err := ioutil.WriteFile(pm.ManifestPath, newBuff, 0600); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please replace the deprecated ioutil.WriteFile with os.WriteFile?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have changed and tested in turkenf/provider-azuread:
Screenshot 2023-07-27 at 23 06 18

@turkenf turkenf merged commit 42f0f71 into crossplane:main Jul 27, 2023
4 checks passed
@turkenf turkenf deleted the issue-196 branch July 27, 2023 20:07
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.

Remove the trailing document separator (---) from the generated example manifests
3 participants