@@ -8,6 +8,8 @@ For this integration, the Assisted Installer APIs are available via [CRDs](https
8
8
9
9
## CRD Types
10
10
11
+ ![ kubeAPI4.9] ( kubeAPI4.9_controllers.jpg )
12
+
11
13
### [ ClusterDeployment] ( https://github.com/openshift/hive/blob/master/apis/hive/v1/clusterdeployment_types.go )
12
14
The ClusterDeployment CRD is an API provided by Hive.
13
15
@@ -33,7 +35,7 @@ Deletion of AgentClusterInstall will trigger the `agentclusterinstall
33
35
Here an example how to print AgentClusterInstall conditions:
34
36
35
37
``` sh
36
- $ kubectl get agentclusterinstalls.extensions.hive.openshift.io -n assisted-installer -o=jsonpath=' {range .items[*]}{"\n"}{.metadata.name}{"\n"}{range .status.conditions[*]}{.type}{"\t"}{.message}{"\n"}{end}'
38
+ $ kubectl get agentclusterinstalls.extensions.hive.openshift.io -n mynamespace -o=jsonpath=' {range .items[*]}{"\n"}{.metadata.name}{"\n"}{range .status.conditions[*]}{.type}{"\t"}{.message}{"\n"}{end}'
37
39
```
38
40
``` sh
39
41
test-infra-agent-cluster-install
@@ -92,7 +94,7 @@ Note that if the Agent is not Approved, it will not be part of the installation.
92
94
Here how to approve an Agent:
93
95
94
96
```sh
95
- $ kubectl -n assisted-installer patch agents.agent-install.openshift.io 120af504-d88e-46bd-bec2-b8b261db3b01 -p ' {" spec" :{" approved" :true}}' --type merge
97
+ $ kubectl -n mynamespace patch agents.agent-install.openshift.io 120af504-d88e-46bd-bec2-b8b261db3b01 -p ' {" spec" :{" approved" :true}}' --type merge
96
98
```
97
99
98
100
The Agent reflects the Host status through Conditions.
@@ -102,7 +104,7 @@ More details on conditions is available [here](kube-api-conditions.md)
102
104
Here an example how to print Agent conditions:
103
105
104
106
```sh
105
- $ kubectl get agents.agent-install.openshift.io -n assisted-installer -o=jsonpath=' {range .items[* ]}{" \n" }{.spec.clusterDeploymentName.name}{" \n" }{.status.inventory.hostname}{" \n" }{range .status.conditions[* ]}{.type}{" \t" }{.message}{" \n" }{end}'
107
+ $ kubectl get agents.agent-install.openshift.io -n mynamespace -o=jsonpath=' {range .items[* ]}{" \n" }{.spec.clusterDeploymentName.name}{" \n" }{.status.inventory.hostname}{" \n" }{range .status.conditions[* ]}{.type}{" \t" }{.message}{" \n" }{end}'
106
108
```
107
109
108
110
```sh
@@ -176,12 +178,12 @@ In case of failure to apply the overrides the agentclusterinstall conditions wil
176
178
Add an annotation with the desired options, the clusterdeployment controller will update the install config yaml with the annotation value.
177
179
Note that this configuration must be applied prior to starting the installation
178
180
` ` ` sh
179
- $ kubectl annotate agentclusterinstalls.extensions.hive.openshift.io test-cluster -n assisted-installer agent-install.openshift.io/install-config-overrides=" {\" networking\" :{\" networkType\" : \" OVNKubernetes\" },\" fips\" :true}"
181
+ $ kubectl annotate agentclusterinstalls.extensions.hive.openshift.io test-cluster -n mynamespace agent-install.openshift.io/install-config-overrides=" {\" networking\" :{\" networkType\" : \" OVNKubernetes\" },\" fips\" :true}"
180
182
agentclusterinstalls.extensions.hive.openshift.io/test-cluster annotated
181
183
` ` `
182
184
183
185
` ` ` sh
184
- $ kubectl get agentclusterinstalls.extensions.hive.openshift.io test-cluster -n assisted-installer -o yaml
186
+ $ kubectl get agentclusterinstalls.extensions.hive.openshift.io test-cluster -n mynamespace -o yaml
185
187
` ` `
186
188
` ` ` yaml
187
189
apiVersion: extensions.hive.openshift.io/v1beta1
@@ -192,7 +194,7 @@ metadata:
192
194
creationTimestamp: " 2021-04-01T07:04:49Z"
193
195
generation: 1
194
196
name: test-cluster
195
- namespace: assisted-installer
197
+ namespace: mynamespace
196
198
resourceVersion: " 183201"
197
199
...
198
200
` ` `
@@ -207,12 +209,12 @@ Add an annotation with the desired options, the bmac controller will update the
207
209
Then agent controller will forward it to host configuration.
208
210
Note that this configuration must be applied prior to starting the installation
209
211
` ` ` sh
210
- $ kubectl annotate bmh openshift-worker-0 -n assisted-installer bmac.agent-install.openshift.io/installer-args=" [\" --append-karg\" , \" ip=192.0.2.2::192.0.2.254:255.255.255.0:core0.example.com:enp1s0:none\" , \" --save-partindex\" , \" 1\" , \" -n\" ]"
212
+ $ kubectl annotate bmh openshift-worker-0 -n mynamespace bmac.agent-install.openshift.io/installer-args=" [\" --append-karg\" , \" ip=192.0.2.2::192.0.2.254:255.255.255.0:core0.example.com:enp1s0:none\" , \" --save-partindex\" , \" 1\" , \" -n\" ]"
211
213
baremetalhost.metal3.io/openshift-worker-0 annotated
212
214
` ` `
213
215
214
216
` ` ` sh
215
- $ oc get bmh openshift-worker-0 -n assisted-installer -o yaml
217
+ $ oc get bmh openshift-worker-0 -n mynamespace -o yaml
216
218
` ` `
217
219
` ` ` yaml
218
220
apiVersion: metal3.io/v1alpha1
@@ -223,7 +225,7 @@ metadata:
223
225
creationTimestamp: " 2021-04-13T10:46:57Z"
224
226
generation: 1
225
227
name: openshift-worker-0
226
- namespace: assisted-installer
228
+ namespace: mynamespace
227
229
spec:
228
230
` ` `
229
231
@@ -235,12 +237,12 @@ Add an annotation with the desired options, the bmac controller will update the
235
237
Then agent controller will forward it to host configuration.
236
238
Note that this configuration must be applied prior to starting the installation
237
239
` ` ` sh
238
- $ kubectl annotate bmh openshift-worker-0 -n assisted-installer bmac.agent-install.openshift.io/ignition-config-overrides=" {\" ignition\" : {\" version\" : \" 3.1.0\" }, \" storage\" : {\" files\" : [{\" path\" : \" /tmp/example\" , \" contents\" : {\" source\" : \" data:text/plain;base64,aGVscGltdHJhcHBlZGluYXN3YWdnZXJzcGVj\" }}]}}"
240
+ $ kubectl annotate bmh openshift-worker-0 -n mynamespace bmac.agent-install.openshift.io/ignition-config-overrides=" {\" ignition\" : {\" version\" : \" 3.1.0\" }, \" storage\" : {\" files\" : [{\" path\" : \" /tmp/example\" , \" contents\" : {\" source\" : \" data:text/plain;base64,aGVscGltdHJhcHBlZGluYXN3YWdnZXJzcGVj\" }}]}}"
239
241
baremetalhost.metal3.io/openshift-worker-0 annotated
240
242
` ` `
241
243
242
244
` ` ` sh
243
- $ oc get bmh openshift-worker-0 -n assisted-installer -o yaml
245
+ $ oc get bmh openshift-worker-0 -n mynamespace -o yaml
244
246
` ` `
245
247
` ` ` yaml
246
248
apiVersion: metal3.io/v1alpha1
@@ -251,7 +253,7 @@ metadata:
251
253
creationTimestamp: " 2021-04-14T10:46:57Z"
252
254
generation: 1
253
255
name: openshift-worker-0
254
- namespace: assisted-installer
256
+ namespace: mynamespace
255
257
spec:
256
258
` ` `
257
259
@@ -307,5 +309,5 @@ In case that the assisted-service is not available, the deletion of ClusterDeplo
307
309
Here an example on how to remove finalizers on a resource:
308
310
309
311
` ` ` bash
310
- kubectl -n assisted-installer patch agentclusterinstalls.extensions.hive.openshift.io my-aci -p ' {"metadata":{"finalizers":null}}' --type=merge
312
+ kubectl -n mynamespace patch agentclusterinstalls.extensions.hive.openshift.io my-aci -p ' {"metadata":{"finalizers":null}}' --type=merge
311
313
` ` `
0 commit comments