Change duplicate message key in logs while updating ephemeral runner status (#3380)
This commit is contained in:
		
							parent
							
								
									9968141086
								
							
						
					
					
						commit
						b6a95ae879
					
				|  | @ -685,7 +685,7 @@ func (r *EphemeralRunnerReconciler) updateRunStatusFromPod(ctx context.Context, | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	log.Info("Updating ephemeral runner status with pod phase", "phase", pod.Status.Phase, "reason", pod.Status.Reason, "message", pod.Status.Message) | 	log.Info("Updating ephemeral runner status with pod phase", "statusPhase", pod.Status.Phase, "statusReason", pod.Status.Reason, "statusMessage", pod.Status.Message) | ||||||
| 	err := patchSubResource(ctx, r.Status(), ephemeralRunner, func(obj *v1alpha1.EphemeralRunner) { | 	err := patchSubResource(ctx, r.Status(), ephemeralRunner, func(obj *v1alpha1.EphemeralRunner) { | ||||||
| 		obj.Status.Phase = pod.Status.Phase | 		obj.Status.Phase = pod.Status.Phase | ||||||
| 		obj.Status.Ready = obj.Status.Ready || (pod.Status.Phase == corev1.PodRunning) | 		obj.Status.Ready = obj.Status.Ready || (pod.Status.Phase == corev1.PodRunning) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue