Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Add support to kfctl to allow deployment on PPC64LE aka IBM Power architecture #290

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

benswinney
Copy link

@benswinney benswinney commented Mar 23, 2020

I'm continuing a project that added support to Kubeflow that allowed deployment on ppc64le.

Rather than keep seperate repositories, I feel it would be best suited to be included within the Kubeflow repository. This allows for one central place to pull Kubeflow regardless of the underlying compute architecture.


This change is Reviewable

@k8s-ci-robot
Copy link
Contributor

Hi @benswinney. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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/test-infra repository.

@animeshsingh
Copy link
Contributor

/ok-to-test

@animeshsingh
Copy link
Contributor

/lgtm

/assign @Tomcli

Makefile Outdated
@@ -126,14 +126,16 @@ build-kfctl: deepcopy generate fmt vet
#GOOS=windows GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/windows/kfctl.exe cmd/kfctl/main.go
GOOS=darwin GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=${TAG}" -o bin/darwin/kfctl cmd/kfctl/main.go
GOOS=linux GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/linux/kfctl cmd/kfctl/main.go
cp bin/$(ARCH)/kfctl bin/kfctl
GOOS=linux GOARCH=ppc64le ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/ppc64le/kfctl cmd/kfctl/main.go
#cp bin/$(ARCH)/kfctl bin/kfctl
Copy link
Member

Choose a reason for hiding this comment

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

Why are we commenting out this line? If it's no longer necessary, we should delete it.

Copy link
Member

Choose a reason for hiding this comment

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

@benswinney please address above comment from @Tomcli . That command is supposed to copy the platform specific kfctl executable to the default kfctl/bin directory. Any reason you are removing/commenting out that line?

Copy link
Author

@benswinney benswinney Mar 25, 2020

Choose a reason for hiding this comment

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

The architecture for kfctl on Darwin and amd64 linux is the same (x86_64). It was possible to use the same kfctl for both.

ppc64le is not the same architecture as Darwin and amd64, so you could not use the same kfctl file. We need to build separate images for ppc64le.

If the line is left in, then the final kfctl within bin/kfctl would be ppc64le and that would fail on x86_64 machines.

Hopefully this helps explain the need to remove that line.

Copy link
Author

Choose a reason for hiding this comment

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

I have updated the code again and pushed a new commit to remove the unneeded code :)

@k8s-ci-robot k8s-ci-robot removed the lgtm label Mar 25, 2020
@Tomcli
Copy link
Member

Tomcli commented Mar 25, 2020

/lgtm

@jlewi
Copy link
Contributor

jlewi commented Apr 9, 2020

It appears tests are broken on master and will need to be fixed before this PR can be submitted.

@animeshsingh
Copy link
Contributor

/retest

@animeshsingh
Copy link
Contributor

/retest
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: animeshsingh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Contributor

@benswinney: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
kubeflow-kfctl-presubmit 3dd65cb link /test kubeflow-kfctl-presubmit

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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/test-infra repository. I understand the commands that are listed here.

@PatrickXYS
Copy link
Member

@benswinney

Can you rebase and run test?

@PatrickXYS
Copy link
Member

/test ?

@aws-kf-ci-bot
Copy link

@PatrickXYS: The following commands are available to trigger jobs:

  • /test kubeflow-kfctl-presubmit-e2e

Use /test all to run all jobs.

In response to this:

/test ?

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/test-infra repository.

@k8s-ci-robot
Copy link
Contributor

@PatrickXYS: No presubmit jobs available for kubeflow/kfctl@master

In response to this:

/test ?

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/test-infra repository.

@PatrickXYS
Copy link
Member

/retest

@aws-kf-ci-bot
Copy link

@benswinney: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
kubeflow-kfctl-presubmit 3dd65cb link /test kubeflow-kfctl-presubmit

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/test-infra repository. I understand the commands that are listed here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants