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

schema: support multiple images destinations #4038

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jbtrystram
Copy link
Contributor

In coreos/fedora-coreos-pipeline#1091 we added the possibility of publishing container images to multiples repositories.

This needs to be reflected in the schema otherwhise we only record one image (currenlty the last pushed).

Add a primary-image key that extends image by adding an additional-images array.

Use that for relevant container images objects.

See coreos/fedora-coreos-pipeline#1099

jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 11, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
in coreos/fedora-coreos-pipeline#1091 we started
publishing container images in multiples repos.
However the build.json was not reflecting that, only storing the last
pushed image data, overwriting it with each arch.

See coreos#4038
See coreos/fedora-coreos-pipeline#1099
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 14, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
in coreos/fedora-coreos-pipeline#1091 we started
publishing container images in multiples repos.
However the build.json was not reflecting that, only storing the last
pushed image data, overwriting it with each arch.

See coreos#4038
See coreos/fedora-coreos-pipeline#1099
@jbtrystram jbtrystram force-pushed the schema-multi-images branch from 037b948 to 6a620fb Compare March 14, 2025 16:50
@jbtrystram
Copy link
Contributor Author

jbtrystram commented Mar 14, 2025

Ok just tested that, pushing a couple of manifests on a testing repo :

jq '."base-oscontainer"' < builds/latest/x86_64/meta.json                                                                                
{
  "image": "quay.io/jbtrystramtestimages/testrepo1",
  "digest": "sha256:4d20a109cba763ca01d2ffa8c72b3e5f4038a619d50f54946836489499eeaf89",
  "tags": [
    "stable"
  ],
  "additional-images": [
    {
      "image": "quay.io/jbtrystramtestimages/testrepo2",
      "digest": "sha256:4d20a109cba763ca01d2ffa8c72b3e5f4038a619d50f54946836489499eeaf89",
      "tags": [
        "stable"
      ]
    },
    {
      "image": "quay.io/jbtrystramtestimages/fcos",
      "digest": "sha256:4d20a109cba763ca01d2ffa8c72b3e5f4038a619d50f54946836489499eeaf89",
      "tags": [
        "stable"
      ]
    }
  ]
}

jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 14, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
in coreos/fedora-coreos-pipeline#1091 we started
publishing container images in multiples repos.
However the build.json was not reflecting that, only storing the last
pushed image data, overwriting it with each arch.

See coreos#4038
See coreos/fedora-coreos-pipeline#1099
@jbtrystram jbtrystram force-pushed the schema-multi-images branch from 6a620fb to 69262ba Compare March 14, 2025 17:11
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 14, 2025
in coreos/fedora-coreos-pipeline#1091 we started
publishing container images in multiples repos.
However the build.json was not reflecting that, only storing the last
pushed image data, overwriting it with each arch.

See coreos#4038
See coreos/fedora-coreos-pipeline#1099
@jbtrystram jbtrystram force-pushed the schema-multi-images branch from 69262ba to 7b93e72 Compare March 14, 2025 17:34
Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

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

Needs a make schema-update. LGTM otherwise!

In coreos/fedora-coreos-pipeline#1091 we added
the possibility of publishing container images to multiples repositories.

This needs to be reflected in the schema otherwhise we only record one
image (currenlty the last pushed).

Add a `primary-image` key that extends image by adding an `additional-images`
array.

Use that for relevant container images objects.

See coreos/fedora-coreos-pipeline#1099
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 17, 2025
in coreos/fedora-coreos-pipeline#1091 we started
publishing container images in multiples repos.
However the build.json was not reflecting that, only storing the last
pushed image data, overwriting it with each arch.

See coreos#4038
See coreos/fedora-coreos-pipeline#1099
@jbtrystram jbtrystram force-pushed the schema-multi-images branch from 7b93e72 to ca4beba Compare March 17, 2025 10:21
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 17, 2025
in coreos/fedora-coreos-pipeline#1091 we started
publishing container images in multiples repos.
However the build.json was not reflecting that, only storing the last
pushed image data, overwriting it with each arch.

See coreos#4038
See coreos/fedora-coreos-pipeline#1099
@jbtrystram jbtrystram force-pushed the schema-multi-images branch from ca4beba to d99eb2f Compare March 17, 2025 10:23
@jbtrystram
Copy link
Contributor Author

Needs a make schema-update. LGTM otherwise!

i am hitting #4043

ravanelli
ravanelli previously approved these changes Mar 17, 2025
Copy link
Member

@ravanelli ravanelli left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ravanelli ravanelli left a comment

Choose a reason for hiding this comment

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

I would change the commit message:

Note that I had to force the update for entries in `go.sum` as the checksums had
changed. Fixes https://github.com/coreos/coreos-assembler/issues/4043.

@jbtrystram jbtrystram force-pushed the schema-multi-images branch from 257809d to b33dc1f Compare March 17, 2025 14:30
jbtrystram added a commit to jbtrystram/coreos-assembler that referenced this pull request Mar 17, 2025
in coreos/fedora-coreos-pipeline#1091 we started
publishing container images in multiples repos.
However the build.json was not reflecting that, only storing the last
pushed image data, overwriting it with each arch.

See coreos#4038
See coreos/fedora-coreos-pipeline#1099
@jbtrystram jbtrystram force-pushed the schema-multi-images branch 2 times, most recently from e173c7d to c61bd56 Compare March 19, 2025 15:00
in coreos/fedora-coreos-pipeline#1091 we started
publishing container images in multiples repos.
However the build.json was not reflecting that, only storing the last
pushed image data, overwriting it with each arch.

See coreos#4038
See coreos/fedora-coreos-pipeline#1099
In cc869e1 we introduced additionnal
images in the schema, update the generated go code to match.

Note that I had to force the update for some entries in `go.sum` as the
checksums had changed.
Fixes coreos#4043.
@jbtrystram jbtrystram force-pushed the schema-multi-images branch from c61bd56 to 117ba69 Compare March 20, 2025 07:57
Copy link

openshift-ci bot commented Mar 20, 2025

@jbtrystram: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/rhcos 117ba69 link true /test rhcos

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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