Skip to content

Commit 3666230

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
examples: reformat yaml file to remove yamllint warnings
Signed-off-by: John Mulligan <[email protected]>
1 parent 062b737 commit 3666230

File tree

1 file changed

+153
-153
lines changed

1 file changed

+153
-153
lines changed

examples/kubernetes/samba-ctdb-sset.yml

Lines changed: 153 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ metadata:
4646
app: clustered-samba
4747
spec:
4848
ports:
49-
- port: 445
50-
name: smb
49+
- port: 445
50+
name: smb
5151
clusterIP: None
5252
selector:
5353
app: clustered-samba
@@ -73,218 +73,218 @@ spec:
7373
imagePullPolicy: Always
7474
name: init
7575
args:
76-
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
77-
- "--id=demo"
78-
- "--skip-if-file=/var/lib/ctdb/shared/nodes"
79-
- "init"
76+
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
77+
- "--id=demo"
78+
- "--skip-if-file=/var/lib/ctdb/shared/nodes"
79+
- "init"
8080
env: []
8181
securityContext:
8282
allowPrivilegeEscalation: true
8383
volumeMounts:
84-
- mountPath: "/var/lib/samba"
85-
name: samba-state-dir
86-
- mountPath: "/var/lib/ctdb/shared"
87-
name: ctdb-shared
84+
- mountPath: "/var/lib/samba"
85+
name: samba-state-dir
86+
- mountPath: "/var/lib/ctdb/shared"
87+
name: ctdb-shared
8888
- image: quay.io/samba.org/samba-server:latest
8989
imagePullPolicy: Always
9090
name: import
9191
args:
92-
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
93-
- "--id=demo"
94-
- "--skip-if-file=/var/lib/ctdb/shared/nodes"
95-
- "import"
92+
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
93+
- "--id=demo"
94+
- "--skip-if-file=/var/lib/ctdb/shared/nodes"
95+
- "import"
9696
securityContext:
9797
allowPrivilegeEscalation: true
9898
volumeMounts:
99-
- mountPath: "/var/lib/samba"
100-
name: samba-state-dir
101-
- mountPath: "/var/lib/ctdb/shared"
102-
name: ctdb-shared
99+
- mountPath: "/var/lib/samba"
100+
name: samba-state-dir
101+
- mountPath: "/var/lib/ctdb/shared"
102+
name: ctdb-shared
103103
- image: quay.io/samba.org/samba-server:latest
104104
imagePullPolicy: Always
105105
name: import-users
106106
args:
107-
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
108-
- "--id=demo"
109-
- "--skip-if-file=/var/lib/ctdb/shared/nodes"
110-
- "import-users"
107+
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
108+
- "--id=demo"
109+
- "--skip-if-file=/var/lib/ctdb/shared/nodes"
110+
- "import-users"
111111
securityContext:
112112
allowPrivilegeEscalation: true
113113
volumeMounts:
114-
- mountPath: "/var/lib/samba"
115-
name: samba-state-dir
116-
- mountPath: "/var/lib/ctdb/shared"
117-
name: ctdb-shared
114+
- mountPath: "/var/lib/samba"
115+
name: samba-state-dir
116+
- mountPath: "/var/lib/ctdb/shared"
117+
name: ctdb-shared
118118
- image: quay.io/samba.org/samba-server:latest
119119
imagePullPolicy: Always
120120
name: ctdb-migrate
121121
args:
122-
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
123-
- "--id=demo"
124-
- "--skip-if-file=/var/lib/ctdb/shared/nodes"
125-
- "ctdb-migrate"
126-
- "--dest-dir=/var/lib/ctdb/persistent"
122+
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
123+
- "--id=demo"
124+
- "--skip-if-file=/var/lib/ctdb/shared/nodes"
125+
- "ctdb-migrate"
126+
- "--dest-dir=/var/lib/ctdb/persistent"
127127
env:
128-
- name: SAMBACC_CTDB
129-
value: "ctdb-is-experimental"
128+
- name: SAMBACC_CTDB
129+
value: "ctdb-is-experimental"
130130
securityContext:
131131
allowPrivilegeEscalation: true
132132
volumeMounts:
133-
- mountPath: "/var/lib/samba"
134-
name: samba-state-dir
135-
- mountPath: "/var/lib/ctdb/persistent"
136-
name: ctdb-persistent
137-
- mountPath: "/var/lib/ctdb/shared"
138-
name: ctdb-shared
133+
- mountPath: "/var/lib/samba"
134+
name: samba-state-dir
135+
- mountPath: "/var/lib/ctdb/persistent"
136+
name: ctdb-persistent
137+
- mountPath: "/var/lib/ctdb/shared"
138+
name: ctdb-shared
139139
- image: quay.io/samba.org/samba-server:latest
140140
imagePullPolicy: Always
141141
name: ctdb-set-node
142142
args:
143-
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
144-
- "--id=demo"
145-
- "ctdb-set-node"
146-
- "--hostname=$(HOSTNAME)"
147-
- "--take-node-number-from-hostname=after-last-dash"
143+
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
144+
- "--id=demo"
145+
- "ctdb-set-node"
146+
- "--hostname=$(HOSTNAME)"
147+
- "--take-node-number-from-hostname=after-last-dash"
148148
env:
149-
- name: SAMBACC_CTDB
150-
value: "ctdb-is-experimental"
151-
- name: HOSTNAME
152-
valueFrom:
153-
fieldRef:
154-
fieldPath: metadata.name
149+
- name: SAMBACC_CTDB
150+
value: "ctdb-is-experimental"
151+
- name: HOSTNAME
152+
valueFrom:
153+
fieldRef:
154+
fieldPath: metadata.name
155155
securityContext:
156156
allowPrivilegeEscalation: true
157157
volumeMounts:
158-
- mountPath: "/var/lib/ctdb/shared"
159-
name: ctdb-shared
160-
- mountPath: "/etc/ctdb"
161-
name: ctdb-config
158+
- mountPath: "/var/lib/ctdb/shared"
159+
name: ctdb-shared
160+
- mountPath: "/etc/ctdb"
161+
name: ctdb-config
162162
- image: quay.io/samba.org/samba-server:latest
163163
imagePullPolicy: Always
164164
name: ctdb-must-have-node
165165
args:
166-
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
167-
- "--id=demo"
168-
- "ctdb-must-have-node"
169-
- "--hostname=$(HOSTNAME)"
170-
- "--take-node-number-from-hostname=after-last-dash"
166+
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
167+
- "--id=demo"
168+
- "ctdb-must-have-node"
169+
- "--hostname=$(HOSTNAME)"
170+
- "--take-node-number-from-hostname=after-last-dash"
171171
env:
172-
- name: SAMBACC_CTDB
173-
value: "ctdb-is-experimental"
174-
- name: HOSTNAME
175-
valueFrom:
176-
fieldRef:
177-
fieldPath: metadata.name
172+
- name: SAMBACC_CTDB
173+
value: "ctdb-is-experimental"
174+
- name: HOSTNAME
175+
valueFrom:
176+
fieldRef:
177+
fieldPath: metadata.name
178178
securityContext:
179179
allowPrivilegeEscalation: true
180180
volumeMounts:
181-
- mountPath: "/var/lib/ctdb/shared"
182-
name: ctdb-shared
183-
- mountPath: "/etc/ctdb"
184-
name: ctdb-config
181+
- mountPath: "/var/lib/ctdb/shared"
182+
name: ctdb-shared
183+
- mountPath: "/etc/ctdb"
184+
name: ctdb-config
185185
containers:
186186
- image: quay.io/samba.org/samba-server:latest
187187
imagePullPolicy: Always
188188
name: ctdb
189189
args:
190-
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
191-
- "--id=demo"
192-
- "--debug-delay=2"
193-
- "run"
194-
- "ctdbd"
195-
- "--setup=smb_ctdb"
196-
- "--setup=ctdb_config"
197-
- "--setup=ctdb_etc"
198-
- "--setup=ctdb_nodes"
190+
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
191+
- "--id=demo"
192+
- "--debug-delay=2"
193+
- "run"
194+
- "ctdbd"
195+
- "--setup=smb_ctdb"
196+
- "--setup=ctdb_config"
197+
- "--setup=ctdb_etc"
198+
- "--setup=ctdb_nodes"
199199
env:
200-
- name: SAMBACC_CTDB
201-
value: "ctdb-is-experimental"
200+
- name: SAMBACC_CTDB
201+
value: "ctdb-is-experimental"
202202
volumeMounts:
203-
- mountPath: "/var/lib/ctdb/shared"
204-
name: ctdb-shared
205-
- mountPath: "/var/lib/ctdb/persistent"
206-
name: ctdb-persistent
207-
- mountPath: "/var/lib/ctdb/volatile"
208-
name: ctdb-volatile
209-
- mountPath: "/etc/ctdb"
210-
name: ctdb-config
211-
- mountPath: "/var/run/ctdb"
212-
name: ctdb-sockets-dir
203+
- mountPath: "/var/lib/ctdb/shared"
204+
name: ctdb-shared
205+
- mountPath: "/var/lib/ctdb/persistent"
206+
name: ctdb-persistent
207+
- mountPath: "/var/lib/ctdb/volatile"
208+
name: ctdb-volatile
209+
- mountPath: "/etc/ctdb"
210+
name: ctdb-config
211+
- mountPath: "/var/run/ctdb"
212+
name: ctdb-sockets-dir
213213
- image: quay.io/samba.org/samba-server:latest
214214
imagePullPolicy: Always
215215
name: ctdb-manage-nodes
216216
args:
217-
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
218-
- "--id=demo"
219-
- "ctdb-manage-nodes"
220-
- "--hostname=$(HOSTNAME)"
221-
- "--take-node-number-from-hostname=after-last-dash"
217+
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
218+
- "--id=demo"
219+
- "ctdb-manage-nodes"
220+
- "--hostname=$(HOSTNAME)"
221+
- "--take-node-number-from-hostname=after-last-dash"
222222
env:
223-
- name: SAMBACC_CTDB
224-
value: "ctdb-is-experimental"
225-
- name: HOSTNAME
226-
valueFrom:
227-
fieldRef:
228-
fieldPath: metadata.name
223+
- name: SAMBACC_CTDB
224+
value: "ctdb-is-experimental"
225+
- name: HOSTNAME
226+
valueFrom:
227+
fieldRef:
228+
fieldPath: metadata.name
229229
volumeMounts:
230-
- mountPath: "/var/lib/ctdb/shared"
231-
name: ctdb-shared
232-
- mountPath: "/etc/ctdb"
233-
name: ctdb-config
234-
- mountPath: "/var/run/ctdb"
235-
name: ctdb-sockets-dir
230+
- mountPath: "/var/lib/ctdb/shared"
231+
name: ctdb-shared
232+
- mountPath: "/etc/ctdb"
233+
name: ctdb-config
234+
- mountPath: "/var/run/ctdb"
235+
name: ctdb-sockets-dir
236236
- image: quay.io/samba.org/samba-server:latest
237237
imagePullPolicy: Always
238238
name: smb
239239
args:
240-
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
241-
- "--id=demo"
242-
- "--debug-delay=12"
243-
- "run"
244-
- "smbd"
245-
- "--setup=users"
246-
- "--setup=smb_ctdb"
240+
- "--config=/usr/local/share/sambacc/examples/ctdb.json"
241+
- "--id=demo"
242+
- "--debug-delay=12"
243+
- "run"
244+
- "smbd"
245+
- "--setup=users"
246+
- "--setup=smb_ctdb"
247247
ports:
248-
- containerPort: 445
249-
protocol: TCP
250-
name: "smb"
248+
- containerPort: 445
249+
protocol: TCP
250+
name: "smb"
251251
securityContext:
252252
allowPrivilegeEscalation: true
253253
volumeMounts:
254-
- mountPath: "/share"
255-
name: samba-share-data
256-
- mountPath: "/var/lib/ctdb/shared"
257-
name: ctdb-shared
258-
- mountPath: "/var/lib/ctdb/persistent"
259-
name: ctdb-persistent
260-
- mountPath: "/var/lib/ctdb/volatile"
261-
name: ctdb-volatile
262-
- mountPath: "/etc/ctdb"
263-
name: ctdb-config
264-
- mountPath: "/var/run/ctdb"
265-
name: ctdb-sockets-dir
254+
- mountPath: "/share"
255+
name: samba-share-data
256+
- mountPath: "/var/lib/ctdb/shared"
257+
name: ctdb-shared
258+
- mountPath: "/var/lib/ctdb/persistent"
259+
name: ctdb-persistent
260+
- mountPath: "/var/lib/ctdb/volatile"
261+
name: ctdb-volatile
262+
- mountPath: "/etc/ctdb"
263+
name: ctdb-config
264+
- mountPath: "/var/run/ctdb"
265+
name: ctdb-sockets-dir
266266
volumes:
267-
# /etc/ctdb
268-
- emptyDir: {}
269-
name: ctdb-config
270-
# /var/lib/ctdb/persistent
271-
- emptyDir: {}
272-
name: ctdb-persistent
273-
# /var/lib/ctdb/volatile
274-
- emptyDir: {}
275-
name: ctdb-volatile
276-
# /var/lib/ctdb/shared
277-
- persistentVolumeClaim:
278-
claimName: ctdb-shared
279-
name: ctdb-shared
280-
# /var/run/ctdb
281-
- emptyDir:
282-
medium: Memory
283-
name: ctdb-sockets-dir
284-
# /var/lib/samba
285-
- emptyDir: {}
286-
name: samba-state-dir
287-
# /share
288-
- persistentVolumeClaim:
289-
claimName: samba-share-data
290-
name: samba-share-data
267+
# /etc/ctdb
268+
- emptyDir: {}
269+
name: ctdb-config
270+
# /var/lib/ctdb/persistent
271+
- emptyDir: {}
272+
name: ctdb-persistent
273+
# /var/lib/ctdb/volatile
274+
- emptyDir: {}
275+
name: ctdb-volatile
276+
# /var/lib/ctdb/shared
277+
- persistentVolumeClaim:
278+
claimName: ctdb-shared
279+
name: ctdb-shared
280+
# /var/run/ctdb
281+
- emptyDir:
282+
medium: Memory
283+
name: ctdb-sockets-dir
284+
# /var/lib/samba
285+
- emptyDir: {}
286+
name: samba-state-dir
287+
# /share
288+
- persistentVolumeClaim:
289+
claimName: samba-share-data
290+
name: samba-share-data

0 commit comments

Comments
 (0)