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

fix(pkg/arch): Do not ignore images without OS #10

Merged
merged 1 commit into from
May 15, 2023
Merged

Conversation

joaoqalves
Copy link
Contributor

Background

Noe goes through all the images available and skips the ones that do not match the host Operating System, so we don't end up running a container with a different OS than the host.

Problem

In some cases, the images come with the architecture key but not the OS in the manifest file. This causes the Noe to skip the image, and to throw an error:

Error from server (could not find a common image architecture across all containers): admission webhook "noe.noe.svc" denied the request: could not find a common image architecture across all containers

Problem reproduction

To reproduce the problem, you run the following command:

kubectl run curl-wlapi --image=radial/busyboxplus:curl -i --tty --rm

This returns a message:

Error from server (could not find a common image architecture across all containers): admission webhook "noe.noe.svc" denied the request: could not find a common image architecture across all containers

Goal

To only compare the Manifest image and host OS when the image has the the field. If the field is not present, then we should not compare them.

Change-Id: Iacbb8082cd9c03088c9974876db9df5ee9975422

Background
=====

Noe goes through all the images available and skips the ones that do
not match the host Operating System, so we don't end up running a
container with a different OS than the host.

Problem
=====

In some cases, the images come with the `architecture` key but not the
`OS` in the manifest file. This causes the `Noe` to skip the image,
and to throw an error:

```
Error from server (could not find a common image architecture across all containers): admission webhook "noe.noe.svc" denied the request: could not find a common image architecture across all containers
```

Problem reproduction
=====

To reproduce the problem, you run the following command:

```
kubectl run curl-wlapi --image=radial/busyboxplus:curl -i --tty --rm
```

This returns a message:

```
Error from server (could not find a common image architecture across all containers): admission webhook "noe.noe.svc" denied the request: could not find a common image architecture across all containers
```

Goal
=====

To only compare the Manifest image and host OS when the image has the
the field. If the field is not present, then we should not compare them.

Change-Id: Iacbb8082cd9c03088c9974876db9df5ee9975422
@joaoqalves joaoqalves merged commit 437b25b into main May 15, 2023
2 checks passed
@joaoqalves joaoqalves deleted the fix-no-os branch May 18, 2023 09:32
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.

None yet

4 participants