Skip to content

Commit b55311c

Browse files
authored
Merge pull request #34352 from jboxman/make-it-right-make-it-good
Fix invalid YAML
2 parents f6ecb1a + cee44b5 commit b55311c

18 files changed

+110
-113
lines changed

modules/admission-webhook-types.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ webhooks:
2727
service:
2828
namespace: default <5>
2929
name: kubernetes <6>
30-
path: <webhook_url> <7>
30+
path: <webhook_url> <7>
3131
caBundle: <ca_signing_certificate> <8>
3232
rules: <9>
3333
- operations: <10>
@@ -81,7 +81,7 @@ webhooks:
8181
service:
8282
namespace: default <5>
8383
name: kubernetes <6>
84-
path: <webhook_url> <7>
84+
path: <webhook_url> <7>
8585
caBundle: <ca_signing_certificate> <8>
8686
rules: <9>
8787
- operations: <10>

modules/authentication-configmap-creating-from-directories.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ metadata:
119119
creationTimestamp: 2016-02-18T18:34:05Z
120120
name: game-config
121121
namespace: default
122-
resourceVersion: "407"-
122+
resourceVersion: "407"
123123
selflink: /api/v1/namespaces/default/configmaps/game-config
124124
uid: 30944725-d66e-11e5-8cd0-68f728db1985
125125
----

modules/builds-gitconfig-file.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ oc create secret generic <secret_name> --from-file=<path/to/.gitconfig>
2121
SSL verification can be turned off if `sslVerify=false` is set for the `http`
2222
section in your `.gitconfig` file:
2323
24-
[source,yaml]
24+
[source,text]
2525
----
2626
[http]
2727
sslVerify=false

modules/deployments-exec-cmd-in-container.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ You can add a command to a container, which modifies the container's start-up be
1515
----
1616
spec:
1717
containers:
18-
-
19-
name: <container_name>
18+
- name: <container_name>
2019
image: 'image'
2120
command:
2221
- '<command>'
@@ -32,8 +31,7 @@ For example, to execute the `java` command with the `-jar` and `/opt/app-root/sp
3231
----
3332
spec:
3433
containers:
35-
-
36-
name: example-spring-boot
34+
- name: example-spring-boot
3735
image: 'image'
3836
command:
3937
- java

modules/gitops-release-notes-1-1.adoc

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -78,46 +78,47 @@ This is a breaking change and needs the following steps to be performed manually
7878
.Example argocd config map YAML
7979
[source,yaml]
8080
----
81-
kind: ConfigMap
82-
apiVersion: v1
83-
metadata:
84-
selfLink: /api/v1/namespaces/openshift-gitops/configmaps/argocd-cm
85-
resourceVersion: '112532'
86-
name: argocd-cm
87-
uid: f5226fbc-883d-47db-8b53-b5e363f007af
88-
creationTimestamp: '2021-04-16T19:24:08Z'
89-
managedFields:
90-
...
91-
namespace: openshift-gitops
92-
labels:
93-
app.kubernetes.io/managed-by: argocd-cluster
94-
app.kubernetes.io/name: argocd-cm
95-
app.kubernetes.io/part-of: argocd
96-
data: "" <1>
97-
admin.enabled: 'true'
98-
statusbadge.enabled: 'false'
99-
resource.exclusions: |
100-
- apiGroups:
101-
- tekton.dev
102-
clusters:
103-
- '*'
104-
kinds:
105-
- TaskRun
106-
- PipelineRun
107-
ga.trackingid: ''
108-
repositories: |
109-
- type: git
110-
url: https://github.com/user-name/argocd-example-apps
111-
ga.anonymizeusers: 'false'
112-
help.chatUrl: ''
113-
url: >- https://argocd-cluster-server-openshift-gitops.apps.dev-svc-4.7-041614.devcluster.openshift.com "" <2>
114-
help.chatText: ''
115-
kustomize.buildOptions: ''
116-
resource.inclusions: ''
117-
repository.credentials: ''
118-
users.anonymous.enabled: 'false'
119-
configManagementPlugins: ''
120-
application.instanceLabelKey: ''
81+
kind: ConfigMap
82+
apiVersion: v1
83+
metadata:
84+
selfLink: /api/v1/namespaces/openshift-gitops/configmaps/argocd-cm
85+
resourceVersion: '112532'
86+
name: argocd-cm
87+
uid: f5226fbc-883d-47db-8b53-b5e363f007af
88+
creationTimestamp: '2021-04-16T19:24:08Z'
89+
managedFields:
90+
...
91+
namespace: openshift-gitops
92+
labels:
93+
app.kubernetes.io/managed-by: argocd-cluster
94+
app.kubernetes.io/name: argocd-cm
95+
app.kubernetes.io/part-of: argocd
96+
data: "" <1>
97+
admin.enabled: 'true'
98+
statusbadge.enabled: 'false'
99+
resource.exclusions: |
100+
- apiGroups:
101+
- tekton.dev
102+
clusters:
103+
- '*'
104+
kinds:
105+
- TaskRun
106+
- PipelineRun
107+
ga.trackingid: ''
108+
repositories: |
109+
- type: git
110+
url: https://github.com/user-name/argocd-example-apps
111+
ga.anonymizeusers: 'false'
112+
help.chatUrl: ''
113+
url: >-
114+
https://argocd-cluster-server-openshift-gitops.apps.dev-svc-4.7-041614.devcluster.openshift.com "" <2>
115+
help.chatText: ''
116+
kustomize.buildOptions: ''
117+
resource.inclusions: ''
118+
repository.credentials: ''
119+
users.anonymous.enabled: 'false'
120+
configManagementPlugins: ''
121+
application.instanceLabelKey: ''
121122
----
122123
<1> Restore only the `data` section of the content in the `argocd-cm.yml` config map file manually.
123124
<2> Replace the URL value in the config map entry with the new instance name `openshift-gitops`.
@@ -128,6 +129,7 @@ This is a breaking change and needs the following steps to be performed manually
128129
+
129130
[source,yaml]
130131
----
131-
url: >- https://openshift-gitops-server-openshift-gitops.apps.dev-svc-4.7-041614.devcluster.openshift.com
132+
url: >-
133+
https://openshift-gitops-server-openshift-gitops.apps.dev-svc-4.7-041614.devcluster.openshift.com
132134
----
133135
. Login to the Argo CD cluster and verify that the previous configurations are present.

modules/metering-troubleshooting.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -158,21 +158,21 @@ $ oc edit meteringconfig/operator-metering
158158
.Example `MeteringConfig` resource
159159
[source,yaml]
160160
----
161-
kind: MeteringConfig
162-
metadata:
161+
kind: MeteringConfig
162+
metadata:
163163
name: operator-metering
164-
namespace: openshift-metering
164+
namespace: openshift-metering
165+
spec:
166+
reporting-operator:
165167
spec:
166-
reporting-operator:
167-
spec:
168-
resources: <1>
169-
limits:
170-
cpu: 1
171-
memory: 750Mi
172-
requests:
173-
cpu: 500m
174-
memory: 500Mi
175-
...
168+
resources: <1>
169+
limits:
170+
cpu: 1
171+
memory: 750Mi
172+
requests:
173+
cpu: 500m
174+
memory: 500Mi
175+
...
176176
----
177177
<1> Add or increase memory limits within the `resources` field of the `MeteringConfig` resource.
178178
+

modules/nodes-scheduler-taints-tolerations-about.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
....
3434
template:
3535
....
36-
spec
36+
spec:
3737
tolerations:
3838
- key: "key1"
3939
operator: "Equal"
@@ -145,7 +145,7 @@ spec:
145145
....
146146
template:
147147
....
148-
spec
148+
spec:
149149
tolerations:
150150
- key: "key1"
151151
operator: "Equal"
@@ -201,7 +201,7 @@ spec:
201201
....
202202
template:
203203
....
204-
spec
204+
spec:
205205
tolerations:
206206
- key: "key1"
207207
operator: "Equal"
@@ -258,7 +258,7 @@ spec:
258258
....
259259
template:
260260
....
261-
spec
261+
spec:
262262
tolerations:
263263
- key: node.kubernetes.io/not-ready
264264
operator: Exists
@@ -294,7 +294,7 @@ spec:
294294
....
295295
template:
296296
....
297-
spec
297+
spec:
298298
tolerations:
299299
- operator: "Exists"
300300
----

modules/nw-endpoint-route53.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ platform:
2424
region: us-gov-west-1
2525
serviceEndpoints:
2626
- name: ec2
27-
url: https://ec2.us-gov-west-1.amazonaws.com
27+
url: https://ec2.us-gov-west-1.amazonaws.com
2828
- name: elasticloadbalancing
29-
url: https://elasticloadbalancing.us-gov-west-1.amazonaws.com
29+
url: https://elasticloadbalancing.us-gov-west-1.amazonaws.com
3030
- name: route53
31-
url: https://route53.us-gov.amazonaws.com <1>
31+
url: https://route53.us-gov.amazonaws.com <1>
3232
- name: tagging
33-
url: https://tagging.us-gov-west-1.amazonaws.com <2>
33+
url: https://tagging.us-gov-west-1.amazonaws.com <2>
3434
----
3535
<1> Route 53 defaults to `https://route53.us-gov.amazonaws.com` for both AWS GovCloud (US) regions.
3636
<2> Only the US-West region has endpoints for tagging. Omit this parameter if your cluster is in another region.

modules/op-about-workspace.adoc

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,27 @@ spec:
4343
...
4444
tasks: <2>
4545
- name: build-image
46-
taskRef:
47-
name: buildah
48-
kind: ClusterTask
49-
params:
50-
- name: TLSVERIFY
51-
value: "false"
52-
- name: IMAGE
53-
value: $(params.IMAGE)
54-
workspaces: <3>
55-
- name: source <4>
56-
workspace: shared-workspace <5>
57-
runAfter:
58-
- fetch-repository
59-
- name: apply-manifests
60-
taskRef:
61-
name: apply-manifests
62-
workspaces: <6>
63-
- name: source
64-
workspace: shared-workspace
65-
runAfter:
66-
- build-image
46+
taskRef:
47+
name: buildah
48+
kind: ClusterTask
49+
params:
50+
- name: TLSVERIFY
51+
value: "false"
52+
- name: IMAGE
53+
value: $(params.IMAGE)
54+
workspaces: <3>
55+
- name: source <4>
56+
workspace: shared-workspace <5>
57+
runAfter:
58+
- fetch-repository
59+
- name: apply-manifests
60+
taskRef:
61+
name: apply-manifests
62+
workspaces: <6>
63+
- name: source
64+
workspace: shared-workspace
65+
runAfter:
66+
- build-image
6767
...
6868
----
6969
<1> List of Workspaces shared between the Tasks defined in the Pipeline. A Pipeline can define as many Workspaces as required. In this example, only one Workspace named `shared-workspace` is declared.

modules/osdk-ansible-extra-variables.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ kind: "Database"
1818
metadata:
1919
name: "example"
2020
spec:
21-
message:"Hello world 2"
21+
message: "Hello world 2"
2222
newParameter: "newParam"
2323
----
2424

0 commit comments

Comments
 (0)