@@ -65,36 +65,36 @@ func NewCmdSchedule() *cobra.Command {
65
65
if err != nil {
66
66
_ , err := kubeClient .ExtensionsV1beta1 ().Deployments (opt .Namespace ).Get (opt .AppName , metav1.GetOptions {})
67
67
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 )
69
69
}
70
70
}
71
71
case "ReplicaSets" , "ReplicaSet" , "replicasets" , "replicaset" , "rs" :
72
72
opt .AppKind = "ReplicaSet"
73
73
opt .SmartPrefix = ""
74
74
_ , err := kubeClient .ExtensionsV1beta1 ().ReplicaSets (opt .Namespace ).Get (opt .AppName , metav1.GetOptions {})
75
75
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 )
77
77
}
78
78
case "ReplicationControllers" , "ReplicationController" , "replicationcontrollers" , "replicationcontroller" , "rc" :
79
79
opt .AppKind = "ReplicationController"
80
80
opt .SmartPrefix = ""
81
81
_ , err := kubeClient .CoreV1 ().ReplicationControllers (opt .Namespace ).Get (opt .AppName , metav1.GetOptions {})
82
82
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 )
84
84
}
85
85
case "StatefulSets" , "StatefulSet" :
86
86
opt .AppKind = "StatefulSet"
87
87
opt .SmartPrefix = opt .PodName
88
88
_ , err := kubeClient .AppsV1beta1 ().StatefulSets (opt .Namespace ).Get (opt .AppName , metav1.GetOptions {})
89
89
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 )
91
91
}
92
92
case "DaemonSets" , "DaemonSet" , "daemonsets" , "daemonset" :
93
93
opt .AppKind = "DaemonSet"
94
94
opt .SmartPrefix = opt .NodeName
95
95
_ , err := kubeClient .ExtensionsV1beta1 ().DaemonSets (opt .Namespace ).Get (opt .AppName , metav1.GetOptions {})
96
96
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 )
98
98
}
99
99
default :
100
100
log .Fatalf (`Unrecognized workload "Kind" %v` , opt .AppKind )
0 commit comments