Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 93eecfe

Browse files
authored
Release 1.0.8 (ServiceType/ClusterIP CRD config) (#275)
Resolves: #274 Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
1 parent 311b852 commit 93eecfe

File tree

5 files changed

+68
-64
lines changed

5 files changed

+68
-64
lines changed

.wordlist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CLI
2+
ClusterIP
23
CodeReady
34
CRC
45
CRD
@@ -30,9 +31,11 @@ README
3031
RHEL
3132
sdk
3233
SDK
34+
ServiceType
3335
Shellcheck
3436
Staticcheck
3537
tangd
38+
TangServer
3639
tang-operator
3740
url
3841
Url

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# To re-generate a bundle for another specific version without changing the standard setup, you can:
44
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
55
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
6-
VERSION ?= 1.0.7
6+
VERSION ?= 1.0.8
77

88
# CHANNELS define the bundle channels used in the bundle.
99
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")

README.md

Lines changed: 59 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ Tang operator-bundle are:
9292
- v1.0.5: new GA release candidate. Use latest `kube-rbac-proxy` version
9393
- v1.0.6: GA release. Fix Url to URL in CRD. GA Released Version in OpenShift
9494
- v1.0.7: GA re-release. Fix channel ("alpha" to "stable")
95+
- v1.0.8: ServiceType / ClusterIP configuration through TangServer CR
9596

9697
## Installation
9798

@@ -115,23 +116,23 @@ operator-sdk installation is described in the [Links](#links) section.
115116

116117
In order to deploy the latest version of the Tang operator, check latest released
117118
version in the [Versions](#versions) section, and install the appropriate version
118-
bundle. For example, in case latest version is **1.0.7**, the command to execute
119+
bundle. For example, in case latest version is **1.0.8**, the command to execute
119120
will be:
120121

121122
```bash
122-
$ operator-sdk run bundle quay.io/sec-eng-special/tang-operator-bundle:v1.0.7
123-
INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.7
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
124125
INFO[0009] Created CatalogSource: tang-operator-catalog
125126
INFO[0009] OperatorGroup "operator-sdk-og" created
126-
INFO[0009] Created Subscription: tang-operator-v1.0.7-sub
127-
INFO[0011] Approved InstallPlan install-lqf9f for the Subscription: tang-operator-v1.0.7-sub
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
128129
INFO[0011] Waiting for ClusterServiceVersion to reach 'Succeeded' phase
129-
INFO[0012] Waiting for ClusterServiceVersion "default/tang-operator.v1.0.7"
130-
INFO[0018] Found ClusterServiceVersion "default/tang-operator.v1.0.7" phase: Pending
131-
INFO[0020] Found ClusterServiceVersion "default/tang-operator.v1.0.7" phase: InstallReady
132-
INFO[0021] Found ClusterServiceVersion "default/tang-operator.v1.0.7" phase: Installing
133-
INFO[0031] Found ClusterServiceVersion "default/tang-operator.v1.0.7" phase: Succeeded
134-
INFO[0031] OLM has successfully installed "tang-operator.v1.0.7"
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"
135136
```
136137
To install latest multi-arch image, execute:
137138
```bash
@@ -147,10 +148,10 @@ your cluster takes long time to deploy. To do so, the option **--timeout** can b
147148
used (if not used, default time is 2m, which stands for two minutes):
148149

149150
```bash
150-
$ operator-sdk run bundle --timeout 3m quay.io/sec-eng-special/tang-operator-bundle:v1.0.7
151-
INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.7
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
152153
...
153-
INFO[0031] OLM has successfully installed "tang-operator.v1.0.7"
154+
INFO[0031] OLM has successfully installed "tang-operator.v1.0.8"
154155
```
155156

156157
Additionally, correct Tang operator installation can be observed if an output like
@@ -160,7 +161,7 @@ the following is observed when prompting for installed pods:
160161
$ oc get pods
161162
NAME READY STATUS RESTARTS AGE
162163
dbbd1837106ec169542546e7ad251b95d27c3542eb0409c1e 0/1 Completed 0 82s
163-
quay-io-tang-operator-bundle-v1.0.7 1/1 Running 0 90s
164+
quay-io-tang-operator-bundle-v1.0.8 1/1 Running 0 90s
164165
tang-operator-controller-manager-5c9488d8dd-mgmsf 2/2 Running 0 52s
165166
```
166167

@@ -211,33 +212,33 @@ to be released, it is recommended to increase version appropriately.
211212
In this case, same version is used. Last released version can be observed in
212213
[Versions](#versions) section.
213214

214-
To summarize, taking into account that the last released version is **v1.0.7**,
215+
To summarize, taking into account that the last released version is **v1.0.8**,
215216
compilation can be done with next command:
216217

217218
```bash
218-
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.7"
219+
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.8"
219220
...
220221
Successfully built 4a88ba8e6426
221-
Successfully tagged sec-eng-special/tang-operator:v1.0.7
222-
docker push sec-eng-special/tang-operator:v1.0.7
222+
Successfully tagged sec-eng-special/tang-operator:v1.0.8
223+
docker push sec-eng-special/tang-operator:v1.0.8
223224
The push refers to repository [quay.io/sec-eng-special/tang-operator]
224-
7910991.0.7a: Pushed
225+
7910991.0.8a: Pushed
225226
417cb9b79ade: Layer already exists
226-
v1.0.7: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
227+
v1.0.8: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
227228
```
228229

229230
It is possible to use `podman` instead of `docker`:
230231

231232
```bash
232-
$ make podman-build podman-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.7"
233+
$ make podman-build podman-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.8"
233234
...
234235
Successfully built 4a88ba8e6426
235-
Successfully tagged sec-eng-special/tang-operator:v1.0.7
236-
podman push sec-eng-special/tang-operator:v1.0.7
236+
Successfully tagged sec-eng-special/tang-operator:v1.0.8
237+
podman push sec-eng-special/tang-operator:v1.0.8
237238
The push refers to repository [quay.io/sec-eng-special/tang-operator]
238-
7910991.0.7a: Pushed
239+
7910991.0.8a: Pushed
239240
417cb9b79ade: Layer already exists
240-
v1.0.7: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
241+
v1.0.8: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
241242
```
242243

243244
In case a new release is planned to be done, the steps to follow will be:
@@ -247,29 +248,29 @@ In case a new release is planned to be done, the steps to follow will be:
247248
```bash
248249
$ git diff Makefile
249250
diff --git a/Makefile b/Makefile
250-
index 9a41c6a..db12a82 1.0.74
251+
index 9a41c6a..db12a82 1.0.84
251252
--- a/Makefile
252253
+++ b/Makefile
253254
@@ -3,7 +3,7 @@
254255
# To re-generate a bundle for another specific version without changing the
255256
# standard setup, you can:
256-
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=1.0.7)
257-
# - use environment variables to overwrite this value (e.g export VERSION=1.0.7)
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)
258259
-VERSION ?= 1.0.6
259-
+VERSION ?= 1.0.7
260+
+VERSION ?= 1.0.8
260261
```
261262

262263
Apart from previous changes, it is recommended to generate a "latest" tag for tang-operator bundle:
263264

264265
```bash
265-
$ docker tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.7 quay.io/sec-eng-special/tang-operator-bundle:latest
266+
$ docker tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.8 quay.io/sec-eng-special/tang-operator-bundle:latest
266267
$ docker push quay.io/sec-eng-special/tang-operator-bundle:latest
267268
```
268269

269270
In case `podman` is being used:
270271

271272
```bash
272-
$ podman tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.7 quay.io/sec-eng-special/tang-operator-bundle:latest
273+
$ podman tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.8 quay.io/sec-eng-special/tang-operator-bundle:latest
273274
$ podman push quay.io/sec-eng-special/tang-operator-bundle:latest
274275
```
275276

@@ -279,28 +280,28 @@ Compile Tang operator code, specifying new version,
279280
by using **make docker-build** command:
280281

281282
```bash
282-
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.7"
283+
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.8"
283284
...
284-
Successfully tagged sec-eng-special/tang-operator:v1.0.7
285-
docker push sec-eng-special/tang-operator:v1.0.7
285+
Successfully tagged sec-eng-special/tang-operator:v1.0.8
286+
docker push sec-eng-special/tang-operator:v1.0.8
286287
The push refers to repository [quay.io/sec-eng-special/tang-operator]
287288
9ff8a4099c67: Pushed
288289
417cb9b79ade: Layer already exists
289-
v1.0.7: digest: sha256:01620ab19faae54fb382a2ff285f589cf0bde6e168f14f07 size: 739
290+
v1.0.8: digest: sha256:01620ab19faae54fb382a2ff285f589cf0bde6e168f14f07 size: 739
290291
```
291292

292293
And, in case `podman` is being used instead of `docker`:
293294

294295
```bash
295-
$ make podman-build podman-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.7"
296+
$ make podman-build podman-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.8"
296297
...
297298
Successfully built 4a88ba8e6426
298-
Successfully tagged sec-eng-special/tang-operator:v1.0.7
299-
podman push sec-eng-special/tang-operator:v1.0.7
299+
Successfully tagged sec-eng-special/tang-operator:v1.0.8
300+
podman push sec-eng-special/tang-operator:v1.0.8
300301
The push refers to repository [quay.io/sec-eng-special/tang-operator]
301-
7910991.0.7a: Pushed
302+
7910991.0.8a: Pushed
302303
417cb9b79ade: Layer already exists
303-
v1.0.7: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
304+
v1.0.8: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
304305
```
305306

306307
- <ins>Bundle push</ins>:
@@ -310,15 +311,15 @@ the bundle with **make bundle**, specifying appropriate image,
310311
and push it with **make bundle-build bundle-push**:
311312

312313
```bash
313-
$ make bundle IMG="quay.io/sec-eng-special/tang-operator:v1.0.7"
314-
$ make bundle-build bundle-push BUNDLE_IMG="quay.io/sec-eng-special/tang-operator-bundle:v1.0.7"
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"
315316
...
316-
docker push sec-eng-special/tang-operator-bundle:v1.0.7
317+
docker push sec-eng-special/tang-operator-bundle:v1.0.8
317318
The push refers to repository [quay.io/sec-eng-special/tang-operator-bundle]
318319
02e3768cfc56: Pushed
319320
df0c8060d328: Pushed
320321
84774958bcf4: Pushed
321-
v1.0.7: digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
322+
v1.0.8: digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
322323
make[1]: Leaving directory '/home/user/RedHat/TASKS/TANG_OPERATOR/tang-operator'
323324
```
324325

@@ -327,15 +328,15 @@ In case the operator bundle is required to be pushed, generate the bundle with *
327328
specifying appropriate image, and push it with **make podman-bundle-build podman-bundle-push**:
328329

329330
```bash
330-
$ make bundle IMG="quay.io/sec-eng-special/tang-operator:v1.0.7"
331-
$ make podman-bundle-build podman-bundle-push BUNDLE_IMG="quay.io/sarroutb/tang-operator-bundle:v1.0.7"
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"
332333
...
333-
podman push sec-eng-special/tang-operator-bundle:v1.0.7
334+
podman push sec-eng-special/tang-operator-bundle:v1.0.8
334335
The push refers to repository [quay.io/sec-eng-special/tang-operator-bundle]
335336
02e3768cfc56: Pushed
336337
df0c8060d328: Pushed
337338
84774958bcf4: Pushed
338-
v1.0.7: digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
339+
v1.0.8: digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
339340
make[1]: Leaving directory '/home/user/RedHat/TASKS/TANG_OPERATOR/tang-operator'
340341
```
341342

@@ -375,15 +376,15 @@ In order to cross compile tang-operator, prepend **GOARCH** with required archit
375376
**make docker-build**:
376377

377378
```bash
378-
$ GOARCH=ppc64le make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.7"
379+
$ GOARCH=ppc64le make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.8"
379380
...
380381
Successfully built 4a88ba8e6426
381-
Successfully tagged sec-eng-special/tang-operator:v1.0.7
382-
docker push sec-eng-special/tang-operator:v1.0.7
382+
Successfully tagged sec-eng-special/tang-operator:v1.0.8
383+
docker push sec-eng-special/tang-operator:v1.0.8
383384
The push refers to repository [quay.io/sec-eng-special/tang-operator]
384-
7910991.0.7a: Pushed
385+
7910991.0.8a: Pushed
385386
417cb9b79ade: Layer already exists
386-
v1.0.7: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
387+
v1.0.8: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
387388
```
388389
Examples of architectures to cross-compile are:
389390
* `ppc64le`
@@ -400,9 +401,9 @@ recommended way:
400401

401402
```bash
402403
$ operator-sdk cleanup tang-operator
403-
INFO[0001] subscription "tang-operator-v1.0.7-sub" deleted
404+
INFO[0001] subscription "tang-operator-v1.0.8-sub" deleted
404405
INFO[0001] customresourcedefinition "tangservers.daemons.redhat.com" deleted
405-
INFO[0002] clusterserviceversion "tang-operator.v1.0.7" deleted
406+
INFO[0002] clusterserviceversion "tang-operator.v1.0.8" deleted
406407
INFO[0002] catalogsource "tang-operator-catalog" deleted
407408
INFO[0002] operatorgroup "operator-sdk-og" deleted
408409
INFO[0002] Operator "tang-operator" uninstalled
@@ -492,7 +493,7 @@ However, scorecard tests can be executed manually. In order to execute these tes
492493
run next command:
493494

494495
```bash
495-
$ operator-sdk scorecard -w 60s quay.io/sec-eng-special/tang-operator-bundle:v1.0.7
496+
$ operator-sdk scorecard -w 60s quay.io/sec-eng-special/tang-operator-bundle:v1.0.8
496497
...
497498
Results:
498499
Name: olm-status-descriptors
@@ -519,7 +520,7 @@ Name: olm-bundle-validation
519520
State: pass
520521
```
521522

522-
As it can be observed, execution of operator-sdk scorecard tests are passing successfully in latest released version (v1.0.7).
523+
As it can be observed, execution of operator-sdk scorecard tests are passing successfully in latest released version (v1.0.8).
523524

524525
## Links
525526

bundle/manifests/tang-operator.clusterserviceversion.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ metadata:
2525
}
2626
]
2727
capabilities: Basic Install
28-
createdAt: "2024-03-26T11:07:45Z"
28+
createdAt: "2024-03-28T10:31:23Z"
2929
operators.operatorframework.io/builder: operator-sdk-v1.33.0
3030
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
31-
name: tang-operator.v1.0.7
31+
name: tang-operator.v1.0.8
3232
namespace: placeholder
3333
spec:
3434
apiservicedefinitions: {}
@@ -328,7 +328,7 @@ spec:
328328
- --leader-elect
329329
command:
330330
- /manager
331-
image: quay.io/sec-eng-special/tang-operator:v1.0.7
331+
image: quay.io/sec-eng-special/tang-operator:v1.0.8
332332
livenessProbe:
333333
httpGet:
334334
path: /healthz
@@ -411,4 +411,4 @@ spec:
411411
maturity: alpha
412412
provider:
413413
name: Red Hat
414-
version: 1.0.7
414+
version: 1.0.8

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ kind: Kustomization
1313
images:
1414
- name: controller
1515
newName: quay.io/sec-eng-special/tang-operator
16-
newTag: v1.0.7
16+
newTag: v1.0.8

0 commit comments

Comments
 (0)