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

Commit

Permalink
Release GA candidate version (1.0.4) (#195)
Browse files Browse the repository at this point in the history
Resolves: #194

Signed-off-by: Sergio Arroutbi <[email protected]>
  • Loading branch information
sarroutbi authored Oct 20, 2023
1 parent 8415013 commit e5b96dd
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 50 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
VERSION ?= 1.0.3
VERSION ?= 1.0.4

# CHANNELS define the bundle channels used in the bundle.
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
Expand Down
81 changes: 41 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Tang operator-bundle are:
- v1.0.1: new GA release candidate. Update Go version (1.16->1.21) and dependencies
- v1.0.2: new GA release candidate. Fix CVE-2023-39325
- v1.0.3: new GA release candidate. Update all mods to latest version
- v1.0.4: new GA release candidate. Adjust to naming conventions

## Installation

Expand All @@ -107,23 +108,23 @@ operator-sdk installation is described in the [Links](#links) section.

In order to deploy the latest version of the Tang operator, check latest released
version in the [Versions](#versions) section, and install the appropriate version
bundle. For example, in case latest version is **1.0.3**, the command to execute
bundle. For example, in case latest version is **1.0.4**, the command to execute
will be:

```bash
$ operator-sdk run bundle quay.io/sec-eng-special/tang-operator-bundle:v1.0.3 --index-image=quay.io/operator-framework/opm:v1.23.0
INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.3
$ operator-sdk run bundle quay.io/sec-eng-special/tang-operator-bundle:v1.0.4 --index-image=quay.io/operator-framework/opm:v1.23.0
INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.4
INFO[0009] Created CatalogSource: tang-operator-catalog
INFO[0009] OperatorGroup "operator-sdk-og" created
INFO[0009] Created Subscription: tang-operator-v1.0.3-sub
INFO[0011] Approved InstallPlan install-lqf9f for the Subscription: tang-operator-v1.0.3-sub
INFO[0009] Created Subscription: tang-operator-v1.0.4-sub
INFO[0011] Approved InstallPlan install-lqf9f for the Subscription: tang-operator-v1.0.4-sub
INFO[0011] Waiting for ClusterServiceVersion to reach 'Succeeded' phase
INFO[0012] Waiting for ClusterServiceVersion "default/tang-operator.v1.0.3"
INFO[0018] Found ClusterServiceVersion "default/tang-operator.v1.0.3" phase: Pending
INFO[0020] Found ClusterServiceVersion "default/tang-operator.v1.0.3" phase: InstallReady
INFO[0021] Found ClusterServiceVersion "default/tang-operator.v1.0.3" phase: Installing
INFO[0031] Found ClusterServiceVersion "default/tang-operator.v1.0.3" phase: Succeeded
INFO[0031] OLM has successfully installed "tang-operator.v1.0.3"
INFO[0012] Waiting for ClusterServiceVersion "default/tang-operator.v1.0.4"
INFO[0018] Found ClusterServiceVersion "default/tang-operator.v1.0.4" phase: Pending
INFO[0020] Found ClusterServiceVersion "default/tang-operator.v1.0.4" phase: InstallReady
INFO[0021] Found ClusterServiceVersion "default/tang-operator.v1.0.4" phase: Installing
INFO[0031] Found ClusterServiceVersion "default/tang-operator.v1.0.4" phase: Succeeded
INFO[0031] OLM has successfully installed "tang-operator.v1.0.4"
```
To install latest multi-arch image, execute:
```bash
Expand All @@ -139,10 +140,10 @@ your cluster takes long time to deploy. To do so, the option **--timeout** can b
used (if not used, default time is 2m, which stands for two minutes):

```bash
$ operator-sdk run bundle --timeout 3m quay.io/sec-eng-special/tang-operator-bundle:v1.0.3 --index-image=quay.io/operator-framework/opm:v1.23.0
INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.3
$ operator-sdk run bundle --timeout 3m quay.io/sec-eng-special/tang-operator-bundle:v1.0.4 --index-image=quay.io/operator-framework/opm:v1.23.0
INFO[0008] Successfully created registry pod: quay-io-sec-eng-special-tang-operator-bundle-v1.0.4
...
INFO[0031] OLM has successfully installed "tang-operator.v1.0.3"
INFO[0031] OLM has successfully installed "tang-operator.v1.0.4"
```

Additionally, correct Tang operator installation can be observed if an output like
Expand All @@ -152,7 +153,7 @@ the following is observed when prompting for installed pods:
$ oc get pods
NAME READY STATUS RESTARTS AGE
dbbd1837106ec169542546e7ad251b95d27c3542eb0409c1e 0/1 Completed 0 82s
quay-io-tang-operator-bundle-v1.0.3 1/1 Running 0 90s
quay-io-tang-operator-bundle-v1.0.4 1/1 Running 0 90s
tang-operator-controller-manager-5c9488d8dd-mgmsf 2/2 Running 0 52s
```

Expand Down Expand Up @@ -199,19 +200,19 @@ to be released, it is recommended to increase version appropriately.
In this case, same version is used. Last released version can be observed in
[Versions](#versions) section.

To summarize, taking into account that the last released version is **v1.0.3**,
To summarize, taking into account that the last released version is **v1.0.4**,
compilation can be done with next command:

```bash
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.3"
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.4"
...
Successfully built 4a88ba8e6426
Successfully tagged sec-eng-special/tang-operator:v1.0.3
docker push sec-eng-special/tang-operator:v1.0.3
Successfully tagged sec-eng-special/tang-operator:v1.0.4
docker push sec-eng-special/tang-operator:v1.0.4
The push refers to repository [quay.io/sec-eng-special/tang-operator]
79109912085a: Pushed
417cb9b79ade: Layer already exists
v1.0.3: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
v1.0.4: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
```

In case a new release is planned to be done, the steps to follow will be:
Expand All @@ -227,15 +228,15 @@ index 9a41c6a..db12a82 100644
@@ -3,7 +3,7 @@
# To re-generate a bundle for another specific version without changing the
# standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=1.0.3)
# - use environment variables to overwrite this value (e.g export VERSION=1.0.3)
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=1.0.4)
# - use environment variables to overwrite this value (e.g export VERSION=1.0.4)
-VERSION ?= 0.0.27
+VERSION ?= 1.0.3
+VERSION ?= 1.0.4
```

Apart from previous changes, it is recommended to generate a "latest" tag for tang-operator bundle:
```bash
$ docker tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.3 quay.io/sec-eng-special/tang-operator-bundle:latest
$ docker tag quay.io/sec-eng-special/tang-operator-bundle:v1.0.4 quay.io/sec-eng-special/tang-operator-bundle:latest
$ docker push quay.io/sec-eng-special/tang-operator-bundle:latest
```

Expand All @@ -245,14 +246,14 @@ Compile Tang operator code, specifying new version,
by using **make docker-build** command:

```bash
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.3"
$ make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.4"
...
Successfully tagged sec-eng-special/tang-operator:v1.0.3
docker push sec-eng-special/tang-operator:v1.0.3
Successfully tagged sec-eng-special/tang-operator:v1.0.4
docker push sec-eng-special/tang-operator:v1.0.4
The push refers to repository [quay.io/sec-eng-special/tang-operator]
9ff8a4099c67: Pushed
417cb9b79ade: Layer already exists
v1.0.3: digest: sha256:01620ab19faae54fb382a2ff285f589cf0bde6e168f14f07 size: 739
v1.0.4: digest: sha256:01620ab19faae54fb382a2ff285f589cf0bde6e168f14f07 size: 739
```

- <ins>Bundle push</ins>:
Expand All @@ -262,15 +263,15 @@ the bundle with **make bundle**, specifying appropriate image,
and push it with **make bundle-build bundle-push**:

```bash
$ make bundle IMG="quay.io/sec-eng-special/tang-operator:v1.0.3"
$ make bundle-build bundle-push BUNDLE_IMG="quay.io/sec-eng-special/tang-operator-bundle:v1.0.3"
$ make bundle IMG="quay.io/sec-eng-special/tang-operator:v1.0.4"
$ make bundle-build bundle-push BUNDLE_IMG="quay.io/sec-eng-special/tang-operator-bundle:v1.0.4"
...
docker push sec-eng-special/tang-operator-bundle:v1.0.3
docker push sec-eng-special/tang-operator-bundle:v1.0.4
The push refers to repository [quay.io/sec-eng-special/tang-operator-bundle]
02e3768cfc56: Pushed
df0c8060d328: Pushed
84774958bcf4: Pushed
v1.0.3: digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
v1.0.4: digest: sha256:925c2f844f941db2b53ce45cba9db7ee0be613321da8f0f05d size: 939
make[1]: Leaving directory '/home/user/RedHat/TASKS/TANG_OPERATOR/tang-operator'
```

Expand Down Expand Up @@ -310,15 +311,15 @@ In order to cross compile tang-operator, prepend **GOARCH** with required archit
**make docker-build**:

```bash
$ GOARCH=ppc64le make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.3"
$ GOARCH=ppc64le make docker-build docker-push IMG="quay.io/sec-eng-special/tang-operator:v1.0.4"
...
Successfully built 4a88ba8e6426
Successfully tagged sec-eng-special/tang-operator:v1.0.3
docker push sec-eng-special/tang-operator:v1.0.3
Successfully tagged sec-eng-special/tang-operator:v1.0.4
docker push sec-eng-special/tang-operator:v1.0.4
The push refers to repository [quay.io/sec-eng-special/tang-operator]
79109912085a: Pushed
417cb9b79ade: Layer already exists
v1.0.3: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
v1.0.4: digest: sha256:c97bed08ab71556542602b008888bdf23ce4afd86228a07 size: 739
```

## Cleanup
Expand All @@ -328,9 +329,9 @@ recommended way:

```bash
$ operator-sdk cleanup tang-operator
INFO[0001] subscription "tang-operator-v1.0.3-sub" deleted
INFO[0001] subscription "tang-operator-v1.0.4-sub" deleted
INFO[0001] customresourcedefinition "tangservers.daemons.redhat.com" deleted
INFO[0002] clusterserviceversion "tang-operator.v1.0.3" deleted
INFO[0002] clusterserviceversion "tang-operator.v1.0.4" deleted
INFO[0002] catalogsource "tang-operator-catalog" deleted
INFO[0002] operatorgroup "operator-sdk-og" deleted
INFO[0002] Operator "tang-operator" uninstalled
Expand Down Expand Up @@ -401,11 +402,11 @@ NOTE: CI/CD is in a continuous "work in progress" state

## Scorecard

Execution of operator-sdk scorecard tests are passing completely in version v1.0.3.
Execution of operator-sdk scorecard tests are passing completely in version v1.0.4.
In order to execute these tests, run next command:

```bash
$ operator-sdk scorecard -w 60s quay.io/sec-eng-special/tang-operator-bundle:v1.0.3
$ operator-sdk scorecard -w 60s quay.io/sec-eng-special/tang-operator-bundle:v1.0.4
...
Results:
Name: olm-status-descriptors
Expand Down
12 changes: 6 additions & 6 deletions bundle/manifests/tang-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2023-10-20T14:06:30Z"
createdAt: "2023-10-20T19:27:44Z"
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
name: tang-operator.v1.0.3
name: tang-operator.v1.0.4
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -176,8 +176,8 @@ spec:
x-descriptors:
- urn:alm:descriptor:text
version: v1alpha1
description: "NBDE Tang Server operator allows Tang Server deployment on OpenShift"
displayName: "NBDE Tang Server"
description: NBDE Tang Server operator allows Tang Server deployment on OpenShift
displayName: NBDE Tang Server
icon:
- base64data: iVBORw0KGgoAAAANSUhEUgAAAH0AAAB9CAYAAAH4h1yzAAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UHDQ04D0XvFmUAAAShSURBVHja7Zy/bxtlHIc/753j2nEbV2kSHFqgqcqAEFQtUqUKWJAQSLCx8B+AxMAAaiXWLjDARiUWJkZGkMoIgiKBIkWlC1IpJch1Eye4udSxE5/vZUio3MY2/nX2+fI8UqXoWuf1836+9957d29f4/u+VR8kHj3w3Xs3//dDr31++sHPjvqk719g+u2D0SvEIIVEu7988ZPcg59/unR3SN/ANBzZuLXT9HjHhdSYSGPPR6uUzUDHg06q8OwHM5o7dZTxILRSHs8UWo4HL382r6C2G9CPlw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fpzMmc7wDoQOhA6EDoQOhA6EDoQOhA7DZGibEqzevid/MwitdO8Xalr5taJ62YbyiLRWCTR7JqXZ51MyrpFC6DUnaTRzKia7QEvS3MlwdzbO19cV+IGqa4GMO/jf71esJiYdHT9zjOEdCB0IHQgdCB0IHQgdCB0IHXonERcR4xolM67qWcmEUMpu0spNxWNHBTYEZniHg8C/TaaTP8oei14AAAAASUVORK5CYII=
mediatype: image/png
Expand Down Expand Up @@ -321,7 +321,7 @@ spec:
- --leader-elect
command:
- /manager
image: quay.io/sec-eng-special/tang-operator:v1.0.3
image: quay.io/sec-eng-special/tang-operator:v1.0.4
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -404,4 +404,4 @@ spec:
maturity: alpha
provider:
name: Red Hat
version: 1.0.3
version: 1.0.4
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ kind: Kustomization
images:
- name: controller
newName: quay.io/sec-eng-special/tang-operator
newTag: v1.0.3
newTag: v1.0.4
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ spec:
x-descriptors:
- urn:alm:descriptor:text
version: v1alpha1
description: "NBDE Tang Server operator allows Tang Server deployment on OpenShift"
displayName: "NBDE Tang Server"
description: NBDE Tang Server operator allows Tang Server deployment on OpenShift
displayName: NBDE Tang Server
icon:
- base64data: iVBORw0KGgoAAAANSUhEUgAAAH0AAAB9CAYAAAH4h1yzAAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UHDQ04D0XvFmUAAAShSURBVHja7Zy/bxtlHIc/753j2nEbV2kSHFqgqcqAEFQtUqUKWJAQSLCx8B+AxMAAaiXWLjDARiUWJkZGkMoIgiKBIkWlC1IpJch1Eye4udSxE5/vZUio3MY2/nX2+fI8UqXoWuf1836+9957d29f4/u+VR8kHj3w3Xs3//dDr31++sHPjvqk719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iHXvV25P1ZYwl0u8z3lkDPPJNieAdCB0IHQgdCB0IHQid0IHQgdIgViThI2LpVei6hJ17NKHc+o6A22AW+xjWqrPm6fdXT2lJVxpqxfpzMmc7wDoQOhA6EDoQOhA6EDoQOhA7DZGibEqzevid/MwitdO8Xalr5taJ62YbyiLRWCTR7JqXZ51MyrpFC6DUnaTRzKia7QEvS3MlwdzbO19cV+IGqa4GMO/jf71esJiYdHT9zjOEdCB0IHQgdCB0IHQgdCB0IHXonERcR4xolM67qWcmEUMpu0spNxWNHBTYEZniHg8C/TaaTP8oei14AAAAASUVORK5CYII=
mediatype: image/png
Expand Down

0 comments on commit e5b96dd

Please sign in to comment.