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

Commit 46f0645

Browse files
authored
Release 1.0.2 (#188)
Resolves: #187 Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
1 parent 6c29eea commit 46f0645

13 files changed

+53
-58
lines changed

.wordlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ CLI
22
CodeReady
33
CRC
44
CRD
5+
CVE
6+
cve
57
finalizer
68
finalizers
79
Github

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.1
6+
VERSION ?= 1.0.2
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: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Tang operator-bundle are:
8484
- v0.0.28: Code refactor
8585
- v1.0.0: GA release candidate
8686
- v1.0.1: new GA release candidate. Update Go version (1.16->1.21) and dependencies
87+
- v1.0.2: new GA release candidate. Fix CVE-2023-39325
8788

8889
## Installation
8990

@@ -105,23 +106,23 @@ operator-sdk installation is described in the [Links](#links) section.
105106

106107
In order to deploy the latest version of the Tang operator, check latest released
107108
version in the [Versions](#versions) section, and install the appropriate version
108-
bundle. For example, in case latest version is **1.0.1**, the command to execute
109+
bundle. For example, in case latest version is **1.0.2**, the command to execute
109110
will be:
110111

111112
```bash
112-
$ operator-sdk run bundle quay.io/sec-eng-special/tang-operator-bundle:v1.0.1 --index-image=quay.io/operator-framework/opm:v1.23.0
113-
INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.1
113+
$ operator-sdk run bundle quay.io/sec-eng-special/tang-operator-bundle:v1.0.2 --index-image=quay.io/operator-framework/opm:v1.23.0
114+
INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.2
114115
INFO[0009] Created CatalogSource: tang-operator-catalog
115116
INFO[0009] OperatorGroup "operator-sdk-og" created
116-
INFO[0009] Created Subscription: tang-operator-v1.0.1-sub
117-
INFO[0011] Approved InstallPlan install-lqf9f for the Subscription: tang-operator-v1.0.1-sub
117+
INFO[0009] Created Subscription: tang-operator-v1.0.2-sub
118+
INFO[0011] Approved InstallPlan install-lqf9f for the Subscription: tang-operator-v1.0.2-sub
118119
INFO[0011] Waiting for ClusterServiceVersion to reach 'Succeeded' phase
119-
INFO[0012] Waiting for ClusterServiceVersion "default/tang-operator.v1.0.1"
120-
INFO[0018] Found ClusterServiceVersion "default/tang-operator.v1.0.1" phase: Pending
121-
INFO[0020] Found ClusterServiceVersion "default/tang-operator.v1.0.1" phase: InstallReady
122-
INFO[0021] Found ClusterServiceVersion "default/tang-operator.v1.0.1" phase: Installing
123-
INFO[0031] Found ClusterServiceVersion "default/tang-operator.v1.0.1" phase: Succeeded
124-
INFO[0031] OLM has successfully installed "tang-operator.v1.0.1"
120+
INFO[0012] Waiting for ClusterServiceVersion "default/tang-operator.v1.0.2"
121+
INFO[0018] Found ClusterServiceVersion "default/tang-operator.v1.0.2" phase: Pending
122+
INFO[0020] Found ClusterServiceVersion "default/tang-operator.v1.0.2" phase: InstallReady
123+
INFO[0021] Found ClusterServiceVersion "default/tang-operator.v1.0.2" phase: Installing
124+
INFO[0031] Found ClusterServiceVersion "default/tang-operator.v1.0.2" phase: Succeeded
125+
INFO[0031] OLM has successfully installed "tang-operator.v1.0.2"
125126
```
126127
To install latest multi-arch image, execute:
127128
```bash
@@ -137,10 +138,10 @@ your cluster takes long time to deploy. To do so, the option **--timeout** can b
137138
used (if not used, default time is 2m, which stands for two minutes):
138139

139140
```bash
140-
$ operator-sdk run bundle --timeout 3m quay.io/sec-eng-special/tang-operator-bundle:v1.0.1 --index-image=quay.io/operator-framework/opm:v1.23.0
141-
INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.1
141+
$ operator-sdk run bundle --timeout 3m quay.io/sec-eng-special/tang-operator-bundle:v1.0.2 --index-image=quay.io/operator-framework/opm:v1.23.0
142+
INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.2
142143
...
143-
INFO[0031] OLM has successfully installed "tang-operator.v1.0.1"
144+
INFO[0031] OLM has successfully installed "tang-operator.v1.0.2"
144145
```
145146

146147
Additionally, correct Tang operator installation can be observed if an output like
@@ -150,7 +151,7 @@ the following is observed when prompting for installed pods:
150151
$ oc get pods
151152
NAME READY STATUS RESTARTS AGE
152153
dbbd1837106ec169542546e7ad251b95d27c3542eb0409c1e 0/1 Completed 0 82s
153-
quay-io-tang-operator-bundle-v1.0.1 1/1 Running 0 90s
154+
quay-io-tang-operator-bundle-v1.0.2 1/1 Running 0 90s
154155
tang-operator-controller-manager-5c9488d8dd-mgmsf 2/2 Running 0 52s
155156
```
156157

@@ -197,19 +198,19 @@ to be released, it is recommended to increase version appropriately.
197198
In this case, same version is used. Last released version can be observed in
198199
[Versions](#versions) section.
199200

200-
To summarize, taking into account that the last released version is **v1.0.1**,
201+
To summarize, taking into account that the last released version is **v1.0.2**,
201202
compilation can be done with next command:
202203

203204
```bash
204-
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.1"
205+
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.2"
205206
...
206207
Successfully built 4a88ba8e6426
207-
Successfully tagged sec-eng-special/tang-operator:v1.0.1
208-
docker push sec-eng-special/tang-operator:v1.0.1
208+
Successfully tagged sec-eng-special/tang-operator:v1.0.2
209+
docker push sec-eng-special/tang-operator:v1.0.2
209210
The push refers to repository [quay.io/sec-eng-special/tang-operator]
210211
79109912085a: Pushed
211212
417cb9b79ade: Layer already exists
212-
v1.0.1: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
213+
v1.0.2: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
213214
```
214215

215216
In case a new release is planned to be done, the steps to follow will be:
@@ -225,15 +226,15 @@ index 9a41c6a..db12a82 100644
225226
@@ -3,7 +3,7 @@
226227
# To re-generate a bundle for another specific version without changing the
227228
# standard setup, you can:
228-
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=1.0.1)
229-
# - use environment variables to overwrite this value (e.g export VERSION=1.0.1)
229+
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=1.0.2)
230+
# - use environment variables to overwrite this value (e.g export VERSION=1.0.2)
230231
-VERSION ?= 0.0.27
231-
+VERSION ?= 1.0.1
232+
+VERSION ?= 1.0.2
232233
```
233234

234235
Apart from previous changes, it is recommended to generate a "latest" tag for tang-operator bundle:
235236
```bash
236-
$ docker tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.1 quay.io/sec-eng-special/tang-operator-bundle:latest
237+
$ docker tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.2 quay.io/sec-eng-special/tang-operator-bundle:latest
237238
$ docker push quay.io/sec-eng-special/tang-operator-bundle:latest
238239
```
239240

@@ -243,14 +244,14 @@ Compile Tang operator code, specifying new version,
243244
by using **make docker-build** command:
244245

245246
```bash
246-
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.1"
247+
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.2"
247248
...
248-
Successfully tagged sec-eng-special/tang-operator:v1.0.1
249-
docker push sec-eng-special/tang-operator:v1.0.1
249+
Successfully tagged sec-eng-special/tang-operator:v1.0.2
250+
docker push sec-eng-special/tang-operator:v1.0.2
250251
The push refers to repository [quay.io/sec-eng-special/tang-operator]
251252
9ff8a4099c67: Pushed
252253
417cb9b79ade: Layer already exists
253-
v1.0.1: digest: sha256:01620ab19faae54fb382a2ff285f589cf0bde6e168f14f07 size: 739
254+
v1.0.2: digest: sha256:01620ab19faae54fb382a2ff285f589cf0bde6e168f14f07 size: 739
254255
```
255256

256257
- <ins>Bundle push</ins>:
@@ -260,15 +261,15 @@ the bundle with **make bundle**, specifying appropriate image,
260261
and push it with **make bundle-build bundle-push**:
261262

262263
```bash
263-
$ make bundle IMG="quay.io/sec-eng-special/tang-operator:v1.0.1"
264-
$ make bundle-build bundle-push BUNDLE_IMG="quay.io/sec-eng-special/tang-operator-bundle:v1.0.1"
264+
$ make bundle IMG="quay.io/sec-eng-special/tang-operator:v1.0.2"
265+
$ make bundle-build bundle-push BUNDLE_IMG="quay.io/sec-eng-special/tang-operator-bundle:v1.0.2"
265266
...
266-
docker push sec-eng-special/tang-operator-bundle:v1.0.1
267+
docker push sec-eng-special/tang-operator-bundle:v1.0.2
267268
The push refers to repository [quay.io/sec-eng-special/tang-operator-bundle]
268269
02e3768cfc56: Pushed
269270
df0c8060d328: Pushed
270271
84774958bcf4: Pushed
271-
v1.0.1: digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
272+
v1.0.2: digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
272273
make[1]: Leaving directory '/home/user/RedHat/TASKS/TANG_OPERATOR/tang-operator'
273274
```
274275

@@ -308,15 +309,15 @@ In order to cross compile tang-operator, prepend **GOARCH** with required archit
308309
**make docker-build**:
309310

310311
```bash
311-
$ GOARCH=ppc64le make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.1"
312+
$ GOARCH=ppc64le make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.2"
312313
...
313314
Successfully built 4a88ba8e6426
314-
Successfully tagged sec-eng-special/tang-operator:v1.0.1
315-
docker push sec-eng-special/tang-operator:v1.0.1
315+
Successfully tagged sec-eng-special/tang-operator:v1.0.2
316+
docker push sec-eng-special/tang-operator:v1.0.2
316317
The push refers to repository [quay.io/sec-eng-special/tang-operator]
317318
79109912085a: Pushed
318319
417cb9b79ade: Layer already exists
319-
v1.0.1: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
320+
v1.0.2: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
320321
```
321322

322323
## Cleanup
@@ -326,9 +327,9 @@ recommended way:
326327

327328
```bash
328329
$ operator-sdk cleanup tang-operator
329-
INFO[0001] subscription "tang-operator-v1.0.1-sub" deleted
330+
INFO[0001] subscription "tang-operator-v1.0.2-sub" deleted
330331
INFO[0001] customresourcedefinition "tangservers.daemons.redhat.com" deleted
331-
INFO[0002] clusterserviceversion "tang-operator.v1.0.1" deleted
332+
INFO[0002] clusterserviceversion "tang-operator.v1.0.2" deleted
332333
INFO[0002] catalogsource "tang-operator-catalog" deleted
333334
INFO[0002] operatorgroup "operator-sdk-og" deleted
334335
INFO[0002] Operator "tang-operator" uninstalled
@@ -399,11 +400,11 @@ NOTE: CI/CD is in a continuous "work in progress" state
399400

400401
## Scorecard
401402

402-
Execution of operator-sdk scorecard tests are passing completely in version v1.0.1.
403+
Execution of operator-sdk scorecard tests are passing completely in version v1.0.2.
403404
In order to execute these tests, run next command:
404405

405406
```bash
406-
$ operator-sdk scorecard -w 60s quay.io/sec-eng-special/tang-operator-bundle:v1.0.1
407+
$ operator-sdk scorecard -w 60s quay.io/sec-eng-special/tang-operator-bundle:v1.0.2
407408
...
408409
Results:
409410
Name: olm-status-descriptors

bundle.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
66
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
77
LABEL operators.operatorframework.io.bundle.package.v1=tang-operator
88
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
9-
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.28.1
9+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.32.0
1010
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
1111
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
1212

bundle/manifests/daemons.redhat.com_tangservers.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: apiextensions.k8s.io/v1
32
kind: CustomResourceDefinition
43
metadata:

bundle/manifests/tang-operator-controller-manager-metrics-service_v1_service.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: v1
32
kind: Service
43
metadata:

bundle/manifests/tang-operator-manager-config_v1_configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
---
21
apiVersion: v1
32
data:
43
controller_manager_config.yaml: |
4+
---
55
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
66
kind: ControllerManagerConfig
77
health:

bundle/manifests/tang-operator-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: rbac.authorization.k8s.io/v1
32
kind: ClusterRole
43
metadata:

bundle/manifests/tang-operator.clusterserviceversion.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: operators.coreos.com/v1alpha1
32
kind: ClusterServiceVersion
43
metadata:
@@ -26,10 +25,10 @@ metadata:
2625
}
2726
]
2827
capabilities: Basic Install
29-
createdAt: "2023-10-09T13:22:34Z"
30-
operators.operatorframework.io/builder: operator-sdk-v1.28.1
28+
createdAt: "2023-10-20T11:58:09Z"
29+
operators.operatorframework.io/builder: operator-sdk-v1.32.0
3130
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
32-
name: tang-operator.v1.0.1
31+
name: tang-operator.v1.0.2
3332
namespace: placeholder
3433
spec:
3534
apiservicedefinitions: {}
@@ -322,7 +321,7 @@ spec:
322321
- --leader-elect
323322
command:
324323
- /manager
325-
image: quay.io/sec-eng-special/tang-operator:v1.0.1
324+
image: quay.io/sec-eng-special/tang-operator:v1.0.2
326325
livenessProbe:
327326
httpGet:
328327
path: /healthz
@@ -405,4 +404,4 @@ spec:
405404
maturity: alpha
406405
provider:
407406
name: Red Hat
408-
version: 1.0.1
407+
version: 1.0.2

bundle/metadata/annotations.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
---
21
annotations:
32
# Core bundle annotations.
43
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
54
operators.operatorframework.io.bundle.manifests.v1: manifests/
65
operators.operatorframework.io.bundle.metadata.v1: metadata/
76
operators.operatorframework.io.bundle.package.v1: tang-operator
87
operators.operatorframework.io.bundle.channels.v1: alpha
9-
operators.operatorframework.io.metrics.builder: operator-sdk-v1.28.1
8+
operators.operatorframework.io.metrics.builder: operator-sdk-v1.32.0
109
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
1110
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3
1211

bundle/tests/scorecard/config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: scorecard.operatorframework.io/v1alpha3
32
kind: Configuration
43
metadata:

config/manager/kustomization.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
resources:
32
- manager.yaml
43

@@ -14,4 +13,4 @@ kind: Kustomization
1413
images:
1514
- name: controller
1615
newName: quay.io/sec-eng-special/tang-operator
17-
newTag: v1.0.1
16+
newTag: v1.0.2

config/manifests/bases/tang-operator.clusterserviceversion.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: operators.coreos.com/v1alpha1
32
kind: ClusterServiceVersion
43
metadata:

0 commit comments

Comments
 (0)