You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Name test-build
[2019-03-06T14:23:22+01:00] Uploading source code...
[2019-03-06T14:23:22+01:00] Finished uploading source code...
Error: Getting assigned building pod: pods "test-build-pod-8b35f1" not found
We've inserted a 10 seconds sleep in pkg/knctl/build/cluster_builder_source.go here:
func (s ClusterBuilderSource) Upload(ui ui.UI, cancelCh chan struct{}) error { // TODO cancel
ui.PrintLinef("[%s] Uploading source code...", time.Now().Format(time.RFC3339))
defer func() {
ui.PrintLinef("[%s] Finished uploading source code...", time.Now().Format(time.RFC3339))
}()
build, err := s.waiter.WaitForClusterBuilderPodAssignment(cancelCh)
if err != nil {
return fmt.Errorf("Waiting for build to be assigned a pod: %s", err)
}
ui.PrintLinef("waiting 10 seconds ...")
time.Sleep(10 * time.Second)
if build.Status.Cluster == nil {
return fmt.Errorf("Expected build to have cluster configuration assigned")
}
....
This fixed the issue. With the patched version there is no error and the java-buildpack started working as expected.
It seems that one of the K8s API calls is asynchronous and must be waited for before continuing. Can you check if there are other such occurrences?
The text was updated successfully, but these errors were encountered:
@jochenehret im guessing pod resource was not yet initialized in kubernetes api so was not being returned. i've added some waiting logic in d592f45 that should fix this. it's going thru ci.
When we call
we immediately get the error:
We've inserted a 10 seconds sleep in
pkg/knctl/build/cluster_builder_source.go
here:This fixed the issue. With the patched version there is no error and the java-buildpack started working as expected.
It seems that one of the K8s API calls is asynchronous and must be waited for before continuing. Can you check if there are other such occurrences?
The text was updated successfully, but these errors were encountered: