Skip to content

Commit d939797

Browse files
committed
fix merge conflicts
Signed-off-by: Jaideep Rao <[email protected]>
2 parents d83075c + 5a223ae commit d939797

File tree

218 files changed

+1964
-248
lines changed

Some content is hidden

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

218 files changed

+1964
-248
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
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.

OWNERS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ approvers:
1010
- jopit
1111
- anandf
1212
- rnapoles-rh
13+
- jaideepr97
1314

1415
reviewers:
1516
- sbose78
@@ -23,4 +24,7 @@ reviewers:
2324
- anandrkskd
2425
- varshab1210
2526
- mehabhalodiya
26-
- trdoyle81
27+
- trdoyle81
28+
- svghadi
29+
- reginapizza
30+
- ciiay

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727

2828
![a relative link](docs/assets/operatorhub-listing.png)
2929

30-
3. Install the operator using the defaults in the wizard, and wait for it to show up in the list of "Installed Operators". If it doesn't install properly, you can check on its status in the "Installed Operators" tab in the `openshift-operators` namespace.
30+
3. Install the operator in the `openshift-gitops-operator` namesapce using the defaults in the wizard, and optionally, select the checkbox to enable cluster monitoring on the namesapce. Wait for it to show up in the list of "Installed Operators". If it doesn't install properly, you can check on its status in the "Installed Operators" tab in the `openshift-gitops-operator` namespace.
3131

3232
![a relative link](docs/assets/installed-operator.png)
3333

bundle/manifests/argoproj.io_applications.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ spec:
14281428
as part of automated sync (default: false)'
14291429
type: boolean
14301430
selfHeal:
1431-
description: 'SelfHeal specifies whether to revert resources
1431+
description: 'SelfHeal specifes whether to revert resources
14321432
back to their desired state upon modification in the cluster
14331433
(default: false)'
14341434
type: boolean
@@ -1492,7 +1492,7 @@ spec:
14921492
conditions
14931493
items:
14941494
description: ApplicationCondition contains details about an application
1495-
condition, which is usually an error or warning
1495+
condition, which is usally an error or warning
14961496
properties:
14971497
lastTransitionTime:
14981498
description: LastTransitionTime is the time the condition was
@@ -2941,19 +2941,6 @@ spec:
29412941
syncResult:
29422942
description: SyncResult is the result of a Sync operation
29432943
properties:
2944-
managedNamespaceMetadata:
2945-
description: ManagedNamespaceMetadata contains the current
2946-
sync state of managed namespace metadata
2947-
properties:
2948-
annotations:
2949-
additionalProperties:
2950-
type: string
2951-
type: object
2952-
labels:
2953-
additionalProperties:
2954-
type: string
2955-
type: object
2956-
type: object
29572944
resources:
29582945
description: Resources contains a list of sync result items
29592946
for each individual resource in a sync operation

bundle/manifests/gitops-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ spec:
253253
Audit trails of rollouts to the clusters\n* Monitoring and logging integration
254254
with OpenShift\n* Automated GitOps bootstrapping using Tekton and Argo CD with
255255
[GitOps Application Manager CLI](https://github.com/redhat-developer/kam)\n\n##
256-
Components\n* Argo CD 2.7.2\n* GitOps Application Manager CLI ([download](https://github.com/redhat-developer/kam/releases))\n\n##
256+
Components\n* Argo CD 2.7.6\n* GitOps Application Manager CLI ([download](https://github.com/redhat-developer/kam/releases))\n\n##
257257
How to Install \nAfter installing the OpenShift GitOps operator, an instance of
258258
Argo CD is installed in the `openshift-gitops` namespace which has sufficent privileges
259259
for managing cluster configurations. You can create additional Argo CD instances

config/crd/bases/argoproj.io_applications.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ spec:
14271427
as part of automated sync (default: false)'
14281428
type: boolean
14291429
selfHeal:
1430-
description: 'SelfHeal specifies whether to revert resources
1430+
description: 'SelfHeal specifes whether to revert resources
14311431
back to their desired state upon modification in the cluster
14321432
(default: false)'
14331433
type: boolean
@@ -1491,7 +1491,7 @@ spec:
14911491
conditions
14921492
items:
14931493
description: ApplicationCondition contains details about an application
1494-
condition, which is usually an error or warning
1494+
condition, which is usally an error or warning
14951495
properties:
14961496
lastTransitionTime:
14971497
description: LastTransitionTime is the time the condition was
@@ -2940,19 +2940,6 @@ spec:
29402940
syncResult:
29412941
description: SyncResult is the result of a Sync operation
29422942
properties:
2943-
managedNamespaceMetadata:
2944-
description: ManagedNamespaceMetadata contains the current
2945-
sync state of managed namespace metadata
2946-
properties:
2947-
annotations:
2948-
additionalProperties:
2949-
type: string
2950-
type: object
2951-
labels:
2952-
additionalProperties:
2953-
type: string
2954-
type: object
2955-
type: object
29562943
resources:
29572944
description: Resources contains a list of sync result items
29582945
for each individual resource in a sync operation

config/manifests/patches/description.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Audit trails of rollouts to the clusters\n* Monitoring and logging integration
1414
with OpenShift\n* Automated GitOps bootstrapping using Tekton and Argo CD with
1515
[GitOps Application Manager CLI](https://github.com/redhat-developer/kam)\n\n##
16-
Components\n* Argo CD 2.7.2\n* GitOps Application Manager CLI ([download](https://github.com/redhat-developer/kam/releases))\n\n##
16+
Components\n* Argo CD 2.7.6\n* GitOps Application Manager CLI ([download](https://github.com/redhat-developer/kam/releases))\n\n##
1717
How to Install \nAfter installing the OpenShift GitOps operator, an instance of
1818
Argo CD is installed in the `openshift-gitops` namespace which has sufficent privileges
1919
for managing cluster configurations. You can create additional Argo CD instances

config/prometheus/monitor.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ spec:
1919
serverName: openshift-gitops-operator-metrics-service.openshift-gitops-operator.svc
2020
selector:
2121
matchLabels:
22-
control-plane: gitops-operator
22+
<<<<<<< HEAD
23+
control-plane: gitops-operator
24+
=======
25+
control-plane: gitops-operator
26+
>>>>>>> 5a223ae1212252b78662554f9836f4b72417f5a4

config/rbac/auth_proxy_service.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ spec:
1414
targetPort: metrics
1515
selector:
1616
control-plane: gitops-operator
17-
type: ClusterIP
17+
<<<<<<< HEAD
18+
type: ClusterIP
19+
=======
20+
>>>>>>> 5a223ae1212252b78662554f9836f4b72417f5a4

config/rbac/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ resources:
1212
# Comment the following 4 lines if you want to disable
1313
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
1414
# which protects your /metrics endpoint.
15-
- auth_proxy_service.yaml
15+
# - auth_proxy_service.yaml
1616
- auth_proxy_role.yaml
1717
- auth_proxy_role_binding.yaml
1818
# - auth_proxy_client_clusterrole.yaml

docs/OpenShift GitOps Usage Guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ apiVersion: operators.coreos.com/v1alpha1
4747
kind: Subscription
4848
metadata:
4949
name: openshift-gitops-operator
50-
namespace: openshift-operators
50+
namespace: openshift-gitops-operator
5151
spec:
5252
channel: stable
5353
installPlanApproval: Automatic
@@ -165,7 +165,7 @@ spec:
165165

166166
```
167167
oc patch subscriptions.operators.coreos.com/openshift-gitops-operator \
168-
-n openshift-operators \
168+
-n openshift-gitops-operator \
169169
--type='merge' \
170170
--patch '{ "spec": { "config": { "env": [ { "name": "DISABLE_DEX", "value": "true" } ] } } }'
171171
```

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.19
44

55
require (
66
github.com/argoproj-labs/argo-rollouts-manager v0.0.2-0.20230515023837-0632f3e856d5
7-
github.com/argoproj-labs/argocd-operator v0.0.16-0.20230602130515-9b15d5285e20
7+
github.com/argoproj-labs/argocd-operator v0.0.16-0.20230707151228-cbc97a02a8ce
88
github.com/coreos/prometheus-operator v0.40.0
99
github.com/go-logr/logr v1.2.4
1010
github.com/google/go-cmp v0.5.9
@@ -14,6 +14,7 @@ require (
1414
github.com/openshift/api v3.9.1-0.20190916204813-cdbe64fb0c91+incompatible
1515
github.com/operator-framework/api v0.17.5
1616
github.com/stretchr/testify v1.8.2
17+
go.uber.org/zap v1.24.0
1718
golang.org/x/mod v0.10.0
1819
gotest.tools v2.2.0+incompatible
1920
k8s.io/api v0.27.1
@@ -33,7 +34,7 @@ require (
3334
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
3435
github.com/Azure/go-autorest/logger v0.2.1 // indirect
3536
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
36-
github.com/argoproj/argo-cd/v2 v2.7.1 // indirect
37+
github.com/argoproj/argo-cd/v2 v2.7.6 // indirect
3738
github.com/beorn7/perks v1.0.1 // indirect
3839
github.com/blang/semver/v4 v4.0.0 // indirect
3940
github.com/cespare/xxhash/v2 v2.2.0 // indirect
@@ -75,7 +76,6 @@ require (
7576
github.com/spf13/pflag v1.0.5 // indirect
7677
go.uber.org/atomic v1.11.0 // indirect
7778
go.uber.org/multierr v1.11.0 // indirect
78-
go.uber.org/zap v1.24.0 // indirect
7979
golang.org/x/crypto v0.9.0 // indirect
8080
golang.org/x/net v0.10.0 // indirect
8181
golang.org/x/oauth2 v0.8.0 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb
111111
github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
112112
github.com/argoproj-labs/argo-rollouts-manager v0.0.2-0.20230515023837-0632f3e856d5 h1:SlFbeNb42H7DUGzE9B/uYYjlQjNSR4y+eaWiTqN3PGs=
113113
github.com/argoproj-labs/argo-rollouts-manager v0.0.2-0.20230515023837-0632f3e856d5/go.mod h1:AiEjAr6e/DCDiicjoC7W7LaZdO28sfgoBhjbGryzEZ8=
114-
github.com/argoproj-labs/argocd-operator v0.0.16-0.20230602130515-9b15d5285e20 h1:GuS8t9/FXbe0/FqOAn5PourGCAhIWoP+CGD5gASYH0M=
115-
github.com/argoproj-labs/argocd-operator v0.0.16-0.20230602130515-9b15d5285e20/go.mod h1:AfoHTRFS43YO25blmzicubPOIgApAVtW+RFBwcb8cyM=
116-
github.com/argoproj/argo-cd/v2 v2.7.1 h1:bioMqQ2HI95AWOI157ztppvyD0uPXGrB6h/7lHV2Fvo=
117-
github.com/argoproj/argo-cd/v2 v2.7.1/go.mod h1:bB2H6vHO29xf32Nzxg1CJKrJBE48r7frkzbzKxx1BKM=
114+
github.com/argoproj-labs/argocd-operator v0.0.16-0.20230707151228-cbc97a02a8ce h1:GuZLI2a4qTQVT4ZPKX4fPQgtAWiiOUaQ0Hqpnri6RLM=
115+
github.com/argoproj-labs/argocd-operator v0.0.16-0.20230707151228-cbc97a02a8ce/go.mod h1:5gJtEVwehEm9qt4Wi76Dyyi6Y36XHLkNNJ1EKrthZTg=
116+
github.com/argoproj/argo-cd/v2 v2.7.6 h1:AKRQm0fLGgBmKQILrpc/2PZM2WYlfCP5tquU6DqDudU=
117+
github.com/argoproj/argo-cd/v2 v2.7.6/go.mod h1:uRU//iTjnzlCs+hKOKo5Na2OZGNTlklnu/g9Wi4enh4=
118118
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
119119
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
120120
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=

hack/non-olm-install/README.md

Lines changed: 38 additions & 9 deletions
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)