@@ -74,7 +74,7 @@ func (cc *Controller) addJob(obj interface{}) {
74
74
75
75
// TODO(k82cn): if failed to add job, the cache should be refresh
76
76
if err := cc .cache .Add (job ); err != nil {
77
- glog .Errorf ("Failed to add job <%s/%s>: %v" ,
77
+ glog .Errorf ("Failed to add job <%s/%s>: %v in cache " ,
78
78
job .Namespace , job .Name , err )
79
79
}
80
80
cc .queue .Add (req )
@@ -95,7 +95,7 @@ func (cc *Controller) updateJob(oldObj, newObj interface{}) {
95
95
}
96
96
97
97
if err := cc .cache .Update (newJob ); err != nil {
98
- glog .Errorf ("Failed to update job <%s/%s>: %v" ,
98
+ glog .Errorf ("Failed to update job <%s/%s>: %v in cache " ,
99
99
newJob .Namespace , newJob .Name , err )
100
100
}
101
101
@@ -110,7 +110,7 @@ func (cc *Controller) deleteJob(obj interface{}) {
110
110
}
111
111
112
112
if err := cc .cache .Delete (job ); err != nil {
113
- glog .Errorf ("Failed to delete job <%s/%s>: %v" ,
113
+ glog .Errorf ("Failed to delete job <%s/%s>: %v in cache " ,
114
114
job .Namespace , job .Name , err )
115
115
}
116
116
}
@@ -124,7 +124,7 @@ func (cc *Controller) addPod(obj interface{}) {
124
124
125
125
jobName , found := pod .Annotations [vkbatchv1 .JobNameKey ]
126
126
if ! found {
127
- glog .Errorf ("Failed to find jobName of Pod <%s/%s>" ,
127
+ glog .Infof ("Failed to find jobName of Pod <%s/%s>, skipping " ,
128
128
pod .Namespace , pod .Name )
129
129
return
130
130
}
@@ -137,7 +137,7 @@ func (cc *Controller) addPod(obj interface{}) {
137
137
}
138
138
139
139
if err := cc .cache .AddPod (pod ); err != nil {
140
- glog .Errorf ("Failed to add Pod <%s/%s>: %v" ,
140
+ glog .Errorf ("Failed to add Pod <%s/%s>: %v to cache " ,
141
141
pod .Namespace , pod .Name , err )
142
142
}
143
143
cc .queue .Add (req )
@@ -158,14 +158,14 @@ func (cc *Controller) updatePod(oldObj, newObj interface{}) {
158
158
159
159
taskName , found := newPod .Annotations [vkbatchv1 .TaskSpecKey ]
160
160
if ! found {
161
- glog .Errorf ("Failed to find taskName of Pod <%s/%s>" ,
161
+ glog .Infof ("Failed to find taskName of Pod <%s/%s>, skipping " ,
162
162
newPod .Namespace , newPod .Name )
163
163
return
164
164
}
165
165
166
166
jobName , found := newPod .Annotations [vkbatchv1 .JobNameKey ]
167
167
if ! found {
168
- glog .Errorf ("Failed to find jobName of Pod <%s/%s>" ,
168
+ glog .Infof ("Failed to find jobName of Pod <%s/%s>, skipping " ,
169
169
newPod .Namespace , newPod .Name )
170
170
return
171
171
}
@@ -185,7 +185,7 @@ func (cc *Controller) updatePod(oldObj, newObj interface{}) {
185
185
}
186
186
187
187
if err := cc .cache .UpdatePod (newPod ); err != nil {
188
- glog .Errorf ("Failed to update Pod <%s/%s>: %v" ,
188
+ glog .Errorf ("Failed to update Pod <%s/%s>: %v in cache " ,
189
189
newPod .Namespace , newPod .Name , err )
190
190
}
191
191
@@ -211,14 +211,14 @@ func (cc *Controller) deletePod(obj interface{}) {
211
211
212
212
taskName , found := pod .Annotations [vkbatchv1 .TaskSpecKey ]
213
213
if ! found {
214
- glog .Errorf ("Failed to find taskName of Pod <%s/%s>" ,
214
+ glog .Infof ("Failed to find taskName of Pod <%s/%s>, skipping " ,
215
215
pod .Namespace , pod .Name )
216
216
return
217
217
}
218
218
219
219
jobName , found := pod .Annotations [vkbatchv1 .JobNameKey ]
220
220
if ! found {
221
- glog .Errorf ("Failed to find jobName of Pod <%s/%s>" ,
221
+ glog .Infof ("Failed to find jobName of Pod <%s/%s>, skipping " ,
222
222
pod .Namespace , pod .Name )
223
223
return
224
224
}
@@ -232,7 +232,7 @@ func (cc *Controller) deletePod(obj interface{}) {
232
232
}
233
233
234
234
if err := cc .cache .DeletePod (pod ); err != nil {
235
- glog .Errorf ("Failed to update Pod <%s/%s>: %v" ,
235
+ glog .Errorf ("Failed to update Pod <%s/%s>: %v in cache " ,
236
236
pod .Namespace , pod .Name , err )
237
237
}
238
238
0 commit comments