-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat: Add cli support for additional linux based architectures, s390x + ppc64le #8991
Conversation
Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
6c5e330
to
725fa53
Compare
Codecov Report
@@ Coverage Diff @@
## master #8991 +/- ##
==========================================
- Coverage 46.06% 46.04% -0.02%
==========================================
Files 217 217
Lines 25912 25912
==========================================
- Hits 11936 11931 -5
- Misses 12319 12323 +4
- Partials 1657 1658 +1
Continue to review full report at Codecov.
|
Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, lgtm!
Minor nitpick: Can you update your PR Title - something similar to this like |
@krishvoor fixed |
Hi @rishabh625 - can you review it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Hmm, CI does not actually build that steps it seems. make BIN_NAME=argocd-aix-ppc64 GOOS=aix GOARCH=ppc64 argocd-all
find /Users/et2448/projects/ext/github.com/argo-cd -name debug.test | xargs rm -f
CGO_ENABLED=0 GOOS=aix GOARCH=ppc64 go build -v -ldflags '-X github.com/argoproj/argo-cd/v2/common.version=2.4.0 -X github.com/argoproj/argo-cd/v2/common.buildDate=2022-04-05T20:47:18Z -X github.com/argoproj/argo-cd/v2/common.gitCommit=f8c4d217615efee278b9e32f1f5dd5e0d3b3d9ee -X github.com/argoproj/argo-cd/v2/common.gitTreeState=clean -X github.com/argoproj/argo-cd/v2/common.kubectlVersion=v0.23.1 -extldflags "-static"' -o /Users/et2448/projects/ext/github.com/argo-cd/dist/argocd-aix-ppc64 ./cmd
package github.com/argoproj/argo-cd/v2/cmd
imports github.com/argoproj/argo-cd/v2/cmd/argocd-application-controller/commands
imports github.com/argoproj/pkg/stats: build constraints exclude all Go files in /Users/et2448/go/pkg/mod/github.com/argoproj/pkg@v0.11.1-0.20211203175135-36c59d8fafe0/stats
make: *** [argocd-all] Error 1 locally I guess not all packages can be cross-compiled |
Right, CI might need QEMU Emulation to get it working.. |
I guess it would be good to build all architectures in CI, so one does not get a surprise at release-time. |
I also get the same error running this locally in Linux with QEMU. This would definitely cause a release to fail. @davidkarlsen Would you consider removing |
Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
@34fathombelow fixed |
@davidkarlsen lgtm! If you don't mind changing the title of the PR to reflect only the architectures added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. @alexmt any objections?
… + ppc64le (#8991) feat: Add cli support for additional linux based architectures, s390x + ppc64le (#8991) Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com> * add more architectures for linux Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com> * drop aix arch as it won't compile Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com> Co-authored-by: Michael Crenshaw <michael@crenshaw.dev> Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
While AIX isn't a very popular platform these days, it would be valuable for some legacy platforms to be able to integrate with argo-cd via the CLI in order to die in a nice way :)
Signed-off-by: David J. M. Karlsen david@davidkarlsen.com
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: