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

Commit

Permalink
[KOGITO-748] - Renaming to kogito-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardozanini committed Dec 10, 2019
1 parent 14104f6 commit 01c0f69
Show file tree
Hide file tree
Showing 29 changed files with 71 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .osdk-scorecard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ scorecard:
- "deploy/crds/app.kiegroup.org_v1alpha1_kogitoapp_cr.yaml"
- "deploy/crds/app.kiegroup.org_v1alpha1_kogitodataindex_cr.yaml"
- "deploy/crds/app.kiegroup.org_v1alpha1_kogitoinfra_cr.yaml"
csv-path: "deploy/olm-catalog/kogito-cloud-operator/0.6.0/kogito-cloud-operator.v0.6.0.clusterserviceversion.yaml"
csv-path: "deploy/olm-catalog/kogito-operator/0.6.0/kogito-operator.v0.6.0.clusterserviceversion.yaml"
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ The Kogito Operator is available in the OperatorHub as a community operator. To
You can also verify the Operator availability in the catalog by running the following command:

```bash
$ oc describe operatorsource.operators.coreos.com/kogitocloud-operator -n openshift-marketplace
$ oc describe operatorsource.operators.coreos.com/kogito-operator -n openshift-marketplace
```
Follow the OpenShift Web Console instructions in the **Catalog** -> **OperatorHub** section in the left menu to install it in any namespace in the cluster.

Expand All @@ -97,7 +97,7 @@ Follow the OpenShift Web Console instructions in the **Catalog** -> **OperatorHu
If you cannot find the Kogito Operator in OperatorHub, you can install it manually by creating an entry in the OperatorHub Catalog:

```bash
$ oc create -f deploy/olm-catalog/kogito-cloud-operator/kogitocloud-operatorsource.yaml
$ oc create -f deploy/olm-catalog/kogito-operator/kogito-operator-operatorsource.yaml
```

After several minutes, the Operator appears under the **Catalog** -> **OperatorHub** section in the OpenShift Web Console. To find the Operator, search by the _Kogito_ name. You can then install the Operator as described in the [Automatically in OperatorHub](#automatically-in-operatorhub) section.
Expand Down Expand Up @@ -166,13 +166,13 @@ To view the Operator logs, first identify where the operator is deployed:
$ oc get pods

NAME READY STATUS RESTARTS AGE
kogito-cloud-operator-6d7b6d4466-9ng8t 1/1 Running 0 26m
kogito-operator-6d7b6d4466-9ng8t 1/1 Running 0 26m
```

Use the pod name as the input in the following command:

```bash
$ oc logs -f kogito-cloud-operator-6d7b6d4466-9ng8t
$ oc logs -f kogito-operator-6d7b6d4466-9ng8t
```

## Kogito Data Index Service deployment
Expand Down Expand Up @@ -727,27 +727,27 @@ To install the Kogito Operator on OpenShift 4.x for end-to-end (E2E) testing, en
Push the Operator bundle to your quay application repository as shown in the following example:

```bash
$ operator-courier push deploy/olm-catalog/kogito-cloud-operator/ namespace kogitocloud-operator 0.6.0 "basic XXXXXXXXX"
$ operator-courier push deploy/olm-catalog/kogito-operator/ namespace kogito-operator 0.6.0 "basic XXXXXXXXX"
```

If you push to another quay repository, replace `namespace` with your user name or the other namespace. The push command does not overwrite an existing repository, so you must delete the bundle before you can build and upload a new version. After you upload the bundle, create an [Operator Source](https://github.com/operator-framework/community-operators/blob/master/docs/testing-operators.md#linking-the-quay-application-repository-to-your-openshift-40-cluster) to load your operator bundle in OpenShift.

The OpenShift cluster needs access to the created application. Ensure that the application is **public** or that you have configured the private repository credentials in the cluster. To make the application public, go to your `quay.io` account, and in the **Applications** tab look for the `kogitocloud-operator` application. Under the settings section, click **make public**.
The OpenShift cluster needs access to the created application. Ensure that the application is **public** or that you have configured the private repository credentials in the cluster. To make the application public, go to your `quay.io` account, and in the **Applications** tab look for the `kogito-operator` application. Under the settings section, click **make public**.

```bash
## Kogito imagestreams should already be installed and available, for example:
$ oc apply -f https://raw.githubusercontent.com/kiegroup/kogito-cloud/master/s2i/kogito-imagestream.yaml -n openshift
$ oc create -f deploy/olm-catalog/kogito-cloud-operator/kogitocloud-operatorsource.yaml
$ oc create -f deploy/olm-catalog/kogito-operator/kogito-operator-operatorsource.yaml
```

Replace `registryNamespace` in the `kogitocloud-operatorsource.yaml` file with your quay namespace. The name, display name, and publisher of the Operator are the only other attributes that you can modify.
Replace `registryNamespace` in the `kogito-operator-operatorsource.yaml` file with your quay namespace. The name, display name, and publisher of the Operator are the only other attributes that you can modify.

After several minutes, the Operator appears under **Catalog** -> **OperatorHub** in the OpenShift Web Console. To find the Operator, filter the provider type by _Custom_.

To verify the operator status, run the following command:

```bash
$ oc describe operatorsource.operators.coreos.com/kogitocloud-operator -n openshift-marketplace
$ oc describe operatorsource.operators.coreos.com/kogito-operator -n openshift-marketplace
```

### Running End-to-End (E2E) tests
Expand Down
4 changes: 2 additions & 2 deletions cmd/kogito/command/shared/install_operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func TestMustInstallOperatorIfNotExists_WithOperatorHub(t *testing.T) {
Namespace: operatorMarketplaceNamespace,
},
Status: operatormkt.OperatorSourceStatus{
Packages: "cert-utils-operator,spark-gcp,metering,spinnaker-operator,apicurito,kubefed,prometheus,hawtio-operator,t8c,hazelcast-enterprise,opsmx-spinnaker-operator,ibmcloud-operator,openebs,iot-simulator,submariner,microcks,enmasse,teiid,federation,aqua,eclipse-che,3scale-community-operator,jaeger,openshift-pipelines-operator,awss3-operator-registry,service-binding-operator,node-network-operator,myvirtualdirectory,triggermesh,namespace-configuration-operator,maistraoperator,camel-k,federatorai,knative-serving-operator,syndesis,knative-kafka-operator,postgresql,event-streams-topic,planetscale,kiali,ripsaw,esindex-operator,halkyon,quay,kogitocloud-operator,seldon-operator,cockroachdb,atlasmap-operator,strimzi-kafka-operator,knative-camel-operator,lightbend-console-operator,descheduler,node-problem-detector,opendatahub-operator,radanalytics-spark,hco-operatorhub,smartgateway-operator,etcd,knative-eventing-operator,postgresql-operator-dev4devs-com,twistlock,microsegmentation-operator,open-liberty,akka-cluster-operator,grafana-operator,kubeturbo,appsody-community-operator,infinispan",
Packages: "cert-utils-operator,spark-gcp,metering,spinnaker-operator,apicurito,kubefed,prometheus,hawtio-operator,t8c,hazelcast-enterprise,opsmx-spinnaker-operator,ibmcloud-operator,openebs,iot-simulator,submariner,microcks,enmasse,teiid,federation,aqua,eclipse-che,3scale-community-operator,jaeger,openshift-pipelines-operator,awss3-operator-registry,service-binding-operator,node-network-operator,myvirtualdirectory,triggermesh,namespace-configuration-operator,maistraoperator,camel-k,federatorai,knative-serving-operator,syndesis,knative-kafka-operator,postgresql,event-streams-topic,planetscale,kiali,ripsaw,esindex-operator,halkyon,quay,kogito-operator,seldon-operator,cockroachdb,atlasmap-operator,strimzi-kafka-operator,knative-camel-operator,lightbend-console-operator,descheduler,node-problem-detector,opendatahub-operator,radanalytics-spark,hco-operatorhub,smartgateway-operator,etcd,knative-eventing-operator,postgresql-operator-dev4devs-com,twistlock,microsegmentation-operator,open-liberty,akka-cluster-operator,grafana-operator,kubeturbo,appsody-community-operator,infinispan",
},
}
client := test.SetupFakeKubeCli(&v1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: ns}}, operatorSource)
Expand All @@ -108,7 +108,7 @@ func TestTryToInstallOperatorIfNotExists_WithOperatorHub(t *testing.T) {
Namespace: operatorMarketplaceNamespace,
},
Status: operatormkt.OperatorSourceStatus{
Packages: "cert-utils-operator,spark-gcp,metering,spinnaker-operator,apicurito,kubefed,prometheus,hawtio-operator,t8c,hazelcast-enterprise,opsmx-spinnaker-operator,ibmcloud-operator,openebs,iot-simulator,submariner,microcks,enmasse,teiid,federation,aqua,eclipse-che,3scale-community-operator,jaeger,openshift-pipelines-operator,awss3-operator-registry,service-binding-operator,node-network-operator,myvirtualdirectory,triggermesh,namespace-configuration-operator,maistraoperator,camel-k,federatorai,knative-serving-operator,syndesis,knative-kafka-operator,postgresql,event-streams-topic,planetscale,kiali,ripsaw,esindex-operator,halkyon,quay,kogitocloud-operator,seldon-operator,cockroachdb,atlasmap-operator,strimzi-kafka-operator,knative-camel-operator,lightbend-console-operator,descheduler,node-problem-detector,opendatahub-operator,radanalytics-spark,hco-operatorhub,smartgateway-operator,etcd,knative-eventing-operator,postgresql-operator-dev4devs-com,twistlock,microsegmentation-operator,open-liberty,akka-cluster-operator,grafana-operator,kubeturbo,appsody-community-operator,infinispan",
Packages: "cert-utils-operator,spark-gcp,metering,spinnaker-operator,apicurito,kubefed,prometheus,hawtio-operator,t8c,hazelcast-enterprise,opsmx-spinnaker-operator,ibmcloud-operator,openebs,iot-simulator,submariner,microcks,enmasse,teiid,federation,aqua,eclipse-che,3scale-community-operator,jaeger,openshift-pipelines-operator,awss3-operator-registry,service-binding-operator,node-network-operator,myvirtualdirectory,triggermesh,namespace-configuration-operator,maistraoperator,camel-k,federatorai,knative-serving-operator,syndesis,knative-kafka-operator,postgresql,event-streams-topic,planetscale,kiali,ripsaw,esindex-operator,halkyon,quay,kogito-operator,seldon-operator,cockroachdb,atlasmap-operator,strimzi-kafka-operator,knative-camel-operator,lightbend-console-operator,descheduler,node-problem-detector,opendatahub-operator,radanalytics-spark,hco-operatorhub,smartgateway-operator,etcd,knative-eventing-operator,postgresql-operator-dev4devs-com,twistlock,microsegmentation-operator,open-liberty,akka-cluster-operator,grafana-operator,kubeturbo,appsody-community-operator,infinispan",
},
}
client := test.SetupFakeKubeCli(&v1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: ns}}, operatorSource)
Expand Down
2 changes: 1 addition & 1 deletion cmd/kogito/command/shared/operatorhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

const (
defaultOperatorPackageName = "kogitocloud-operator"
defaultOperatorPackageName = "kogito-operator"
communityOperatorSource = "community-operators"
operatorMarketplaceNamespace = "openshift-marketplace"
)
Expand Down
2 changes: 1 addition & 1 deletion deploy/crds/app.kiegroup.org_kogitoapps_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ spec:
conditions:
description: History of conditions for the service
items:
description: Condition is the condition for the kogito-cloud-operator
description: Condition is the condition for the kogito-operator
properties:
lastTransitionTime:
format: date-time
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ spec:
conditions:
description: History of conditions for the service
items:
description: Condition is the condition for the kogito-cloud-operator
description: Condition is the condition for the kogito-operator
properties:
lastTransitionTime:
format: date-time
Expand Down

0 comments on commit 01c0f69

Please sign in to comment.