[
https://issues.apache.org/jira/browse/YUNIKORN-1732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Craig Condit updated YUNIKORN-1732:
-----------------------------------
Description:
When building the k8shim, the script used to calculate the SHA of various
components is inconsistent and can fail the build if the SI or core are
replaced with local components.
{noformat}
./scripts/plugin-conf-gen.sh /Users/ccondit/.kube/config
"conf/scheduler-config.yaml" "conf/scheduler-config-local.yaml"
building binary for scheduler docker image
CGO_ENABLED=0 GOOS=linux GOARCH="amd64" \
go build -a -o=_output/bin/k8s_yunikorn_scheduler -ldflags \
'-extldflags "-static" -X main.version=latest -X
main.date=2023-05-11T16:04:37-0500 -X main.goVersion=1.20.2 -X main.arch=amd64
-X main.coreSHA=20230328135225 -X main.siSHA=interface v0.0.0 -X
main.shimSHA=0935a47ee430' \
-tags netgo -installsuffix netgo \
./pkg/cmd/shim/
# github.com/apache/yunikorn-k8shim/pkg/cmd/shim
usage: link [options] main.o
...
make: *** [scheduler] Error 1
command execution failed: build docker images failed
{noformat}
The problematic portion:
{noformat}
-X main.coreSHA=20230328135225 -X main.siSHA=interface v0.0.0 -X
main.shimSHA=0935a47ee430
{noformat}
was:When building the k8shim, the script used to calculate the SHA of various
components is inconsistent and can fail the build if the SI or core are
replaced with local components.
> Build fails due to brittle SHA calculation
> ------------------------------------------
>
> Key: YUNIKORN-1732
> URL: https://issues.apache.org/jira/browse/YUNIKORN-1732
> Project: Apache YuniKorn
> Issue Type: Bug
> Components: shim - kubernetes
> Reporter: Craig Condit
> Assignee: Craig Condit
> Priority: Major
>
> When building the k8shim, the script used to calculate the SHA of various
> components is inconsistent and can fail the build if the SI or core are
> replaced with local components.
> {noformat}
> ./scripts/plugin-conf-gen.sh /Users/ccondit/.kube/config
> "conf/scheduler-config.yaml" "conf/scheduler-config-local.yaml"
> building binary for scheduler docker image
> CGO_ENABLED=0 GOOS=linux GOARCH="amd64" \
> go build -a -o=_output/bin/k8s_yunikorn_scheduler -ldflags \
> '-extldflags "-static" -X main.version=latest -X
> main.date=2023-05-11T16:04:37-0500 -X main.goVersion=1.20.2 -X
> main.arch=amd64 -X main.coreSHA=20230328135225 -X main.siSHA=interface v0.0.0
> -X main.shimSHA=0935a47ee430' \
> -tags netgo -installsuffix netgo \
> ./pkg/cmd/shim/
> # github.com/apache/yunikorn-k8shim/pkg/cmd/shim
> usage: link [options] main.o
> ...
> make: *** [scheduler] Error 1
> command execution failed: build docker images failed
> {noformat}
> The problematic portion:
> {noformat}
> -X main.coreSHA=20230328135225 -X main.siSHA=interface v0.0.0 -X
> main.shimSHA=0935a47ee430
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]