@@ -85,6 +85,7 @@ Versions released up to date of the operator and the operator-bundle are:
85
85
- v1.0.9: Golang dependencies update
86
86
- v1.0.10: Libraries update
87
87
- v1.0.11: Libraries update, Update Go version (1.22 -> 1.22.5)
88
+ - v1.0.12: Fix issues reported by gosec tool
88
89
89
90
## Installation
90
91
@@ -108,23 +109,23 @@ operator-sdk installation is described in the [Links](#links) section.
108
109
109
110
In order to deploy the latest version of the operator, check latest released
110
111
version in the [ Versions] ( #versions ) section, and install the appropriate version
111
- bundle. For example, in case latest version is ** 1.0.11 ** , the command to execute
112
+ bundle. For example, in case latest version is ** 1.0.12 ** , the command to execute
112
113
will be:
113
114
114
115
``` bash
115
- $ operator-sdk run bundle quay.io/sec-eng-special/tang-operator-bundle:v1.0.11
116
- INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.11
116
+ $ operator-sdk run bundle quay.io/sec-eng-special/tang-operator-bundle:v1.0.12
117
+ INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.12
117
118
INFO[0009] Created CatalogSource: tang-operator-catalog
118
119
INFO[0009] OperatorGroup " operator-sdk-og" created
119
- INFO[0009] Created Subscription: tang-operator-v1.0.11 -sub
120
- INFO[0011] Approved InstallPlan install-lqf9f for the Subscription: tang-operator-v1.0.11 -sub
120
+ INFO[0009] Created Subscription: tang-operator-v1.0.12 -sub
121
+ INFO[0011] Approved InstallPlan install-lqf9f for the Subscription: tang-operator-v1.0.12 -sub
121
122
INFO[0011] Waiting for ClusterServiceVersion to reach ' Succeeded' phase
122
- INFO[0012] Waiting for ClusterServiceVersion " default/tang-operator.v1.0.11 "
123
- INFO[0018] Found ClusterServiceVersion " default/tang-operator.v1.0.11 " phase: Pending
124
- INFO[0020] Found ClusterServiceVersion " default/tang-operator.v1.0.11 " phase: InstallReady
125
- INFO[0021] Found ClusterServiceVersion " default/tang-operator.v1.0.11 " phase: Installing
126
- INFO[0031] Found ClusterServiceVersion " default/tang-operator.v1.0.11 " phase: Succeeded
127
- INFO[0031] OLM has successfully installed " tang-operator.v1.0.11 "
123
+ INFO[0012] Waiting for ClusterServiceVersion " default/tang-operator.v1.0.12 "
124
+ INFO[0018] Found ClusterServiceVersion " default/tang-operator.v1.0.12 " phase: Pending
125
+ INFO[0020] Found ClusterServiceVersion " default/tang-operator.v1.0.12 " phase: InstallReady
126
+ INFO[0021] Found ClusterServiceVersion " default/tang-operator.v1.0.12 " phase: Installing
127
+ INFO[0031] Found ClusterServiceVersion " default/tang-operator.v1.0.12 " phase: Succeeded
128
+ INFO[0031] OLM has successfully installed " tang-operator.v1.0.12 "
128
129
```
129
130
To install latest multi-arch image, execute:
130
131
``` bash
@@ -140,10 +141,10 @@ your cluster takes long time to deploy. To do so, the option **--timeout** can b
140
141
used (if not used, default time is 2m, which stands for two minutes):
141
142
142
143
``` bash
143
- $ operator-sdk run bundle --timeout 3m quay.io/sec-eng-special/tang-operator-bundle:v1.0.11
144
- INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.11
144
+ $ operator-sdk run bundle --timeout 3m quay.io/sec-eng-special/tang-operator-bundle:v1.0.12
145
+ INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.12
145
146
...
146
- INFO[0031] OLM has successfully installed " tang-operator.v1.0.11 "
147
+ INFO[0031] OLM has successfully installed " tang-operator.v1.0.12 "
147
148
```
148
149
149
150
Additionally, correct installation can be observed if an output like
@@ -153,7 +154,7 @@ the following is observed when prompting for installed pods:
153
154
$ oc get pods
154
155
NAME READY STATUS RESTARTS AGE
155
156
dbbd1837106ec169542546e7ad251b95d27c3542eb0409c1e 0/1 Completed 0 82s
156
- quay-io-tang-operator-bundle-v1.0.11 1/1 Running 0 90s
157
+ quay-io-tang-operator-bundle-v1.0.12 1/1 Running 0 90s
157
158
tang-operator-controller-manager-5c9488d8dd-mgmsf 2/2 Running 0 52s
158
159
```
159
160
@@ -203,33 +204,33 @@ to be released, it is recommended to increase version appropriately.
203
204
In this case, same version is used. Last released version can be observed in
204
205
[ Versions] ( #versions ) section.
205
206
206
- To summarize, taking into account that the last released version is ** v1.0.11 ** ,
207
+ To summarize, taking into account that the last released version is ** v1.0.12 ** ,
207
208
compilation can be done with next command:
208
209
209
210
``` bash
210
- $ make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.11 "
211
+ $ make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.12 "
211
212
...
212
213
Successfully built 4a88ba8e6426
213
- Successfully tagged sec-eng-special/tang-operator:v1.0.11
214
- docker push sec-eng-special/tang-operator:v1.0.11
214
+ Successfully tagged sec-eng-special/tang-operator:v1.0.12
215
+ docker push sec-eng-special/tang-operator:v1.0.12
215
216
The push refers to repository [quay.io/sec-eng-special/tang-operator]
216
- 7910991.0.11a : Pushed
217
+ 7910991.0.12a : Pushed
217
218
417cb9b79ade: Layer already exists
218
- v1.0.11 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
219
+ v1.0.12 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
219
220
```
220
221
221
222
It is possible to use ` podman ` instead of ` docker ` :
222
223
223
224
``` bash
224
- $ make podman-build podman-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.11 "
225
+ $ make podman-build podman-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.12 "
225
226
...
226
227
Successfully built 4a88ba8e6426
227
- Successfully tagged sec-eng-special/tang-operator:v1.0.11
228
- podman push sec-eng-special/tang-operator:v1.0.11
228
+ Successfully tagged sec-eng-special/tang-operator:v1.0.12
229
+ podman push sec-eng-special/tang-operator:v1.0.12
229
230
The push refers to repository [quay.io/sec-eng-special/tang-operator]
230
- 7910991.0.11a : Pushed
231
+ 7910991.0.12a : Pushed
231
232
417cb9b79ade: Layer already exists
232
- v1.0.11 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
233
+ v1.0.12 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
233
234
```
234
235
235
236
In case a new release is planned to be done, the steps to follow will be:
@@ -245,23 +246,23 @@ index 9a41c6a..db12a82 100644
245
246
@@ -3,7 +3,7 @@
246
247
# To re-generate a bundle for another specific version without changing the
247
248
# standard setup, you can:
248
- # - use the VERSION as arg of the bundle target (e.g. make bundle VERSION=1.0.11 )
249
- # - use environment variables to overwrite this value (e.g. export VERSION=1.0.11 )
249
+ # - use the VERSION as arg of the bundle target (e.g. make bundle VERSION=1.0.12 )
250
+ # - use environment variables to overwrite this value (e.g. export VERSION=1.0.12 )
250
251
-VERSION ? = 1.0.9
251
- +VERSION ? = 1.0.11
252
+ +VERSION ? = 1.0.12
252
253
```
253
254
254
255
Apart from previous changes, it is recommended to generate a "latest" tag for tang-operator bundle:
255
256
256
257
``` bash
257
- $ docker tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.11 quay.io/sec-eng-special/tang-operator-bundle:latest
258
+ $ docker tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.12 quay.io/sec-eng-special/tang-operator-bundle:latest
258
259
$ docker push quay.io/sec-eng-special/tang-operator-bundle:latest
259
260
```
260
261
261
262
In case ` podman ` is being used:
262
263
263
264
``` bash
264
- $ podman tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.11 quay.io/sec-eng-special/tang-operator-bundle:latest
265
+ $ podman tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.12 quay.io/sec-eng-special/tang-operator-bundle:latest
265
266
$ podman push quay.io/sec-eng-special/tang-operator-bundle:latest
266
267
```
267
268
@@ -270,28 +271,28 @@ $ podman push quay.io/sec-eng-special/tang-operator-bundle:latest
270
271
Compile operator code, specifying new version, by using ** make docker-build** command:
271
272
272
273
``` bash
273
- $ make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.11 "
274
+ $ make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.12 "
274
275
...
275
- Successfully tagged sec-eng-special/tang-operator:v1.0.11
276
- docker push sec-eng-special/tang-operator:v1.0.11
276
+ Successfully tagged sec-eng-special/tang-operator:v1.0.12
277
+ docker push sec-eng-special/tang-operator:v1.0.12
277
278
The push refers to repository [quay.io/sec-eng-special/tang-operator]
278
279
9ff8a4099c67: Pushed
279
280
417cb9b79ade: Layer already exists
280
- v1.0.11 : digest: sha256:01620ab19faae54fb382a2ff285f589cf0bde6e168f14f07 size: 739
281
+ v1.0.12 : digest: sha256:01620ab19faae54fb382a2ff285f589cf0bde6e168f14f07 size: 739
281
282
```
282
283
283
284
And, in case ` podman ` is being used instead of ` docker ` :
284
285
285
286
``` bash
286
- $ make podman-build podman-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.11 "
287
+ $ make podman-build podman-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.12 "
287
288
...
288
289
Successfully built 4a88ba8e6426
289
- Successfully tagged sec-eng-special/tang-operator:v1.0.11
290
- podman push sec-eng-special/tang-operator:v1.0.11
290
+ Successfully tagged sec-eng-special/tang-operator:v1.0.12
291
+ podman push sec-eng-special/tang-operator:v1.0.12
291
292
The push refers to repository [quay.io/sec-eng-special/tang-operator]
292
- 7910991.0.11a : Pushed
293
+ 7910991.0.12a : Pushed
293
294
417cb9b79ade: Layer already exists
294
- v1.0.11 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
295
+ v1.0.12 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
295
296
```
296
297
297
298
- <ins >Bundle push</ins >:
@@ -301,15 +302,15 @@ the bundle with **make bundle**, specifying appropriate image,
301
302
and push it with ** make bundle-build bundle-push** :
302
303
303
304
``` bash
304
- $ make bundle IMG=" quay.io/sec-eng-special/tang-operator:v1.0.11 "
305
- $ make bundle-build bundle-push BUNDLE_IMG=" quay.io/sec-eng-special/tang-operator-bundle:v1.0.11 "
305
+ $ make bundle IMG=" quay.io/sec-eng-special/tang-operator:v1.0.12 "
306
+ $ make bundle-build bundle-push BUNDLE_IMG=" quay.io/sec-eng-special/tang-operator-bundle:v1.0.12 "
306
307
...
307
- docker push sec-eng-special/tang-operator-bundle:v1.0.11
308
+ docker push sec-eng-special/tang-operator-bundle:v1.0.12
308
309
The push refers to repository [quay.io/sec-eng-special/tang-operator-bundle]
309
310
02e3768cfc56: Pushed
310
311
df0c8060d328: Pushed
311
312
84774958bcf4: Pushed
312
- v1.0.11 : digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
313
+ v1.0.12 : digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
313
314
make[1]: Leaving directory ' /home/user/RedHat/TASKS/TANG_OPERATOR/tang-operator'
314
315
```
315
316
@@ -318,15 +319,15 @@ In case the operator bundle is required to be pushed, generate the bundle with *
318
319
specifying appropriate image, and push it with ** make podman-bundle-build podman-bundle-push** :
319
320
320
321
``` bash
321
- $ make bundle IMG=" quay.io/sec-eng-special/tang-operator:v1.0.11 "
322
- $ make podman-bundle-build podman-bundle-push BUNDLE_IMG=" quay.io/sarroutb/tang-operator-bundle:v1.0.11 "
322
+ $ make bundle IMG=" quay.io/sec-eng-special/tang-operator:v1.0.12 "
323
+ $ make podman-bundle-build podman-bundle-push BUNDLE_IMG=" quay.io/sarroutb/tang-operator-bundle:v1.0.12 "
323
324
...
324
- podman push sec-eng-special/tang-operator-bundle:v1.0.11
325
+ podman push sec-eng-special/tang-operator-bundle:v1.0.12
325
326
The push refers to repository [quay.io/sec-eng-special/tang-operator-bundle]
326
327
02e3768cfc56: Pushed
327
328
df0c8060d328: Pushed
328
329
84774958bcf4: Pushed
329
- v1.0.11 : digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
330
+ v1.0.12 : digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
330
331
make[1]: Leaving directory ' /home/user/RedHat/TASKS/TANG_OPERATOR/tang-operator'
331
332
```
332
333
@@ -366,15 +367,15 @@ In order to cross compile tang-operator, prepend **GOARCH** with required archit
366
367
** make docker-build** :
367
368
368
369
``` bash
369
- $ GOARCH=ppc64le make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.11 "
370
+ $ GOARCH=ppc64le make docker-build docker-push IMG=" quay.io/sec-eng-special/tang-operator:v1.0.12 "
370
371
...
371
372
Successfully built 4a88ba8e6426
372
- Successfully tagged sec-eng-special/tang-operator:v1.0.11
373
- docker push sec-eng-special/tang-operator:v1.0.11
373
+ Successfully tagged sec-eng-special/tang-operator:v1.0.12
374
+ docker push sec-eng-special/tang-operator:v1.0.12
374
375
The push refers to repository [quay.io/sec-eng-special/tang-operator]
375
- 7910991.0.11a : Pushed
376
+ 7910991.0.12a : Pushed
376
377
417cb9b79ade: Layer already exists
377
- v1.0.11 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
378
+ v1.0.12 : digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
378
379
```
379
380
Examples of architectures to cross-compile are:
380
381
* ` ppc64le `
@@ -391,9 +392,9 @@ recommended way:
391
392
392
393
``` bash
393
394
$ operator-sdk cleanup tang-operator
394
- INFO[0001] subscription " tang-operator-v1.0.11 -sub" deleted
395
+ INFO[0001] subscription " tang-operator-v1.0.12 -sub" deleted
395
396
INFO[0001] customresourcedefinition " tangservers.daemons.redhat.com" deleted
396
- INFO[0002] clusterserviceversion " tang-operator.v1.0.11 " deleted
397
+ INFO[0002] clusterserviceversion " tang-operator.v1.0.12 " deleted
397
398
INFO[0002] catalogsource " tang-operator-catalog" deleted
398
399
INFO[0002] operatorgroup " operator-sdk-og" deleted
399
400
INFO[0002] Operator " tang-operator" uninstalled
@@ -483,7 +484,7 @@ However, scorecard tests can be executed manually. In order to execute these tes
483
484
run next command:
484
485
485
486
``` bash
486
- $ operator-sdk scorecard -w 60s quay.io/sec-eng-special/tang-operator-bundle:v1.0.11
487
+ $ operator-sdk scorecard -w 60s quay.io/sec-eng-special/tang-operator-bundle:v1.0.12
487
488
...
488
489
Results:
489
490
Name: olm-status-descriptors
@@ -510,7 +511,7 @@ Name: olm-bundle-validation
510
511
State: pass
511
512
```
512
513
513
- As it can be observed, execution of operator-sdk scorecard tests are passing successfully in latest released version (v1.0.11 ).
514
+ As it can be observed, execution of operator-sdk scorecard tests are passing successfully in latest released version (v1.0.12 ).
514
515
515
516
## Links
516
517
0 commit comments