Skip to content

Conditional krew index PR and multiarch binary server#85

Merged
kaovilai merged 14 commits into
migtools:oadp-devfrom
Joeavaikath:cleanup
Oct 29, 2025
Merged

Conditional krew index PR and multiarch binary server#85
kaovilai merged 14 commits into
migtools:oadp-devfrom
Joeavaikath:cleanup

Conversation

@Joeavaikath
Copy link
Copy Markdown
Contributor

@Joeavaikath Joeavaikath commented Oct 28, 2025

Why the changes were made

  • krew bot creates PRs only when semver is non prerelease
  • oadp-cli-binaries is now multiarch to work on non-amd clusters

How to test the changes made

Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you make this run on pull request but not push if pull request?

Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
with:
image: quay.io/konveyor/oadp-cli-binaries
tags: ${{ github.ref_type == 'tag' && format('latest {0}', github.ref_name) || 'test' }}
archs: amd64,arm64,ppc64le,s390x
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

building for ppc and s390 will be wasted effort here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@weshayutin This container IIUC will be running on the ppc and s390 cluster to serve the CLI.
each container, ppc or s390x will be serving amd64, arm64 binaries for download.

Copy link
Copy Markdown
Member

@kaovilai kaovilai Oct 28, 2025

Choose a reason for hiding this comment

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

Without s390x or ppc image of quay.io/konveyor/oadp-cli-binaries, the cluster won't be able to serve these binaries to end users.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

CMD ["/usr/local/bin/download-server"]

Copy link
Copy Markdown
Member

@kaovilai kaovilai Oct 28, 2025

Choose a reason for hiding this comment

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

@weshayutin comment if applicable would apply to

PLATFORMS = linux/amd64 linux/arm64 linux/ppc64le linux/s390x darwin/amd64 darwin/arm64 windows/amd64 windows/arm64

Not this download server container.

Copy link
Copy Markdown
Contributor

@weshayutin weshayutin Oct 28, 2025

Choose a reason for hiding this comment

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

unless p & z QE are going to install from oadp-dev, which they will not.. IMHO it's a waste. It will be built downstream on p & z

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just so that any oadp-operator installs on those archs don't hang/fail on the binary server pod start

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's ok GitHub action is free 😁

buildah manifest create oadp-cli-binaries

buildah build \
--platform=linux/amd64,linux/arm64,linux/ppc64le,linux/s390x \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unless we won't be running this server on ppc or s390x, I would revert this change.

CMD ["/usr/local/bin/download-server"]

cc: @weshayutin

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed them, focusing on amd64 and arm64 for now

Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
@Joeavaikath
Copy link
Copy Markdown
Contributor Author

Okay this should be good
sweet Golang cross build

Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
@Joeavaikath
Copy link
Copy Markdown
Contributor Author

Tested on local branch, looks good

@kaovilai kaovilai merged commit b36cac9 into migtools:oadp-dev Oct 29, 2025
15 checks passed
@Joeavaikath Joeavaikath deleted the cleanup branch February 19, 2026 15:10
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