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

Add support for Flatcar Container Linux #2365

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

krnowak
Copy link
Contributor

@krnowak krnowak commented Sep 22, 2021

Description

This adds support Flatcar Container Linux, which is a fork of CoreOS Container Linux, and is compatible with it. We currently carry a patch in our wa-linux-agent package, and now I'm trying to upstream it.

I wasn't sure if I also need to update the code in bin/waagent2.0, which seems to be an older version of the project, so for now I left it alone. Please let me know if it needs updating too.


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines

@ghost
Copy link

ghost commented Sep 22, 2021

CLA assistant check
All CLA requirements met.

setup.py Outdated Show resolved Hide resolved
azurelinuxagent/common/osutil/factory.py Outdated Show resolved Hide resolved
azurelinuxagent/pa/deprovision/factory.py Outdated Show resolved Hide resolved
@larohra larohra self-assigned this Sep 24, 2021
Flatcar Container Linux is a fork of CoreOS Container Linux and as
such, compatible with it. But distro detection code checking
`/etc/os-release` will return `flatcar` instead of `coreos`, so make
sure that whatever code paths for `flatcar` are the same as for
`coreos`.
@krnowak
Copy link
Contributor Author

krnowak commented Sep 28, 2021

Updated.

@codecov
Copy link

codecov bot commented Sep 28, 2021

Codecov Report

Merging #2365 (e627c88) into develop (ea4268f) will increase coverage by 0.04%.
The diff coverage is 50.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2365      +/-   ##
===========================================
+ Coverage    70.86%   70.91%   +0.04%     
===========================================
  Files           97       97              
  Lines        14100    14100              
  Branches      2031     2031              
===========================================
+ Hits          9992     9999       +7     
+ Misses        3659     3654       -5     
+ Partials       449      447       -2     
Impacted Files Coverage Δ
azurelinuxagent/pa/deprovision/factory.py 57.89% <0.00%> (ø)
azurelinuxagent/common/osutil/factory.py 94.80% <100.00%> (ø)
azurelinuxagent/common/event.py 85.97% <0.00%> (+0.67%) ⬆️
azurelinuxagent/ga/collect_telemetry_events.py 91.09% <0.00%> (+1.36%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea4268f...e627c88. Read the comment docs.

Copy link
Contributor

@larohra larohra left a comment

Choose a reason for hiding this comment

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

Looks good to me, running test automation suite

@larohra larohra merged commit f0a948c into Azure:develop Sep 28, 2021
@krnowak krnowak deleted the krnowak/support-flatcar branch September 28, 2021 18:53
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