File tree Expand file tree Collapse file tree 12 files changed +113
-20
lines changed Expand file tree Collapse file tree 12 files changed +113
-20
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ vas :
3
+ uni07eta-adoption :
4
+ stages :
5
+ - path : examples/dt/un07eta/control-plane/networking/nncp
6
+ wait_conditions :
7
+ - >-
8
+ oc -n openstack wait nncp
9
+ -l osp/nncm-config-type=standard
10
+ --for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured
11
+ --timeout=5m
12
+ values :
13
+ - name : network-values
14
+ src_file : values.yaml
15
+ build_output : nncp.yaml
16
+
17
+ - path : examples/dt/un07eta/control-plane/networking
18
+ wait_conditions :
19
+ - >-
20
+ oc -n metallb-system wait pod
21
+ -l app=metallb -l component=speaker
22
+ --for condition=Ready
23
+ --timeout=5m
24
+ values :
25
+ - name : network-values
26
+ src_file : nncp/values.yaml
27
+ build_output : networking.yaml
Original file line number Diff line number Diff line change 2
2
vas :
3
3
uni07eta :
4
4
stages :
5
- - path : examples/dt/uni07eta/control-plane/nncp
5
+ - path : examples/dt/uni07eta/control-plane/networking/ nncp
6
6
wait_conditions :
7
7
- >-
8
8
oc -n openstack wait nncp
14
14
src_file : values.yaml
15
15
build_output : nncp.yaml
16
16
17
+ - path : examples/dt/uni07eta/control-plane/networking
18
+ wait_conditions :
19
+ - >-
20
+ oc -n metallb-system wait pod
21
+ -l app=metallb -l component=speaker
22
+ --for condition=Ready
23
+ --timeout=5m
24
+ values :
25
+ - name : network-values
26
+ src_file : nncp/values.yaml
27
+ build_output : network.yaml
28
+
17
29
- path : examples/dt/uni07eta/control-plane
18
30
wait_conditions :
19
31
- >-
23
35
--timeout=60m
24
36
values :
25
37
- name : network-values
26
- src_file : nncp/values.yaml
38
+ src_file : networking/ nncp/values.yaml
27
39
- name : service-values
28
40
src_file : service-values.yaml
29
41
build_output : control-plane.yaml
Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ transformers:
24
24
create: true
25
25
26
26
components :
27
- - ../../lib/networking/metallb
28
- - ../../lib/networking/netconfig
29
- - ../../lib/networking/nad
30
27
- ../../lib/control-plane
31
28
32
29
resources :
@@ -344,13 +341,14 @@ replacements:
344
341
options :
345
342
create : true
346
343
347
- - source :
348
- kind : ConfigMap
349
- name : network-values
350
- fieldPath : data.octavia.net-attach-def
351
- targets :
352
- - select :
353
- kind : NetworkAttachmentDefinition
354
- name : octavia
355
- fieldPaths :
356
- - spec.config
344
+ # # TODO: check this again
345
+ # - source:
346
+ # kind: ConfigMap
347
+ # name: network-values
348
+ # fieldPath: data.octavia.net-attach-def
349
+ # targets:
350
+ # - select:
351
+ # kind: NetworkAttachmentDefinition
352
+ # name: octavia
353
+ # fieldPaths:
354
+ # - spec.config
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : kustomize.config.k8s.io/v1alpha1
3
+ kind : Component
4
+
5
+ transformers :
6
+ - |-
7
+ apiVersion: builtin
8
+ kind: NamespaceTransformer
9
+ metadata:
10
+ name: _ignored_
11
+ namespace: openstack
12
+ setRoleBindingSubjects: none
13
+ unsetOnly: true
14
+ fieldSpecs:
15
+ - path: metadata/name
16
+ kind: Namespace
17
+ create: true
18
+
19
+ components :
20
+ - ../../../lib/networking/metallb
21
+ - ../../../lib/networking/netconfig
22
+ - ../../../lib/networking/nad
Original file line number Diff line number Diff line change @@ -185,3 +185,14 @@ replacements:
185
185
name : master-2
186
186
fieldPaths :
187
187
- spec.desiredState.interfaces.[name=octavia].vlan.id
188
+
189
+ - source :
190
+ kind : ConfigMap
191
+ name : network-values
192
+ fieldPath : data.octavia.net-attach-def
193
+ targets :
194
+ - select :
195
+ kind : NetworkAttachmentDefinition
196
+ name : octavia
197
+ fieldPaths :
198
+ - spec.config
Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ cd architecture/examples/dt/uni07eta
28
28
```
29
29
30
30
Edit [ control-plane/service-values.yaml] ( control-plane/service-values.yaml ) and
31
- [ control-plane/nncp/values.yaml] ( control-plane/nncp/values.yaml ) .
31
+ [ control-plane/networking/ nncp/values.yaml] ( control-plane/networking /nncp/values.yaml ) .
32
32
33
33
Apply node network configuration
34
34
35
35
``` bash
36
- pushd control-plane/nncp
36
+ pushd control-plane/networking/ nncp
37
37
kustomize build > nncp.yaml
38
38
oc apply -f nncp.yaml
39
39
oc wait nncp \
@@ -43,6 +43,18 @@ oc wait nncp \
43
43
popd
44
44
```
45
45
46
+ ## Apply remaining networking configuration
47
+
48
+ Generate the reminaing networking configuration
49
+ ```
50
+ kustomize build control-plane/networking > networking.yaml
51
+ ```
52
+ Apply the networking CRs
53
+ ```
54
+ oc apply -f networking.yaml
55
+ ```
56
+
57
+
46
58
Generate the control-plane and networking CRs.
47
59
48
60
``` bash
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ components:
6
6
- ../../../../dt/uni07eta
7
7
8
8
resources :
9
- - nncp/values.yaml
9
+ - networking/ nncp/values.yaml
10
10
- service-values.yaml
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : kustomize.config.k8s.io/v1beta1
3
+ kind : Kustomization
4
+
5
+ components :
6
+ - ../../../../../dt/uni07eta/networking
7
+
8
+ resources :
9
+ - nncp/values.yaml
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
3
3
kind : Kustomization
4
4
5
5
components :
6
- - ../../../../../dt/uni07eta/nncp
6
+ - ../../../../../../ dt/uni07eta/nncp
7
7
8
8
resources :
9
9
- values.yaml
File renamed without changes.
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ components:
6
6
- ../../../dt/uni07eta/edpm
7
7
8
8
resources :
9
+ - control-plane/networking/nncp/values.yaml
9
10
- values.yaml
Original file line number Diff line number Diff line change 312
312
- dt/uni07eta
313
313
- examples/dt/uni07eta
314
314
- examples/dt/uni07eta/control-plane
315
- - examples/dt/uni07eta/control-plane/nncp
315
+ - examples/dt/uni07eta/control-plane/networking
316
+ - examples/dt/uni07eta/control-plane/networking/nncp
316
317
- examples/dt/uni07eta/edpm
317
318
- examples/dt/uni07eta/networker
318
319
- examples/dt/uni07eta/networker/nodeset
You can’t perform that action at this time.
0 commit comments