Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Improve Flatcar behavior on GCE when using oslogin#592

Merged
margamanterola merged 2 commits intomainfrom
marga-kinvolk/gce-image
Sep 22, 2020
Merged

Improve Flatcar behavior on GCE when using oslogin#592
margamanterola merged 2 commits intomainfrom
marga-kinvolk/gce-image

Conversation

@margamanterola
Copy link
Copy Markdown
Contributor

@margamanterola margamanterola commented Sep 17, 2020

Improve behavior on GCE

This change updates to the latest oslogin version provided by Google. Since our last update, this was split into a different repo and the directory structure changed significantly.

It also added group support, which needed to be added to the nsswitch.conf file that we ship. And the pam configuration got modified significantly.

On top of that, it also adds an alias for running Python, using the official container images and the suggested execution parameters.

How to use / Testing done

I've built the package with emerge-amd64-usr and it built and installed successfully. I also built and uploaded a GCE image and tested that oslogin works successfully on it. With this change, all of gcloud, gsutil, python and python3 execute successfully.

Fixes flatcar/Flatcar#186

This change updates to the latest oslogin version provided by Google.
Since our last update, this was split into a different repo and the
directory structure changed significantly.

It also added group support, which needed to be added to the
nsswitch.conf file that we ship.

Flatcar users require docker group permissions, so ensure oslogin gives
that permission by shipping a separate group.conf file that gets
installed when oslogin is enabled.
GCE recommends images to ship Python in them.  Instead of shipping the
binaries inside our vendor partition, install an alias that will
download the latest official container, for both python2 and python3.
@margamanterola margamanterola changed the title coreos-base/google-oslogin: Update to 20200910 Improve Flatcar behavior on GCE when using oslogin Sep 18, 2020
@margamanterola margamanterola requested a review from a team September 18, 2020 16:35
@margamanterola margamanterola merged commit 76fa4c8 into main Sep 22, 2020
@margamanterola margamanterola deleted the marga-kinvolk/gce-image branch September 22, 2020 12:41
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.

Make our GCE image pass the GCE requirements for official images

2 participants