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

chore: Fix package name #27

Merged
merged 1 commit into from
Apr 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test_util/v1/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package test_util
package v1

import (
"time"
)

const (
TestImageName = "test-image-for-kubeflow-common:latest"
TestJobName = "test-job"
TestJobName = "test-job"
LabelWorker = "worker"

SleepInterval = 500 * time.Millisecond
Expand Down
4 changes: 2 additions & 2 deletions test_util/v1/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package test_util
package v1

import (
"fmt"
"testing"

"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/cache"

Expand Down
4 changes: 2 additions & 2 deletions test_util/v1/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package test_util
package v1

import (
"fmt"
"testing"

"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/cache"

Expand Down
4 changes: 2 additions & 2 deletions test_util/v1/test_job_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package test_util
package v1

import (
"time"

"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

common "github.com/kubeflow/common/operator/v1"
Expand Down
10 changes: 5 additions & 5 deletions test_util/v1/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package test_util
package v1

import (
"strings"
"testing"

common "github.com/kubeflow/common/operator/v1"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/cache"

testjobv1 "github.com/kubeflow/common/test_job/v1"
)

const (
LabelGroupName = "group-name"
LabelGroupName = "group-name"
LabelTestJobName = "test-job-name"
)

var (
// KeyFunc is the short name to DeletionHandlingMetaNamespaceKeyFunc.
// IndexerInformer uses a delta queue, therefore for deletes we have to use this
// key function but it should be just fine for non delete events.
KeyFunc = cache.DeletionHandlingMetaNamespaceKeyFunc
KeyFunc = cache.DeletionHandlingMetaNamespaceKeyFunc
TestGroupName = testjobv1.GroupName
)

func GenLabels(jobName string) map[string]string {
return map[string]string{
LabelGroupName: TestGroupName,
LabelGroupName: TestGroupName,
LabelTestJobName: strings.Replace(jobName, "/", "-", -1),
}
}
Expand Down