generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
kustomize/stage/pod/general/testdata/pod-pending.input.yaml
This file contains 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,15 @@ | ||
# @Stage: ../pod-create.yaml | ||
# @Stage: ../pod-init-container-running.yaml | ||
# @Stage: ../pod-init-container-completed.yaml | ||
# @Stage: ../pod-ready.yaml | ||
# @Stage: ../pod-complete.yaml | ||
# @Stage: ../pod-remove-finalizer.yaml | ||
# @Stage: ../pod-delete.yaml | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: example-pod | ||
spec: | ||
containers: | ||
- name: container | ||
image: image |
50 changes: 50 additions & 0 deletions
50
kustomize/stage/pod/general/testdata/pod-pending.output.yaml
This file contains 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,50 @@ | ||
apiGroup: v1 | ||
kind: Pod | ||
name: example-pod | ||
stages: | ||
- delay: | ||
max: 5s | ||
min: 1s | ||
next: | ||
- data: | ||
- op: add | ||
path: /metadata/finalizers | ||
value: | ||
- kwok.x-k8s.io/fake | ||
kind: patch | ||
type: application/json-patch+json | ||
- data: | ||
status: | ||
conditions: | ||
- lastProbeTime: null | ||
lastTransitionTime: <Now> | ||
status: "True" | ||
type: Initialized | ||
- lastProbeTime: null | ||
lastTransitionTime: <Now> | ||
message: 'containers with unready status: [ container ]' | ||
reason: ContainersNotReady | ||
status: "False" | ||
type: Ready | ||
- lastProbeTime: null | ||
lastTransitionTime: <Now> | ||
message: 'containers with unready status: [ container ]' | ||
reason: ContainersNotReady | ||
status: "False" | ||
type: ContainersReady | ||
containerStatuses: | ||
- image: image | ||
name: container | ||
ready: false | ||
restartCount: 0 | ||
started: false | ||
state: | ||
waiting: | ||
reason: ContainerCreating | ||
hostIP: <NodeIPWith(<nil>)> | ||
phase: Pending | ||
podIP: <PodIPWith(<nil>, false, "", "example-pod", "")> | ||
kind: patch | ||
subresource: status | ||
type: application/merge-patch+json | ||
stage: pod-create |