Skip to content

Commit 542f688

Browse files
authored
Merge branch 'master' into operator-metrics-2
2 parents d83075c + f4a3aa3 commit 542f688

File tree

175 files changed

+1538
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+1538
-61
lines changed

Makefile

+15
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,21 @@ e2e-tests-parallel:
122122
@echo "Running GitOps Operator parallel E2E tests..."
123123
. ./scripts/run-kuttl-tests.sh parallel
124124

125+
.PHONY: e2e-non-olm-tests-sequential
126+
e2e-non-olm-tests-sequential: ## Runs kuttl non-olm e2e sequentail tests
127+
@echo "Running Non-OLM GitOps Operator sequential E2E tests..."
128+
. ./hack/scripts/run-non-olm-kuttl-test.sh -t sequential
129+
130+
.PHONY: e2e-non-olm-tests-parallel ## Runs kuttl non-olm e2e parallel tests, (Defaults to 5 runs at a time)
131+
e2e-non-olm-tests-parallel:
132+
@echo "Running Non-OLM GitOps Operator parallel E2E tests..."
133+
. ./hack/scripts/run-non-olm-kuttl-test.sh -t parallel
134+
135+
.PHONY: e2e-non-olm-tests-all ## Runs kuttl non-olm e2e parallel tests, (Defaults to 5 runs at a time)
136+
e2e-non-olm-tests-all:
137+
@echo "Running Non-OLM GitOps Operator E2E tests..."
138+
. ./hack/scripts/run-non-olm-kuttl-test.sh -t all
139+
125140
##@ Build
126141

127142
build: generate fmt vet ## Build manager binary.

hack/non-olm-install/README.md

+38-9
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,25 @@
77
The `install-gitops-operator.sh` script supports two methods of installation.
88
1. Using operator and component images set as environment variables (default method)
99
2. Derive the operator and component images from the `ClusterServiceVersion` manifest present in the operator bundle
10-
**Note**: This method requires podman or docker binary to be available in the PATH environment variable. Use environment variables `USE_BUNDLE_IMG`, `BUNDLE_IMG` and `DOCKER` for this method of installation
10+
**Note**: Use environment variables `USE_BUNDLE_IMG`, `BUNDLE_IMG` for this method of installation
1111

1212

1313
### Known issues and work arounds
1414

15-
1. Missing RBAC access to update CRs in `argoproj.io` domain
15+
1. Missing RBAC access to update CRs in `argoproj.io` domain
1616

17-
Issue: (Now fixed)
17+
Affected versions:
18+
- 1.7.4 and older versions
19+
- 1.8.3 and older versions
1820

21+
Fixed versions:
22+
- 1.8.4 and later versions
23+
- 1.9.0 and later versions
24+
25+
Issue:
1926
https://github.com/redhat-developer/gitops-operator/issues/148
2027

2128
Workaround:
22-
2329
Run the following script to create the required `ClusterRole` and `ClusterRoleBinding`
2430

2531
```
@@ -32,7 +38,7 @@ ${KUBECTL} apply -f https://raw.githubusercontent.com/redhat-developer/gitops-op
3238
**Note**: If the above binaries are not present, the script installs them to temporary work directory and are removed once the script execution is complete.
3339
- bash (v5.0 or later)
3440
- git (v2.39.1 or later)
35-
- podman (v4.4.4 or later) or docker (Note: Required only if operator and component images need to be derived from a bundle image)
41+
- wget (v1.21.3 or later)
3642

3743
### Environment Variables
3844
The following environment variables can be set to configure various options for the installation/uninstallation process.
@@ -49,14 +55,14 @@ The following environment variables can be set to configure various options for
4955
| **IMAGE_PREFIX** | Prefix used for internal images from rh-osbs org in the registry which generally is prefixed with the target organization name | "" |
5056
| **USE_BUNDLE_IMG** | If the operator image and other component image needs to be derived from a bundle image, set this flag to true. | false |
5157
| **BUNDLE_IMG** | used only when USE_BUNDLE_IMG is set to true | `${OPERATOR_REGISTRY}/openshift-gitops-1/gitops-operator-bundle:${GITOPS_OPERATOR_VER}` |
52-
| **DOCKER** | used only when USE_BUNDLE_IMG is set to true. CLI binary to be used for extracting ClusterServiceVersion manifest from the Bundle Image | podman |
5358

5459
#### Variables for 3rd party tools used in the script
5560
| Environment | Description |Default Value |
5661
| ----------- | ----------- |------------- |
5762
| **KUSTOMIZE_VERSION** | Version of kustomize binary to be installed if not found in PATH | v4.5.7 |
5863
| **KUBECTL_VERSION** | Version of the kubectl client binary to be installed if not found in PATH | v1.26.0 |
5964
| **YQ_VERSION** | Version of the yq binary to be installed if not found in PATH | v4.31.2 |
65+
| **REGCTL_VERSION** | Version of the regctl binary to be installed if not found in PATH | v0.4.8 |
6066

6167
#### Variables for Component Image Overrides
6268
| Environment | Description |Default Value |
@@ -85,13 +91,14 @@ The following environment variables can be set to configure various options for
8591
#### Usage
8692

8793
```
88-
install-gitops-operator.sh [--install|-i] [--uninstall|-u] [--help|-h]
94+
install-gitops-operator.sh [--install|-i] [--uninstall|-u] [--migrate|-m] [--help|-h]
8995
```
9096

9197
| Option | Description |
9298
| -------| ----------- |
9399
| --install, -i | installs the openshift-gitops-operator if no previous version is found, else updates (upgrade/dowgrade) the existing operator |
94100
| --uninstall, -u | uninstalls the openshift-gitops-operator |
101+
| --migrate, -m | migrates from an OLM based installation to non OLM manifests based installation|
95102
| --help, -h | prints the help message |
96103

97104
#### Local Run
@@ -114,6 +121,17 @@ The below command installs the latest available openshift-gitops-operator versio
114121
./install-gitops-operator.sh --uninstall
115122
```
116123

124+
##### Migration
125+
To migrate from an OLM based installation to the latest version using non OLM manifests based installation, run the following command.
126+
```
127+
./install-gitops-operator.sh -m
128+
129+
```
130+
[or]
131+
```
132+
./install-gitops-operator.sh --migrate
133+
```
134+
117135
#### Running it from a remote URL
118136

119137
```
@@ -180,5 +198,16 @@ rm -f ${oldauth} ${newauth}
180198

181199
###### Install the nightly operator bundle
182200
```
183-
OPERATOR_REGISTRY=brew.registry.redhat.io OPERATOR_REGISTRY_ORG=rh-osbs GITOPS_OPERATOR_VER=v99.9.0-88 IMAGE_PREFIX="openshift-gitops-1-" ./install-gitops-operator.sh -i
184-
```
201+
OPERATOR_REGISTRY=brew.registry.redhat.io OPERATOR_REGISTRY_ORG=rh-osbs GITOPS_OPERATOR_VER=v99.9.0-<build_number> IMAGE_PREFIX="openshift-gitops-1-" ./install-gitops-operator.sh -i
202+
```
203+
204+
###### Uninstall the nightly operator bundle
205+
```
206+
./install-gitops-operator.sh -u
207+
```
208+
209+
##### Migrate from an OLM based install to non-OLM based installation (nightly-build)
210+
211+
```
212+
OPERATOR_REGISTRY=brew.registry.redhat.io OPERATOR_REGISTRY_ORG=rh-osbs IMAGE_PREFIX=openshift-gitops-1- GITOPS_OPERATOR_VER=v99.9.0-<build_number> ./install-gitops-operator.sh -m
213+
```

0 commit comments

Comments
 (0)