-
Notifications
You must be signed in to change notification settings - Fork 281
fix: pod with a restart policy of Never or OnFailure stuck at 'Progressing' (#15317) #709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
RoelofKuijpers
wants to merge
6
commits into
argoproj:master
Choose a base branch
from
RoelofKuijpers:15317
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
067e557
fix: stuck at 'Progressing' #15317
RoelofKuijpers 609be43
Update health_test.go
RoelofKuijpers 451b8e4
Update pod-running-restart-never-with-ignore-annotation.yaml so it pa…
RoelofKuijpers 8a0b3bc
add storage request
RoelofKuijpers 1d946b8
Update pkg/health/health_pod.go
RoelofKuijpers 61ddfd1
Improve code readability fix
RoelofKuijpers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
pkg/health/testdata/pod-running-restart-never-with-ignore-annotation.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
creationTimestamp: 2018-12-02T09:15:16Z | ||
name: my-pod | ||
namespace: argocd | ||
resourceVersion: "151053" | ||
selfLink: /api/v1/namespaces/argocd/pods/my-pod | ||
uid: c86e909c-f612-11e8-a057-fe5f49266390 | ||
annotations: | ||
argocd.argoproj.io/ignore-restart-policy: "true" | ||
spec: | ||
containers: | ||
- command: | ||
- sh | ||
- -c | ||
- sleep 10 | ||
image: alpine:3.21 | ||
imagePullPolicy: Always | ||
name: main | ||
resources: | ||
requests: | ||
ephemeral-storage: "100Mi" | ||
memory: "128Mi" | ||
cpu: "250m" | ||
limits: | ||
memory: "256Mi" | ||
cpu: "500m" | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount | ||
name: default-token-f9jvj | ||
readOnly: true | ||
dnsPolicy: ClusterFirst | ||
|
||
nodeName: minikube | ||
restartPolicy: Never | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
serviceAccount: default | ||
serviceAccountName: default | ||
automountServiceAccountToken: false | ||
terminationGracePeriodSeconds: 30 | ||
tolerations: | ||
- effect: NoExecute | ||
key: node.kubernetes.io/not-ready | ||
operator: Exists | ||
tolerationSeconds: 300 | ||
- effect: NoExecute | ||
key: node.kubernetes.io/unreachable | ||
operator: Exists | ||
tolerationSeconds: 300 | ||
volumes: | ||
- name: default-token-f9jvj | ||
secret: | ||
defaultMode: 420 | ||
secretName: default-token-f9jvj | ||
status: | ||
conditions: | ||
- lastProbeTime: null | ||
lastTransitionTime: 2018-12-02T09:15:16Z | ||
status: "True" | ||
type: Initialized | ||
- lastProbeTime: null | ||
lastTransitionTime: 2018-12-02T09:15:19Z | ||
status: "True" | ||
type: Ready | ||
- lastProbeTime: null | ||
lastTransitionTime: 2018-12-02T09:15:16Z | ||
status: "True" | ||
type: PodScheduled | ||
containerStatuses: | ||
- containerID: containerd://adc73c2c0ae3f1fd9bf294abd834e740042ee375de680c0cfcdd90d863a73b8b | ||
image: alpine:3.21 | ||
imageID: docker.io/library/alpine@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c | ||
lastState: {} | ||
name: main | ||
ready: true | ||
restartCount: 0 | ||
state: | ||
running: | ||
startedAt: 2018-12-02T09:15:19Z | ||
hostIP: 192.168.64.41 | ||
phase: Running | ||
podIP: 172.17.0.9 | ||
qosClass: BestEffort | ||
startTime: 2018-12-02T09:15:16Z |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.