Skip to content

Commit 2719cbd

Browse files
authored
Fix e2e tests (#183)
1 parent 9c1cc43 commit 2719cbd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

schedule.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,36 +65,36 @@ func NewCmdSchedule() *cobra.Command {
6565
if err != nil {
6666
_, err := kubeClient.ExtensionsV1beta1().Deployments(opt.Namespace).Get(opt.AppName, metav1.GetOptions{})
6767
if err != nil {
68-
log.Fatalf(`Unknown Deployment %s@%s`, opt.AppName, opt.Namespace)
68+
log.Fatalf(`Unknown Deployment %s/%s`, opt.Namespace, opt.AppName)
6969
}
7070
}
7171
case "ReplicaSets", "ReplicaSet", "replicasets", "replicaset", "rs":
7272
opt.AppKind = "ReplicaSet"
7373
opt.SmartPrefix = ""
7474
_, err := kubeClient.ExtensionsV1beta1().ReplicaSets(opt.Namespace).Get(opt.AppName, metav1.GetOptions{})
7575
if err != nil {
76-
log.Fatalf(`Unknown ReplicaSet %s@%s`, opt.AppName, opt.Namespace)
76+
log.Fatalf(`Unknown ReplicaSet %s/%s`, opt.Namespace, opt.AppName)
7777
}
7878
case "ReplicationControllers", "ReplicationController", "replicationcontrollers", "replicationcontroller", "rc":
7979
opt.AppKind = "ReplicationController"
8080
opt.SmartPrefix = ""
8181
_, err := kubeClient.CoreV1().ReplicationControllers(opt.Namespace).Get(opt.AppName, metav1.GetOptions{})
8282
if err != nil {
83-
log.Fatalf(`Unknown ReplicationController %s@%s`, opt.AppName, opt.Namespace)
83+
log.Fatalf(`Unknown ReplicationController %s/%s`, opt.Namespace, opt.AppName)
8484
}
8585
case "StatefulSets", "StatefulSet":
8686
opt.AppKind = "StatefulSet"
8787
opt.SmartPrefix = opt.PodName
8888
_, err := kubeClient.AppsV1beta1().StatefulSets(opt.Namespace).Get(opt.AppName, metav1.GetOptions{})
8989
if err != nil {
90-
log.Fatalf(`Unknown StatefulSet %s@%s`, opt.AppName, opt.Namespace)
90+
log.Fatalf(`Unknown StatefulSet %s/%s`, opt.Namespace, opt.AppName)
9191
}
9292
case "DaemonSets", "DaemonSet", "daemonsets", "daemonset":
9393
opt.AppKind = "DaemonSet"
9494
opt.SmartPrefix = opt.NodeName
9595
_, err := kubeClient.ExtensionsV1beta1().DaemonSets(opt.Namespace).Get(opt.AppName, metav1.GetOptions{})
9696
if err != nil {
97-
log.Fatalf(`Unknown DaemonSet %s@%s`, opt.AppName, opt.Namespace)
97+
log.Fatalf(`Unknown DaemonSet %s/%s`, opt.Namespace, opt.AppName)
9898
}
9999
default:
100100
log.Fatalf(`Unrecognized workload "Kind" %v`, opt.AppKind)

0 commit comments

Comments
 (0)