Skip to content

Commit

Permalink
feat: Patch to fix running condition (#895)
Browse files Browse the repository at this point in the history
* feat: Patch to fix running condition

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* chore: Add job dir

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* fix: Remove CI for suggestion

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* fix: Remove tag

Signed-off-by: Ce Gao <gaoce@caicloud.io>
  • Loading branch information
gaocegege authored and k8s-ci-robot committed Oct 25, 2019
1 parent 7443f02 commit 818b879
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 15 deletions.
8 changes: 3 additions & 5 deletions pkg/job/v1alpha3/job/job.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package job

import (
"fmt"

commonv1 "github.com/kubeflow/tf-operator/pkg/apis/common/v1"
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -30,9 +28,9 @@ func (j Job) GetDeployedJobStatus(
log.Error(unerr, "NestedFieldCopy unstructured to status error")
return nil, unerr
}
err := fmt.Errorf("value is missing")
log.Error(err, "NestedFieldCopy unstructured to status error")
return nil, err
log.Info("NestedFieldCopy unstructured to status error",
"err", "Status is not found in job")
return &jobCondition, nil
}

statusMap := status.(map[string]interface{})
Expand Down
8 changes: 3 additions & 5 deletions pkg/job/v1alpha3/kubeflow/kubeflow.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package kubeflow

import (
"fmt"

pytorchv1 "github.com/kubeflow/pytorch-operator/pkg/apis/pytorch/v1"
commonv1 "github.com/kubeflow/tf-operator/pkg/apis/common/v1"
tfv1 "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1"
Expand Down Expand Up @@ -36,9 +34,9 @@ func (k Kubeflow) GetDeployedJobStatus(
log.Error(unerr, "NestedFieldCopy unstructured to status error")
return nil, unerr
}
err := fmt.Errorf("value is missing")
log.Error(err, "NestedFieldCopy unstructured to status error")
return nil, err
log.Info("NestedFieldCopy unstructured to status error",
"err", "Status is not found in job")
return &jobCondition, nil
}

statusMap := status.(map[string]interface{})
Expand Down
2 changes: 2 additions & 0 deletions prow_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ workflows:
- pkg/earlystopping/v1alpha3/*
- pkg/manager/v1alpha3/*
- pkg/manager/modelstore/*
- pkg/job/v1alpha3/*
- pkg/suggestion/v1alpha3/*
- pkg/ui/v1alpha3/*
- pkg/webhook/v1alpha3/*
Expand Down Expand Up @@ -147,6 +148,7 @@ workflows:
- pkg/earlystopping/v1alpha3/*
- pkg/manager/v1alpha3/*
- pkg/manager/modelstore/*
- pkg/job/v1alpha3/*
- pkg/suggestion/v1alpha3/*
- pkg/ui/v1alpha3/*
- pkg/webhook/v1alpha3/*
Expand Down
2 changes: 2 additions & 0 deletions test/scripts/v1alpha3/build-suggestion-chocolate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ set -o errexit
set -o nounset
set -o pipefail

exit 0

export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH}
REGISTRY="${GCP_REGISTRY}"
PROJECT="${GCP_PROJECT}"
Expand Down
2 changes: 2 additions & 0 deletions test/scripts/v1alpha3/build-suggestion-hyperband.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ set -o errexit
set -o nounset
set -o pipefail

exit 0

export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH}
REGISTRY="${GCP_REGISTRY}"
PROJECT="${GCP_PROJECT}"
Expand Down
2 changes: 2 additions & 0 deletions test/scripts/v1alpha3/build-suggestion-hyperopt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ set -o errexit
set -o nounset
set -o pipefail

exit 0

export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH}
REGISTRY="${GCP_REGISTRY}"
PROJECT="${GCP_PROJECT}"
Expand Down
2 changes: 2 additions & 0 deletions test/scripts/v1alpha3/build-suggestion-nasrl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ set -o errexit
set -o nounset
set -o pipefail

exit 0

export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH}
REGISTRY="${GCP_REGISTRY}"
PROJECT="${GCP_PROJECT}"
Expand Down
2 changes: 2 additions & 0 deletions test/scripts/v1alpha3/build-suggestion-skopt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ set -o errexit
set -o nounset
set -o pipefail

exit 0

export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH}
REGISTRY="${GCP_REGISTRY}"
PROJECT="${GCP_PROJECT}"
Expand Down
10 changes: 5 additions & 5 deletions test/scripts/v1alpha3/check-katib-ready.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ sed -i -e "s@image: gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/katib-manag
sed -i -e "s@image: gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/katib-ui@image: ${REGISTRY}\/${REPO_NAME}\/v1alpha3\/katib-ui:${VERSION}@" manifests/v1alpha3/ui/deployment.yaml

# Suggestion algorithms
sed -i -e "s@gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/suggestion-nasrl@${REGISTRY}\/${REPO_NAME}\/v1alpha3\/suggestion-nasrl:${VERSION}@" manifests/v1alpha3/katib-controller/katib-config.yaml
sed -i -e "s@gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/suggestion-hyperband@${REGISTRY}\/${REPO_NAME}\/v1alpha3\/suggestion-hyperband:${VERSION}@" manifests/v1alpha3/katib-controller/katib-config.yaml
sed -i -e "s@gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/suggestion-chocolate@${REGISTRY}\/${REPO_NAME}\/v1alpha3\/suggestion-chocolate:${VERSION}@" manifests/v1alpha3/katib-controller/katib-config.yaml
sed -i -e "s@gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/suggestion-hyperopt@${REGISTRY}\/${REPO_NAME}\/v1alpha3\/suggestion-hyperopt:${VERSION}@" manifests/v1alpha3/katib-controller/katib-config.yaml
sed -i -e "s@gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/suggestion-skopt@${REGISTRY}\/${REPO_NAME}\/v1alpha3\/suggestion-skopt:${VERSION}@" manifests/v1alpha3/katib-controller/katib-config.yaml
sed -i -e "s@gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/suggestion-nasrl@${REGISTRY}\/${REPO_NAME}\/v1alpha3\/suggestion-nasrl@" manifests/v1alpha3/katib-controller/katib-config.yaml
sed -i -e "s@gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/suggestion-hyperband@${REGISTRY}\/${REPO_NAME}\/v1alpha3\/suggestion-hyperband@" manifests/v1alpha3/katib-controller/katib-config.yaml
sed -i -e "s@gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/suggestion-chocolate@${REGISTRY}\/${REPO_NAME}\/v1alpha3\/suggestion-chocolate@" manifests/v1alpha3/katib-controller/katib-config.yaml
sed -i -e "s@gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/suggestion-hyperopt@${REGISTRY}\/${REPO_NAME}\/v1alpha3\/suggestion-hyperopt@" manifests/v1alpha3/katib-controller/katib-config.yaml
sed -i -e "s@gcr.io\/kubeflow-images-public\/katib\/v1alpha3\/suggestion-skopt@${REGISTRY}\/${REPO_NAME}\/v1alpha3\/suggestion-skopt@" manifests/v1alpha3/katib-controller/katib-config.yaml

cat manifests/v1alpha3/katib-controller/katib-config.yaml

Expand Down

0 comments on commit 818b879

Please sign in to comment.