File tree Expand file tree Collapse file tree 12 files changed +138
-57
lines changed Expand file tree Collapse file tree 12 files changed +138
-57
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ vas :
3
+ uni04delta-adoption :
4
+ stages :
5
+ - path : examples/dt/uni04delta/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/uni04delta/control-plane/networking
18
+ wait_condition :
19
+ - >-
20
+ oc -n metallb-system wait pod
21
+ -l app=metallb -l component=speaker
22
+ --for condition=Ready
23
+ --timeout=5min
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 14
14
src_file : values.yaml
15
15
build_output : nncp.yaml
16
16
17
+ - path : examples/dt/uni04delta/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/uni04delta/control-plane
18
30
wait_conditions :
19
31
- >-
22
34
--timeout=60m
23
35
values :
24
36
- name : network-values
25
- src_file : nncp/values.yaml
37
+ src_file : networking/ nncp/values.yaml
26
38
- name : service-values.yaml
27
39
src_file : service-values.yaml
28
40
build_output : control-plane.yaml
Original file line number Diff line number Diff line change @@ -17,57 +17,9 @@ transformers:
17
17
create: true
18
18
19
19
components :
20
- - ../../lib/networking/metallb
21
- - ../../lib/networking/netconfig
22
- - ../../lib/networking/nad
23
20
- ../../lib/control-plane
24
21
25
- patches :
26
- - target :
27
- version : v1beta1
28
- kind : NetConfig
29
- name : netconfig
30
- patch : |-
31
- - op: add
32
- path: /spec/networks/-
33
- value:
34
- dnsDomain: _replaced_
35
- name: storagemgmt
36
- subnets:
37
- - _replaced_
38
- mtu: 1500
39
-
40
22
replacements :
41
- - source :
42
- kind : ConfigMap
43
- name : network-values
44
- fieldPath : data.storagemgmt.dnsDomain
45
- targets :
46
- - select :
47
- kind : NetConfig
48
- fieldPaths :
49
- - spec.networks.[name=storagemgmt].dnsDomain
50
-
51
- - source :
52
- kind : ConfigMap
53
- name : network-values
54
- fieldPath : data.storagemgmt.mtu
55
- targets :
56
- - select :
57
- kind : NetConfig
58
- fieldPaths :
59
- - spec.networks.[name=storagemgmt].mtu
60
-
61
- - source :
62
- kind : ConfigMap
63
- name : network-values
64
- fieldPath : data.storagemgmt.subnets
65
- targets :
66
- - select :
67
- kind : NetConfig
68
- fieldPaths :
69
- - spec.networks.[name=storagemgmt].subnets
70
-
71
23
- source :
72
24
kind : ConfigMap
73
25
name : service-values
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
23
+
24
+ patches :
25
+ - target :
26
+ version : v1beta1
27
+ kind : NetConfig
28
+ name : netconfig
29
+ patch : |-
30
+ - op: add
31
+ path: /spec/networks/-
32
+ value:
33
+ dnsDomain: _replaced_
34
+ name: storagemgmt
35
+ subnets:
36
+ - _replaced_
37
+ mtu: 1500
38
+
39
+ replacements :
40
+ - source :
41
+ kind : ConfigMap
42
+ name : network-values
43
+ fieldPath : data.storagemgmt.dnsDomain
44
+ targets :
45
+ - select :
46
+ kind : NetConfig
47
+ fieldPaths :
48
+ - spec.networks.[name=storagemgmt].dnsDomain
49
+
50
+ - source :
51
+ kind : ConfigMap
52
+ name : network-values
53
+ fieldPath : data.storagemgmt.mtu
54
+ targets :
55
+ - select :
56
+ kind : NetConfig
57
+ fieldPaths :
58
+ - spec.networks.[name=storagemgmt].mtu
59
+
60
+ - source :
61
+ kind : ConfigMap
62
+ name : network-values
63
+ fieldPath : data.storagemgmt.subnets
64
+ targets :
65
+ - select :
66
+ kind : NetConfig
67
+ fieldPaths :
68
+ - spec.networks.[name=storagemgmt].subnets
Original file line number Diff line number Diff line change @@ -18,11 +18,14 @@ Change to uni04delta directory
18
18
cd architecture/examples/dt/uni04delta
19
19
```
20
20
21
- Apply the required network configurations.
21
+ # Apply the required node network configurations.
22
+ ``` bash
23
+ vi control-plane/networking/nncp/values.yaml
24
+ ```
22
25
23
26
``` bash
24
27
# Change the Node Network Configuration folder.
25
- pushd control-plane/nncp
28
+ pushd control-plane/networking/ nncp
26
29
27
30
# Generate the configuration
28
31
kustomize build > nncp.yaml
@@ -38,8 +41,18 @@ oc wait nncp -l osp/nncm-config-type=standard \
38
41
# change the working directory
39
42
popd
40
43
```
44
+ # Apply remainig networking configuration
45
+
46
+ Generate the remaining networking configuration
47
+ ``` bash
48
+ kustomize build control-plane/networking > networking.yaml
49
+ ```
50
+ Apply the networking CRs
51
+ ``` bash
52
+ oc apply -f networking.yaml
53
+ ```
41
54
42
- Generate and apply the control-plane configurations.
55
+ # Generate and apply the control-plane configurations.
43
56
44
57
``` bash
45
58
# Navigate to control-panel
@@ -56,4 +69,3 @@ oc wait openstackcontrolplane --for condition=Ready --timeout=600s
56
69
57
70
# change the work_dir
58
71
popd
59
- ```
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ components:
6
6
- ../../../../dt/uni04delta/
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/uni04delta/networking
7
+
8
+ resources :
9
+ - nncp/values.yaml
File renamed without changes.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ transformers:
17
17
create: true
18
18
19
19
components :
20
- - ../../../../../lib/nncp
20
+ - ../../../../../../ lib/nncp
21
21
22
22
resources :
23
23
- values.yaml
File renamed without changes.
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ components:
6
6
- ../../../dt/uni04delta/edpm/nodeset
7
7
8
8
resources :
9
- - control-plane/nncp/values.yaml
9
+ - control-plane/networking/ nncp/values.yaml
10
10
- control-plane/service-values.yaml
11
11
- values.yaml
Original file line number Diff line number Diff line change 247
247
- dt/uni04delta
248
248
- examples/dt/uni04delta
249
249
- examples/dt/uni04delta/control-plane
250
- - examples/dt/uni04delta/control-plane/nncp
250
+ - examples/dt/uni04delta/control-plane/networking
251
+ - examples/dt/uni04delta/control-plane/networking/nncp
251
252
- examples/dt/uni04delta/deployment
252
253
- examples/dt/uni04delta/edpm-pre-ceph
253
254
- examples/dt/uni04delta/edpm-pre-ceph/nodeset
You can’t perform that action at this time.
0 commit comments