Skip to content

Commit

Permalink
Merge pull request #1014 from jmfinelli/jmfinelli-patch-1
Browse files Browse the repository at this point in the history
[JBEAP-29234] OpenShift instructions updated
  • Loading branch information
emmartins authored Feb 11, 2025
2 parents 43bf54b + 0759c2d commit 61f08f1
Showing 1 changed file with 51 additions and 5 deletions.
56 changes: 51 additions & 5 deletions ejb-txn-remote-call/README-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ WFLYSRV0018: Deployment "deployment.server.war" is using a private module ("org.
----

// Build and run sections for other environments/builds
ifndef::ProductRelease,EAPXPRelease[]
ifndef::ProductRelease[]

[[build_and_run_the_quickstart_with_provisioned_server]]
== Building and running the quickstart application with provisioned {productName} server
Expand Down Expand Up @@ -694,10 +694,10 @@ might result in no-ACID transactions.
[#_install_operator]
==== Install {productName}'s Operator

ifndef::ProductRelease[]
To install {productName}'s Operator, follow the https://github.com/wildfly/wildfly-operator[official documentation]
(which instructions are also reported here for convenience)

ifndef::ProductRelease,EAPCDRelease,EAPXPRelease[]
[source,sh,options="nowrap",subs="+quotes,attributes+"]
----
cd /tmp
Expand All @@ -709,11 +709,9 @@ oc adm policy add-cluster-role-to-user cluster-admin developer
make install
make deploy
----
endif::[]

To verify that the {productName} Operator is running, execute the following command:

ifndef::ProductRelease,EAPCDRelease,EAPXPRelease[]
[source,sh,options="nowrap",subs="+quotes,attributes+"]
----
oc get po -n $(oc project -q)
Expand All @@ -723,6 +721,54 @@ wildfly-operator-5d4b7cc868-zfxcv 1/1 Running 1 22h
----
endif::[]

ifdef::ProductRelease[]
To install {productName}'s Operator, follow the https://docs.redhat.com/en/documentation/red_hat_jboss_enterprise_application_platform/8.0/html/using_jboss_eap_on_openshift_container_platform/assembly_deploying-your-jboss-eap-application-on-the-openshift-container-platform_default#proc_installing-eap-operator-using-the-cli_assembly_jboss-eap-operator-for-automating-application-deployment-on-openshift[official documentation] (which instructions are also reported here for convenience)

[NOTE]
====
* You have access to an OpenShift Container Platform cluster using an account with cluster-admin permissions.
* You have installed the oc tool in your local system.
====

1. View the list of operators available to the cluster from the OperatorHub:
+
[source,sh,options="nowrap",subs="+quotes,attributes+"]
----
oc get packagemanifests -n openshift-marketplace | grep eap
----
1. Create a `Subscription` object YAML file (for example, `eap-operator-sub.yaml`) to subscribe a namespace to your EAP operator. The following is an example `Subscription` object YAML file:
+
[source,sh,options="nowrap",subs="+quotes,attributes+"]
----
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: eap
namespace: openshift-operators
spec:
channel: stable
installPlanApproval: Automatic
name: eap
source: redhat-operators
sourceNamespace: openshift-marketplace
----
1. Create the `Subscription` object from the YAML file:
+
[source,sh,options="nowrap",subs="+quotes,attributes+"]
----
oc apply -f eap-operator-sub.yaml
----
+
The EAP operator is successfully installed. At this point, the OLM is aware of the EAP operator.
A ClusterServiceVersion (CSV) for the operator appears in the target namespace, and APIs provided by the EAP operator is available for creation.
To verify that the {productName} Operator is running, execute the following command:
+
[source,sh,options="nowrap",subs="+quotes,attributes+"]
----
oc get csv -n openshift-operators
----
endif::[]

[#_start_postgresql_database]
==== Start a PostgreSQL database

Expand All @@ -744,7 +790,7 @@ To build the `client` and the `server` applications, this quickstart employs
For more information about {productName}'s Helm chart, please refer to the official
https://github.com/wildfly/wildfly-charts/blob/main/charts/wildfly/README.md[documentation].

ifndef::ProductRelease,EAPCDRelease,EAPXPRelease[]
ifndef::ProductRelease[]
[source,sh,options="nowrap",subs="+quotes,attributes+"]
----
helm repo add wildfly https://docs.wildfly.org/wildfly-charts/
Expand Down

0 comments on commit 61f08f1

Please sign in to comment.