Skip to content

Commit fe6a946

Browse files
authored
cleanup: remove unused properties (and scripts) (#109)
1 parent c472a3f commit fe6a946

4 files changed

Lines changed: 4 additions & 124 deletions

File tree

olm/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ To generate the manifests for the secret operator version 24.11.1, run:
3636
```
3737

3838
Where:
39+
3940
- `-r <release>`: the release number (mandatory). This must be a semver-compatible value to patch-level e.g. 23.1.0.
4041
- `-c <manifest folder>`: the output folder for the manifest files
4142
- `-o <operator-dir>`: directory of the operator repository
@@ -54,15 +55,14 @@ Similarly for the listener operator run:
5455
./olm/build-manifests.py \
5556
--openshift-versions 'v4.14-v4.16' \
5657
--release 24.11.1 \
57-
--skips 24.7.0 \
5858
--repo-operator ~/repo/stackable/hbase-operator
5959
```
6060

6161
See `./olm/build-manifests.py --help` for the description of command line arguments.
6262

6363
# Build and Install Bundles
6464

65-
Operator bundles are needed to test the OLM manifests but *not needed* for the operator certification.
65+
Operator bundles are needed to test the OLM manifests but _not needed_ for the operator certification.
6666

6767
## Build bundles
6868

@@ -77,12 +77,14 @@ To build operator bundles run:
7777
```
7878

7979
Where:
80+
8081
- `-r <release>`: the release number (mandatory). This must be a semver-compatible value to patch-level e.g. 23.1.0.
8182
- `-c <manifest folder>`: the folder with the input OLM manifests for the bundle
8283
- `-o <operator-name>`: the operator name (mandatory) e.g. "airflow"
8384
- `-d`: Optional. Deploy the bundle. Default: false.
8485

8586
N.B. This action will push the bundles to `oci.stackable.tech` and requires that the user be logged in first. This can be done by copying the CLI token from the Harbor UI once you are logged in there (see under "Profile"), and then using this as the password when prompted on entering `docker login oci.stackabe.tech`.
87+
8688
## Operator upgrades
8789

8890
To test operator upgrades run `operator-sdk run bundle-upgrade` like this:

olm/build-manifests.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,6 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
6161
type=cli_parse_release,
6262
)
6363

64-
parser.add_argument(
65-
"--replaces",
66-
help="CSV version that is replaced by this release. Example: 23.11.0",
67-
type=cli_parse_release,
68-
)
69-
70-
parser.add_argument(
71-
"--skips",
72-
nargs="*",
73-
help="CSV versions that are skipped by this release. Example: 24.3.0",
74-
default=list(),
75-
type=cli_parse_release,
76-
)
77-
7864
parser.add_argument(
7965
"-o",
8066
"--repo-operator",
@@ -413,10 +399,6 @@ def generate_csv(
413399
)
414400

415401
result["spec"]["version"] = args.release
416-
result["spec"]["replaces"] = (
417-
f"{csv_name}.v{args.replaces}" if args.replaces else None
418-
)
419-
result["spec"]["skips"] = [f"{csv_name}.v{v}" for v in args.skips]
420402
result["spec"]["keywords"] = [args.product]
421403
result["spec"]["displayName"] = CSV_DISPLAY_NAME[args.product]
422404
result["metadata"]["name"] = f"{csv_name}.v{args.release}"

olm/multi-op-catalog.sh

Lines changed: 0 additions & 103 deletions
This file was deleted.

olm/resources/csv.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ spec:
4444
name: Stackable GmbH
4545
url: https://stackable.tech
4646
version: placeholder
47-
replaces: placeholder
4847
minKubeVersion: 1.23.0
4948

5049
installModes:

0 commit comments

Comments
 (0)