Skip to content

Commit

Permalink
docs: specify code format (#113)
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
lunarwhite authored Jul 4, 2023
1 parent 7004fb0 commit f869389
Show file tree
Hide file tree
Showing 36 changed files with 64 additions and 64 deletions.
4 changes: 2 additions & 2 deletions docs/user-manuals/imagepulljob.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ spec:
# - xxx
completionPolicy:
type: Always # [optional] defaults to Always
activeDeadlineSeconds: 1200 # [optional] no default, only work for Alway type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Alway type
activeDeadlineSeconds: 1200 # [optional] no default, only work for Always type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Always type
pullPolicy: # [optional] defaults to backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
2 changes: 1 addition & 1 deletion docs/user-manuals/persistentpodstate.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ status:
configserver-0:
nodeName: worker2
nodeTopologyLabels:
kubernetes.io/hostname: worker2
kubernetes.io/hostname: worker2
configserver-1:
nodeName: worker1
nodeTopologyLabels:
Expand Down
4 changes: 2 additions & 2 deletions docs/user-manuals/sidecarset.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ spec:
```
The Sidecar container in the pod has been updated to centos:7, and the pod and other containers have not been restarted.
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s
$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7
$ kubectl describe pods test-pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ spec:
# - xxx
completionPolicy:
type: Always # [optional] 默认为 Always
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Alway 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Alway 类型生效
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Always 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Always 类型生效
pullPolicy: # [optional] 默认 backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ status:
configserver-0:
nodeName: worker2
nodeTopologyLabels:
kubernetes.io/hostname: worker2
kubernetes.io/hostname: worker2
configserver-1:
nodeName: worker1
nodeTopologyLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ spec:
```
此时,发现pod中的sidecar容器已经被更新为了centos:7,并且pod以及其它的容器没有重启。
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s

$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7

$ kubectl describe pods test-pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ spec:
# pod-label: xxx
completionPolicy:
type: Always # [optional] 默认为 Always
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Alway 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Alway 类型生效
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Always 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Always 类型生效
pullPolicy: # [optional] 默认 backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ spec:
```
此时,发现pod中的sidecar容器已经被更新为了centos:7,并且pod以及其它的容器没有重启。
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s

$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7

$ kubectl describe pods test-pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ spec:
# pod-label: xxx
completionPolicy:
type: Always # [optional] 默认为 Always
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Alway 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Alway 类型生效
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Always 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Always 类型生效
pullPolicy: # [optional] 默认 backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ spec:
```
此时,发现pod中的sidecar容器已经被更新为了centos:7,并且pod以及其它的容器没有重启。
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s

$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7

$ kubectl describe pods test-pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ spec:
# - xxx
completionPolicy:
type: Always # [optional] 默认为 Always
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Alway 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Alway 类型生效
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Always 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Always 类型生效
pullPolicy: # [optional] 默认 backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ spec:
```
此时,发现pod中的sidecar容器已经被更新为了centos:7,并且pod以及其它的容器没有重启。
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s

$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7

$ kubectl describe pods test-pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ spec:
# - xxx
completionPolicy:
type: Always # [optional] 默认为 Always
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Alway 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Alway 类型生效
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Always 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Always 类型生效
pullPolicy: # [optional] 默认 backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ status:
configserver-0:
nodeName: worker2
nodeTopologyLabels:
kubernetes.io/hostname: worker2
kubernetes.io/hostname: worker2
configserver-1:
nodeName: worker1
nodeTopologyLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ spec:
```
此时,发现pod中的sidecar容器已经被更新为了centos:7,并且pod以及其它的容器没有重启。
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s

$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7

$ kubectl describe pods test-pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ spec:
# - xxx
completionPolicy:
type: Always # [optional] 默认为 Always
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Alway 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Alway 类型生效
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Always 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Always 类型生效
pullPolicy: # [optional] 默认 backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ status:
configserver-0:
nodeName: worker2
nodeTopologyLabels:
kubernetes.io/hostname: worker2
kubernetes.io/hostname: worker2
configserver-1:
nodeName: worker1
nodeTopologyLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ spec:
```
此时,发现pod中的sidecar容器已经被更新为了centos:7,并且pod以及其它的容器没有重启。
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s

$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7

$ kubectl describe pods test-pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ spec:
# - xxx
completionPolicy:
type: Always # [optional] 默认为 Always
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Alway 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Alway 类型生效
activeDeadlineSeconds: 1200 # [optional] 无默认值, 只对 Always 类型生效
ttlSecondsAfterFinished: 300 # [optional] 无默认值, 只对 Always 类型生效
pullPolicy: # [optional] 默认 backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ status:
configserver-0:
nodeName: worker2
nodeTopologyLabels:
kubernetes.io/hostname: worker2
kubernetes.io/hostname: worker2
configserver-1:
nodeName: worker1
nodeTopologyLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ spec:
```
此时,发现pod中的sidecar容器已经被更新为了centos:7,并且pod以及其它的容器没有重启。
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s

$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7

$ kubectl describe pods test-pod
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v0.10/user-manuals/imagepulljob.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ spec:
# pod-label: xxx
completionPolicy:
type: Always # [optional] defaults to Always
activeDeadlineSeconds: 1200 # [optional] no default, only work for Alway type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Alway type
activeDeadlineSeconds: 1200 # [optional] no default, only work for Always type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Always type
pullPolicy: # [optional] defaults to backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v0.10/user-manuals/sidecarset.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ spec:
```
The Sidecar container in the pod has been updated to centos:7, and the pod and other containers have not been restarted.
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s
$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7
$ kubectl describe pods test-pod
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v1.0/user-manuals/imagepulljob.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ spec:
# pod-label: xxx
completionPolicy:
type: Always # [optional] defaults to Always
activeDeadlineSeconds: 1200 # [optional] no default, only work for Alway type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Alway type
activeDeadlineSeconds: 1200 # [optional] no default, only work for Always type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Always type
pullPolicy: # [optional] defaults to backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v1.0/user-manuals/sidecarset.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ spec:
```
The Sidecar container in the pod has been updated to centos:7, and the pod and other containers have not been restarted.
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s
$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7
$ kubectl describe pods test-pod
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v1.1/user-manuals/imagepulljob.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ spec:
# - xxx
completionPolicy:
type: Always # [optional] defaults to Always
activeDeadlineSeconds: 1200 # [optional] no default, only work for Alway type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Alway type
activeDeadlineSeconds: 1200 # [optional] no default, only work for Always type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Always type
pullPolicy: # [optional] defaults to backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v1.1/user-manuals/sidecarset.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ spec:
```
The Sidecar container in the pod has been updated to centos:7, and the pod and other containers have not been restarted.
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s
$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7
$ kubectl describe pods test-pod
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v1.2/user-manuals/imagepulljob.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ spec:
# - xxx
completionPolicy:
type: Always # [optional] defaults to Always
activeDeadlineSeconds: 1200 # [optional] no default, only work for Alway type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Alway type
activeDeadlineSeconds: 1200 # [optional] no default, only work for Always type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Always type
pullPolicy: # [optional] defaults to backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ status:
configserver-0:
nodeName: worker2
nodeTopologyLabels:
kubernetes.io/hostname: worker2
kubernetes.io/hostname: worker2
configserver-1:
nodeName: worker1
nodeTopologyLabels:
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v1.2/user-manuals/sidecarset.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ spec:
```
The Sidecar container in the pod has been updated to centos:7, and the pod and other containers have not been restarted.
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s
$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7
$ kubectl describe pods test-pod
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v1.3/user-manuals/imagepulljob.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ spec:
# - xxx
completionPolicy:
type: Always # [optional] defaults to Always
activeDeadlineSeconds: 1200 # [optional] no default, only work for Alway type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Alway type
activeDeadlineSeconds: 1200 # [optional] no default, only work for Always type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Always type
pullPolicy: # [optional] defaults to backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ status:
configserver-0:
nodeName: worker2
nodeTopologyLabels:
kubernetes.io/hostname: worker2
kubernetes.io/hostname: worker2
configserver-1:
nodeName: worker1
nodeTopologyLabels:
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v1.3/user-manuals/sidecarset.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ spec:
```
The Sidecar container in the pod has been updated to centos:7, and the pod and other containers have not been restarted.
```bash
$ kubectl get pods |grep test-pod
$ kubectl get pods | grep test-pod
test-pod 2/2 Running 1 7m34s
$ kubectl get pods test-pod -o yaml |grep 'image: centos'
$ kubectl get pods test-pod -o yaml | grep 'image: centos'
image: centos:7
$ kubectl describe pods test-pod
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v1.4/user-manuals/imagepulljob.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ spec:
# - xxx
completionPolicy:
type: Always # [optional] defaults to Always
activeDeadlineSeconds: 1200 # [optional] no default, only work for Alway type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Alway type
activeDeadlineSeconds: 1200 # [optional] no default, only work for Always type
ttlSecondsAfterFinished: 300 # [optional] no default, only work for Always type
pullPolicy: # [optional] defaults to backoffLimit=3, timeoutSeconds=600
backoffLimit: 3
timeoutSeconds: 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ status:
configserver-0:
nodeName: worker2
nodeTopologyLabels:
kubernetes.io/hostname: worker2
kubernetes.io/hostname: worker2
configserver-1:
nodeName: worker1
nodeTopologyLabels:
Expand Down
Loading

0 comments on commit f869389

Please sign in to comment.