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

cmd/list: Recognize UBI images #776

Merged
merged 1 commit into from
May 31, 2021

Conversation

HarryMichal
Copy link
Member

@HarryMichal HarryMichal commented May 26, 2021

Requires #774

Fixes #753

@HarryMichal HarryMichal added 6. Minor Change Should not cause breakage 3. Bugfix Fixes a bug 2. Host Realm The issue is related to what happens on the host machine where Toolbox is executed labels May 26, 2021
@softwarefactory-project-zuul
Copy link

Build failed.

@softwarefactory-project-zuul
Copy link

Build failed.

@HarryMichal HarryMichal force-pushed the list/ubi-images branch 2 times, most recently from 12254d1 to f736f79 Compare May 31, 2021 22:54
@softwarefactory-project-zuul
Copy link

Build failed.

UBI[0] does not have the recommend Toolbox labels used to track whether
an image/container is truly a toolbox image/container. Thankfully, they
have a number of labels to choose from that we can use to identify the
image. The "com.redhat.component=ubi8-container" seems to be ideal.

The approach of using the UBI8 label introduces one problem though. If
we were to use only one set of labels for both images and containers,
containers created with Podman and not Toolbox from UBI8 would also be
marked as toolbox containers. This is not desired and therefore there
are now two sets of labels. Ones for images where the new label has been
added and other for containers that stays the same.
@HarryMichal HarryMichal marked this pull request as ready for review May 31, 2021 23:49
@softwarefactory-project-zuul
Copy link

Build succeeded.

@HarryMichal HarryMichal merged commit e09de9f into containers:main May 31, 2021
@HarryMichal HarryMichal deleted the list/ubi-images branch May 31, 2021 23:49
HarryMichal added a commit to HarryMichal/toolbox that referenced this pull request Jun 1, 2021
@HarryMichal HarryMichal mentioned this pull request Jun 1, 2021
HarryMichal added a commit that referenced this pull request Jun 1, 2021
Fallout from #776

#782
Copy link
Member

@debarshiray debarshiray left a comment

Choose a reason for hiding this comment

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

Let's hold this back for a bit.

I understand that not listing the corresponding image for UBI Toolbox containers is a rough edge. However, the whole UBI feature is a bit experimental. The concept of Toolbox, even if it's only a Fedora container on a Fedora host, itself is quite new. With UBI we are talking about a free RHEL environment created just like that on any Linux distribution.

So it's ok, if we take a release or two to hammer out the details. Especially since we are very likely going to get a Toolbox-specific image that's created out of the UBI RPM repositories.

There's also the issue that we really want to get 0.1.0 done, and we really need to keep the churn down for that. Changing the labels can very likely lead to backwards compatibility issues in the future, where we get stuck with a non-ideal label for a while. We managed to get rid of some our past labels, so let's not add more to the list.

In short, this bug will likely fix itself in the coming months. So let's not get ourselves into a corner trying to rush through a fix.

// toolboxContainerLabels holds labels used by container that mark them as compatible with Toolbox
toolboxContainerLabels = map[string]string{
"com.github.debarshiray.toolbox": "true",
"com.github.containrs.toolbox": "true",
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: typo alert! containrs.

@debarshiray
Copy link
Member

Let's hold this back for a bit.

See #792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. Host Realm The issue is related to what happens on the host machine where Toolbox is executed 3. Bugfix Fixes a bug 6. Minor Change Should not cause breakage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UBI images not listed as toolbox images
2 participants