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

Overwrite files with format: ignition #411

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

hardys
Copy link
Contributor

@hardys hardys commented Aug 21, 2024

This aligns with the default cloud-init behavior and enables e.g overwriting distro-default files via RKE2ConfigTemplate using the spec.template.spec.files API.

With this we can see the example mentioned in #410 now works as expected the empty /etc/motd is overwritten.

worker-0 login: root
Password: 
hello 123

kind/bug
Fixes #410

@hardys
Copy link
Contributor Author

hardys commented Aug 22, 2024

@alexander-demicev @furkatgofurov7 - this is passing CI and ready for review, when you get a moment please take a look - thanks!

@furkatgofurov7
Copy link
Contributor

furkatgofurov7 commented Aug 22, 2024

Thanks @hardys for the fix!

@furkatgofurov7
Copy link
Contributor

@hardys CI requires all commits to be signed before merging the PRs, can you please push it signed? Thanks.

auto-merge was automatically disabled August 23, 2024 08:04

Head branch was pushed to by a user without write access

@hardys
Copy link
Contributor Author

hardys commented Aug 23, 2024

@hardys CI requires all commits to be signed before merging the PRs, can you please push it signed? Thanks.

Now done, thanks!

Copy link
Contributor

@furkatgofurov7 furkatgofurov7 left a comment

Choose a reason for hiding this comment

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

Thank you!

This aligns with the default cloud-init behavior and enables e.g
overwriting distro-default files via RKE2ConfigTemplate using the
spec.template.spec.files API.

Signed-off-by: Steven Hardy <[email protected]>
auto-merge was automatically disabled August 23, 2024 10:37

Head branch was pushed to by a user without write access

@hardys
Copy link
Contributor Author

hardys commented Aug 23, 2024

Sorry I misunderstood the signing requirement initially - commit should now be signed/verified https://github.com/rancher/cluster-api-provider-rke2/pull/411/commits

@alexander-demicev alexander-demicev merged commit 7cfd679 into rancher:main Aug 23, 2024
8 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.

File overwrite fails with ignition format
3 participants