Skip to content

Conversation

@kabhiibm
Copy link

@kabhiibm kabhiibm commented Oct 3, 2025

This PR introduces ppc64le support for the test-tools image, a crucial step toward building and running KEDA on the ppc64le architecture.

Key Changes:

  • Updated tools/Dockerfile to support ppc64le builds.
  • Modified the Makefile to enable ppc64le architecture compatibility.

With these enhancements, the test-tools image can be successfully built and utilized for KEDA development on ppc64le.

Signed-off-by: kabhiibm <kumar.abhishek2@ibm.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables support for the ppc64le architecture in KEDA's test-tools image to expand platform compatibility for development and testing.

  • Adds ppc64le architecture handling to the Dockerfile for Go, kubectl, and protobuf installations
  • Updates the Makefile to include ppc64le in the supported build platforms
  • Implements architecture-specific installation logic to handle different binary naming conventions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tools/Dockerfile Adds ppc64le architecture support with case statements for Go, kubectl, GitHub CLI, and protobuf installations
Makefile Includes linux/ppc64le in the BUILD_PLATFORMS variable for multi-platform builds

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

"amd64") PROTOC_ARCH="x86_64" ;; \
"arm64") PROTOC_ARCH="aarch_64" ;; \
"s390x") PROTOC_ARCH="s390_64" ;; \
"ppc64el" | "ppc64le") PROTOC_ARCH="ppcle_64" ;; \
Copy link

Copilot AI Oct 7, 2025

Choose a reason for hiding this comment

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

The protobuf architecture name 'ppcle_64' appears to be incorrect. Based on the protobuf releases, the correct architecture name should be 'ppc_64' for ppc64le.

Suggested change
"ppc64el" | "ppc64le") PROTOC_ARCH="ppcle_64" ;; \
"ppc64el" | "ppc64le") PROTOC_ARCH="ppc_64" ;; \

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

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

Please double check this, it could be a halucination

curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$(dpkg --print-architecture)/kubectl.sha256" && \
RUN ARCH=$(dpkg --print-architecture) && \
case "$ARCH" in \
"ppc64le" | "ppc64el") \
Copy link
Member

Choose a reason for hiding this comment

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

why do we have have both *le and *el?

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.

2 participants