@@ -93,6 +93,7 @@ Tang operator-bundle are:
93
93
- v1.0.6: GA release. Fix Url to URL in CRD. GA Released Version in OpenShift
94
94
- v1.0.7: GA re-release. Fix channel ("alpha" to "stable")
95
95
- v1.0.8: ServiceType / ClusterIP configuration through TangServer CR
96
+ - v1.0.9: Golang dependencies update
96
97
97
98
## Installation
98
99
@@ -116,23 +117,23 @@ operator-sdk installation is described in the [Links](#links) section.
116
117
117
118
In order to deploy the latest version of the Tang operator, check latest released
118
119
version in the [ Versions] ( #versions ) section, and install the appropriate version
119
- bundle. For example, in case latest version is ** 1.0.8 ** , the command to execute
120
+ bundle. For example, in case latest version is ** 1.0.9 ** , the command to execute
120
121
will be:
121
122
122
123
``` bash
123
- $ operator-sdk run bundle quay.io/sec-eng-special/tang-operator-bundle:v1.0.8
124
- INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.8
124
+ $ operator-sdk run bundle quay.io/sec-eng-special/tang-operator-bundle:v1.0.9
125
+ INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.9
125
126
INFO[0009] Created CatalogSource: tang-operator-catalog
126
127
INFO[0009] OperatorGroup " operator-sdk-og" created
127
- INFO[0009] Created Subscription: tang-operator-v1.0.8 -sub
128
- INFO[0011] Approved InstallPlan install-lqf9f for the Subscription: tang-operator-v1.0.8 -sub
128
+ INFO[0009] Created Subscription: tang-operator-v1.0.9 -sub
129
+ INFO[0011] Approved InstallPlan install-lqf9f for the Subscription: tang-operator-v1.0.9 -sub
129
130
INFO[0011] Waiting for ClusterServiceVersion to reach ' Succeeded' phase
130
- INFO[0012] Waiting for ClusterServiceVersion " default/tang-operator.v1.0.8 "
131
- INFO[0018] Found ClusterServiceVersion " default/tang-operator.v1.0.8 " phase: Pending
132
- INFO[0020] Found ClusterServiceVersion " default/tang-operator.v1.0.8 " phase: InstallReady
133
- INFO[0021] Found ClusterServiceVersion " default/tang-operator.v1.0.8 " phase: Installing
134
- INFO[0031] Found ClusterServiceVersion " default/tang-operator.v1.0.8 " phase: Succeeded
135
- INFO[0031] OLM has successfully installed " tang-operator.v1.0.8 "
131
+ INFO[0012] Waiting for ClusterServiceVersion " default/tang-operator.v1.0.9 "
132
+ INFO[0018] Found ClusterServiceVersion " default/tang-operator.v1.0.9 " phase: Pending
133
+ INFO[0020] Found ClusterServiceVersion " default/tang-operator.v1.0.9 " phase: InstallReady
134
+ INFO[0021] Found ClusterServiceVersion " default/tang-operator.v1.0.9 " phase: Installing
135
+ INFO[0031] Found ClusterServiceVersion " default/tang-operator.v1.0.9 " phase: Succeeded
136
+ INFO[0031] OLM has successfully installed " tang-operator.v1.0.9 "
136
137
```
137
138
To install latest multi-arch image, execute:
138
139
``` bash
@@ -148,10 +149,10 @@ your cluster takes long time to deploy. To do so, the option **--timeout** can b
148
149
used (if not used, default time is 2m, which stands for two minutes):
149
150
150
151
``` bash
151
- $ operator-sdk run bundle --timeout 3m quay.io/sec-eng-special/tang-operator-bundle:v1.0.8
152
- INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.8
152
+ $ operator-sdk run bundle --timeout 3m quay.io/sec-eng-special/tang-operator-bundle:v1.0.9
153
+ INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.9
153
154
...
154
- INFO[0031] OLM has successfully installed " tang-operator.v1.0.8 "
155
+ INFO[0031] OLM has successfully installed " tang-operator.v1.0.9 "
155
156
```
156
157
157
158
Additionally, correct Tang operator installation can be observed if an output like
@@ -161,7 +162,7 @@ the following is observed when prompting for installed pods:
161
162
$ oc get pods
162
163
NAME READY STATUS RESTARTS AGE
163
164
dbbd1837106ec169542546e7ad251b95d27c3542eb0409c1e 0/1 Completed 0 82s
164
- quay-io-tang-operator-bundle-v1.0.8 1/1 Running 0 90s
165
+ quay-io-tang-operator-bundle-v1.0.9 1/1 Running 0 90s
165
166
tang-operator-controller-manager-5c9488d8dd-mgmsf 2/2 Running 0 52s
166
167
```
167
168
@@ -199,8 +200,7 @@ Note the **Running** state for the `tangserver` pods.
199
200
## Compilation
200
201
201
202
Requirements for tang-operator compilation is as follows:
202
- * Go compiler (v1.19.6+). Recommended version: v1.21.7. ** v1.22.0 does not work** (yet), possibly
203
- due to this [ issue] ( https://github.com/golang/go/issues/64812 ) .
203
+ * Go compiler (v1.19.6+). Recommended version: v1.22.2.
204
204
* Docker (v24.0.7+ recommended). Podman (v4.9.0+ recommended) can be used as an alternative to Docker.
205
205
206
206
Compilation of Tang operator needs to be performed in top directory, by executing
@@ -212,33 +212,33 @@ to be released, it is recommended to increase version appropriately.
212
212
In this case, same version is used. Last released version can be observed in
213
213
[ Versions] ( #versions ) section.
214
214
215
- To summarize, taking into account that the last released version is ** v1.0.8 ** ,
215
+ To summarize, taking into account that the last released version is ** v1.0.9 ** ,
216
216
compilation can be done with next command:
217
217
218
218
``` bash
219
- $ make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.8 "
219
+ $ make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.9 "
220
220
...
221
221
Successfully built 4a88ba8e6426
222
- Successfully tagged sec-eng-special/tang-operator:v1.0.8
223
- docker push sec-eng-special/tang-operator:v1.0.8
222
+ Successfully tagged sec-eng-special/tang-operator:v1.0.9
223
+ docker push sec-eng-special/tang-operator:v1.0.9
224
224
The push refers to repository [quay.io/sec-eng-special/tang-operator]
225
- 7910991.0.8a : Pushed
225
+ 7910991.0.9a : Pushed
226
226
417cb9b79ade: Layer already exists
227
- v1.0.8 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
227
+ v1.0.9 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
228
228
```
229
229
230
230
It is possible to use ` podman ` instead of ` docker ` :
231
231
232
232
``` bash
233
- $ make podman-build podman-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.8 "
233
+ $ make podman-build podman-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.9 "
234
234
...
235
235
Successfully built 4a88ba8e6426
236
- Successfully tagged sec-eng-special/tang-operator:v1.0.8
237
- podman push sec-eng-special/tang-operator:v1.0.8
236
+ Successfully tagged sec-eng-special/tang-operator:v1.0.9
237
+ podman push sec-eng-special/tang-operator:v1.0.9
238
238
The push refers to repository [quay.io/sec-eng-special/tang-operator]
239
- 7910991.0.8a : Pushed
239
+ 7910991.0.9a : Pushed
240
240
417cb9b79ade: Layer already exists
241
- v1.0.8 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
241
+ v1.0.9 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
242
242
```
243
243
244
244
In case a new release is planned to be done, the steps to follow will be:
@@ -248,29 +248,29 @@ In case a new release is planned to be done, the steps to follow will be:
248
248
``` bash
249
249
$ git diff Makefile
250
250
diff --git a/Makefile b/Makefile
251
- index 9a41c6a..db12a82 1.0.84
251
+ index 9a41c6a..db12a82 100644
252
252
--- a/Makefile
253
253
+++ b/Makefile
254
254
@@ -3,7 +3,7 @@
255
255
# To re-generate a bundle for another specific version without changing the
256
256
# standard setup, you can:
257
- # - use the VERSION as arg of the bundle target (e.g make bundle VERSION=1.0.8 )
258
- # - use environment variables to overwrite this value (e.g export VERSION=1.0.8 )
259
- -VERSION ? = 1.0.6
260
- +VERSION ? = 1.0.8
257
+ # - use the VERSION as arg of the bundle target (e.g. make bundle VERSION=1.0.9 )
258
+ # - use environment variables to overwrite this value (e.g. export VERSION=1.0.9 )
259
+ -VERSION ? = 1.0.8
260
+ +VERSION ? = 1.0.9
261
261
```
262
262
263
263
Apart from previous changes, it is recommended to generate a "latest" tag for tang-operator bundle:
264
264
265
265
``` bash
266
- $ docker tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.8 quay.io/sec-eng-special/tang-operator-bundle:latest
266
+ $ docker tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.9 quay.io/sec-eng-special/tang-operator-bundle:latest
267
267
$ docker push quay.io/sec-eng-special/tang-operator-bundle:latest
268
268
```
269
269
270
270
In case ` podman ` is being used:
271
271
272
272
``` bash
273
- $ podman tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.8 quay.io/sec-eng-special/tang-operator-bundle:latest
273
+ $ podman tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.9 quay.io/sec-eng-special/tang-operator-bundle:latest
274
274
$ podman push quay.io/sec-eng-special/tang-operator-bundle:latest
275
275
```
276
276
@@ -280,28 +280,28 @@ Compile Tang operator code, specifying new version,
280
280
by using ** make docker-build** command:
281
281
282
282
``` bash
283
- $ make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.8 "
283
+ $ make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.9 "
284
284
...
285
- Successfully tagged sec-eng-special/tang-operator:v1.0.8
286
- docker push sec-eng-special/tang-operator:v1.0.8
285
+ Successfully tagged sec-eng-special/tang-operator:v1.0.9
286
+ docker push sec-eng-special/tang-operator:v1.0.9
287
287
The push refers to repository [quay.io/sec-eng-special/tang-operator]
288
288
9ff8a4099c67: Pushed
289
289
417cb9b79ade: Layer already exists
290
- v1.0.8 : digest: sha256:01620ab19faae54fb382a2ff285f589cf0bde6e168f14f07 size: 739
290
+ v1.0.9 : digest: sha256:01620ab19faae54fb382a2ff285f589cf0bde6e168f14f07 size: 739
291
291
```
292
292
293
293
And, in case ` podman ` is being used instead of ` docker ` :
294
294
295
295
``` bash
296
- $ make podman-build podman-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.8 "
296
+ $ make podman-build podman-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.9 "
297
297
...
298
298
Successfully built 4a88ba8e6426
299
- Successfully tagged sec-eng-special/tang-operator:v1.0.8
300
- podman push sec-eng-special/tang-operator:v1.0.8
299
+ Successfully tagged sec-eng-special/tang-operator:v1.0.9
300
+ podman push sec-eng-special/tang-operator:v1.0.9
301
301
The push refers to repository [quay.io/sec-eng-special/tang-operator]
302
- 7910991.0.8a : Pushed
302
+ 7910991.0.9a : Pushed
303
303
417cb9b79ade: Layer already exists
304
- v1.0.8 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
304
+ v1.0.9 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
305
305
```
306
306
307
307
- <ins >Bundle push</ins >:
@@ -311,15 +311,15 @@ the bundle with **make bundle**, specifying appropriate image,
311
311
and push it with ** make bundle-build bundle-push** :
312
312
313
313
``` bash
314
- $ make bundle IMG=" quay.io/sec-eng-special/tang-operator:v1.0.8 "
315
- $ make bundle-build bundle-push BUNDLE_IMG=" quay.io/sec-eng-special/tang-operator-bundle:v1.0.8 "
314
+ $ make bundle IMG=" quay.io/sec-eng-special/tang-operator:v1.0.9 "
315
+ $ make bundle-build bundle-push BUNDLE_IMG=" quay.io/sec-eng-special/tang-operator-bundle:v1.0.9 "
316
316
...
317
- docker push sec-eng-special/tang-operator-bundle:v1.0.8
317
+ docker push sec-eng-special/tang-operator-bundle:v1.0.9
318
318
The push refers to repository [quay.io/sec-eng-special/tang-operator-bundle]
319
319
02e3768cfc56: Pushed
320
320
df0c8060d328: Pushed
321
321
84774958bcf4: Pushed
322
- v1.0.8 : digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
322
+ v1.0.9 : digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
323
323
make[1]: Leaving directory ' /home/user/RedHat/TASKS/TANG_OPERATOR/tang-operator'
324
324
```
325
325
@@ -328,15 +328,15 @@ In case the operator bundle is required to be pushed, generate the bundle with *
328
328
specifying appropriate image, and push it with ** make podman-bundle-build podman-bundle-push** :
329
329
330
330
``` bash
331
- $ make bundle IMG=" quay.io/sec-eng-special/tang-operator:v1.0.8 "
332
- $ make podman-bundle-build podman-bundle-push BUNDLE_IMG=" quay.io/sarroutb/tang-operator-bundle:v1.0.8 "
331
+ $ make bundle IMG=" quay.io/sec-eng-special/tang-operator:v1.0.9 "
332
+ $ make podman-bundle-build podman-bundle-push BUNDLE_IMG=" quay.io/sarroutb/tang-operator-bundle:v1.0.9 "
333
333
...
334
- podman push sec-eng-special/tang-operator-bundle:v1.0.8
334
+ podman push sec-eng-special/tang-operator-bundle:v1.0.9
335
335
The push refers to repository [quay.io/sec-eng-special/tang-operator-bundle]
336
336
02e3768cfc56: Pushed
337
337
df0c8060d328: Pushed
338
338
84774958bcf4: Pushed
339
- v1.0.8 : digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
339
+ v1.0.9 : digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
340
340
make[1]: Leaving directory ' /home/user/RedHat/TASKS/TANG_OPERATOR/tang-operator'
341
341
```
342
342
@@ -376,15 +376,15 @@ In order to cross compile tang-operator, prepend **GOARCH** with required archit
376
376
** make docker-build** :
377
377
378
378
``` bash
379
- $ GOARCH=ppc64le make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.8 "
379
+ $ GOARCH=ppc64le make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.9 "
380
380
...
381
381
Successfully built 4a88ba8e6426
382
- Successfully tagged sec-eng-special/tang-operator:v1.0.8
383
- docker push sec-eng-special/tang-operator:v1.0.8
382
+ Successfully tagged sec-eng-special/tang-operator:v1.0.9
383
+ docker push sec-eng-special/tang-operator:v1.0.9
384
384
The push refers to repository [quay.io/sec-eng-special/tang-operator]
385
- 7910991.0.8a : Pushed
385
+ 7910991.0.9a : Pushed
386
386
417cb9b79ade: Layer already exists
387
- v1.0.8 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
387
+ v1.0.9 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
388
388
```
389
389
Examples of architectures to cross-compile are:
390
390
* ` ppc64le `
@@ -401,9 +401,9 @@ recommended way:
401
401
402
402
``` bash
403
403
$ operator-sdk cleanup tang-operator
404
- INFO[0001] subscription " tang-operator-v1.0.8 -sub" deleted
404
+ INFO[0001] subscription " tang-operator-v1.0.9 -sub" deleted
405
405
INFO[0001] customresourcedefinition " tangservers.daemons.redhat.com" deleted
406
- INFO[0002] clusterserviceversion " tang-operator.v1.0.8 " deleted
406
+ INFO[0002] clusterserviceversion " tang-operator.v1.0.9 " deleted
407
407
INFO[0002] catalogsource " tang-operator-catalog" deleted
408
408
INFO[0002] operatorgroup " operator-sdk-og" deleted
409
409
INFO[0002] Operator " tang-operator" uninstalled
@@ -493,7 +493,7 @@ However, scorecard tests can be executed manually. In order to execute these tes
493
493
run next command:
494
494
495
495
``` bash
496
- $ operator-sdk scorecard -w 60s quay.io/sec-eng-special/tang-operator-bundle:v1.0.8
496
+ $ operator-sdk scorecard -w 60s quay.io/sec-eng-special/tang-operator-bundle:v1.0.9
497
497
...
498
498
Results:
499
499
Name: olm-status-descriptors
@@ -520,7 +520,7 @@ Name: olm-bundle-validation
520
520
State: pass
521
521
```
522
522
523
- As it can be observed, execution of operator-sdk scorecard tests are passing successfully in latest released version (v1.0.8 ).
523
+ As it can be observed, execution of operator-sdk scorecard tests are passing successfully in latest released version (v1.0.9 ).
524
524
525
525
## Links
526
526
0 commit comments