You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One decision to revisit was to see if really wanted to change the pod
phase. It was clearly agreed here that we won't:
kubernetes#1913 (comment)
This commit just removes the section to discuss that (it is already
agreed) and updates the KEP to reflect that.
Signed-off-by: Rodrigo Campos <[email protected]>
Copy file name to clipboardexpand all lines: keps/sig-node/0753-sidecarcontainers.md
+1-47
Original file line number
Diff line number
Diff line change
@@ -391,9 +391,7 @@ This will be useful in scenarios such as when your sidecar is a proxy so that it
391
391
392
392
To solve the problem of Jobs that don't complete: When RestartPolicy!=Always if all normal containers have reached a terminal state (Succeeded for restartPolicy=OnFailure, or Succeeded/Failed for restartPolicy=Never), then all sidecar containers will be sent a SIGTERM.
393
393
394
-
PodPhase will be modified to not include Sidecars in its calculations, this is so that if a sidecar exits in failure it does not mark the pod as `Failed`. It also avoids the scenario in which a Pod has RestartPolicy `OnFailure`, if the containers all successfully complete, when the sidecar gets sent the shut down signal if it exits with a non-zero code the Pod phase would be calculated as `Running` despite all containers having exited permanently.
395
-
396
-
Sidecars are just normal containers in almost all respects, they have all the same attributes, they are included in pod state, obey pod restart policy etc. The only differences are lifecycle related.
394
+
Sidecars are just normal containers in almost all respects, they have all the same attributes, they are included in pod state, obey pod restart policy, don't change pod phase in any way etc. The only differences are in the shutdown and startup of the pod.
397
395
398
396
### Implementation Details/Notes/Constraints
399
397
@@ -1040,50 +1038,6 @@ respectively.
1040
1038
1041
1039
Rodrigo will reach out to users to verify, though.
1042
1040
1043
-
#### Revisit if we want to modify the podPhase
1044
-
1045
-
The current proposal modifies the `podPhase`. The reasoning is this (c&p from
1046
-
the proposal):
1047
-
1048
-
> PodPhase will be modified to not include Sidecars in its calculations, this is so that if a sidecar exits in failure it does not mark the pod as `Failed`. It also avoids the scenario in which a Pod has RestartPolicy `OnFailure`, if the containers all successfully complete, when the sidecar gets sent the shut down signal if it exits with a non-zero code the Pod phase would be calculated as `Running` despite all containers having exited permanently.
1049
-
1050
-
As noted by @zhan849 in [this review comment][pod-phase-review-comment], those
1051
-
changes to the pod phase is a behavioural change regarding [current
1052
-
documentation about the pod phase][pod-phase-doc].
0 commit comments