-
Notifications
You must be signed in to change notification settings - Fork 64
RHIDP-12635: Flavours for Operator #2165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jmagak
wants to merge
1
commit into
redhat-developer:main
Choose a base branch
from
jmagak:RHIDP-12635-Flavours-for-Operator
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...-automate-environment-provisioning-with-predefined-operator-configurations.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| :_mod-docs-content-type: ASSEMBLY | ||
| ifdef::context[:parent-context: {context}] | ||
|
|
||
| [id="automate-environment-provisioning-with-predefined-operator-configurations_{context}"] | ||
| = Automate environment provisioning with predefined Operator configurations | ||
|
|
||
| :context: automate-environment-provisioning-with-predefined-operator-configurations | ||
|
|
||
| [role="_abstract"] | ||
| To reduce manual plugin configuration, you can deploy {product} with predefined settings for workflow orchestration or AI assistance. | ||
|
|
||
| include::../modules/configure_configuring-rhdh/ref-pre-configured-settings-for-common-use-cases.adoc[leveloffset=+1] | ||
|
|
||
| include::../modules/configure_configuring-rhdh/proc-deploy-rhdh-for-workflow-automation.adoc[leveloffset=+1] | ||
|
|
||
| // TODO: Uncomment after PR #2210 is merged (Lightspeed configuration docs by pabel-rh) | ||
| // See: https://github.com/redhat-developer/red-hat-developers-documentation-rhdh/pull/2210 | ||
| // Preview: https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-2210/integrate_interacting-with-developer-lightspeed-for-rhdh/ | ||
| // include::../modules/shared/proc-configure-by-using-the-operator.adoc[leveloffset=+1] | ||
|
|
||
| // TODO: Section 4.3 removed per Gennady's feedback - will revisit later when users can inspect default configurations | ||
| // include::../modules/configure_configuring-rhdh/con-combine-default-configurations-with-custom-resource-overrides-to-fine-tune-deployments.adoc[leveloffset=+1] | ||
|
|
||
| ifdef::parent-context[:context: {parent-context}] | ||
| ifndef::parent-context[:!context:] |
106 changes: 106 additions & 0 deletions
106
modules/configure_configuring-rhdh/proc-deploy-rhdh-for-workflow-automation.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="deploy-rhdh-for-workflow-automation_{context}"] | ||
| = Deploy {product} for workflow automation | ||
|
|
||
| [role="_abstract"] | ||
| To automate CI/CD pipeline setup, deploy {product} with workflow orchestration by using predefined Operator configurations. | ||
|
|
||
| .Prerequisites | ||
|
|
||
| * You have installed the {product} Operator in your OpenShift cluster. | ||
| * You have installed required infrastructure components: | ||
| ** OpenShift Serverless Operator | ||
| ** Knative Serving | ||
| ** Knative Eventing | ||
| ** OpenShift Serverless Logic Operator | ||
| * Optional: For production deployments, you have {configuring-book-link}#configure-external-postgresql-databases_configuring-rhdh[configured an external PostgreSQL database] and created a Secret with connection credentials. | ||
| * Optional: You have AMQ Streams (`Kafka`) installed for event-driven workflow processing. | ||
|
|
||
| .Procedure | ||
|
|
||
| . Create a namespace for your {product} instance or use an existing namespace: | ||
| + | ||
| [source,terminal,subs="+attributes"] | ||
| ---- | ||
| $ oc new-project {my-product-namespace} | ||
| ---- | ||
|
|
||
| . Create a {product-custom-resource-type} CR with the Orchestrator deployment configuration: | ||
| + | ||
| [source,terminal,subs="+attributes,+quotes"] | ||
| ---- | ||
| $ cat <<EOF | oc -n {my-product-namespace} create -f - | ||
| apiVersion: rhdh.redhat.com/v1alpha5 | ||
| kind: {product-custom-resource-type} | ||
| metadata: | ||
| name: <backstage_instance_name> | ||
| spec: | ||
| flavours: | ||
| - name: orchestrator | ||
| enabled: true | ||
| EOF | ||
| ---- | ||
| + | ||
| Where: | ||
| + | ||
| `<backstage_instance_name>`:: A name for your {product} instance, for example `developer-hub-orchestrator`. | ||
| `spec.flavours`:: The pre-configured settings array. Set `name: orchestrator` with `enabled: true` to automatically configure workflow orchestration capabilities. | ||
|
|
||
| + | ||
| [NOTE] | ||
| ==== | ||
| This example uses the default local PostgreSQL database. | ||
| For production deployments, Red Hat recommends using an external PostgreSQL database. | ||
| If you configured an external database in the prerequisites, add the database configuration to the CR as shown in {configuring-book-link}#configure-external-postgresql-databases_configuring-rhdh[Configure external PostgreSQL databases]. | ||
| ==== | ||
|
|
||
| . Wait for the Operator to reconcile the {product-custom-resource-type} CR: | ||
| + | ||
| [source,terminal,subs="+attributes"] | ||
| ---- | ||
| $ oc get backstage <backstage_instance_name> -n {my-product-namespace} -w | ||
| ---- | ||
| + | ||
| The deployment is ready when the `PHASE` column shows `Deployed`. | ||
|
|
||
| .Verification | ||
|
|
||
| . Verify that the Data Index service pod is running: | ||
| + | ||
| [source,terminal,subs="+attributes,+quotes"] | ||
| ---- | ||
| $ oc get pods -n {my-product-namespace} | grep sonataflow | ||
| ---- | ||
| + | ||
| You should see the Data Index service pod. The Orchestrator backend plugin runs within the main {product} pod. | ||
|
|
||
| . Access the {product} UI: | ||
| + | ||
| [source,terminal,subs="+attributes,+quotes"] | ||
| ---- | ||
| $ oc get route backstage-<backstage_instance_name> -n {my-product-namespace} -o jsonpath='{.spec.host}' | ||
| ---- | ||
| + | ||
| Go to the URL in your browser. | ||
|
|
||
| . Verify the Orchestrator plugin is displayed in the {product} navigation menu. | ||
| Look for the *Orchestrator* option in the left navigation panel. | ||
|
|
||
| . Optional: Test workflow deployment by creating a sample workflow. For detailed workflow examples, see {product-docs-link}/html/orchestrator_in_red_hat_developer_hub/index[Orchestrator in {product}]. | ||
|
|
||
| .Troubleshooting | ||
|
|
||
| If workflow pods fail to start:: | ||
| Verify the PostgreSQL connection by checking the Operator logs: | ||
| + | ||
| [source,terminal,subs="+attributes,+quotes"] | ||
| ---- | ||
| $ oc logs -n openshift-operators deployment/rhdh-operator -c manager | ||
| ---- | ||
| + | ||
| Ensure the database credentials in the Secret are correct and the database is accessible from the cluster. | ||
|
|
||
| If the Data Index service fails:: | ||
| Verify that the PostgreSQL user has permissions to create schemas and tables. | ||
| The Orchestrator deployment configuration automatically initializes required database schemas. |
143 changes: 143 additions & 0 deletions
143
...onfigure_configuring-rhdh/ref-pre-configured-settings-for-common-use-cases.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,143 @@ | ||
| :_mod-docs-content-type: REFERENCE | ||
|
|
||
| [id="pre-configured-settings-for-common-use-cases_{context}"] | ||
| = Pre-configured settings for common use cases | ||
|
|
||
| [role="_abstract"] | ||
| To choose the appropriate configuration for your use case, review the available predefined settings, their infrastructure prerequisites, and minimal Custom Resource examples. | ||
|
|
||
| {product} Operator 1.10.0 and later includes pre-configured settings for common use cases. | ||
| Each configuration automatically applies required plugins, dependencies, and app-config settings. | ||
|
|
||
| [cols="1,2,2,2", options="header"] | ||
| |=== | ||
| | Name | ||
| | Purpose | ||
| | Infrastructure prerequisites | ||
| | Default status | ||
|
|
||
| | `orchestrator` | ||
| | Workflow automation for CI/CD pipelines | ||
| | OpenShift Serverless Operator, Knative Serving, Knative Eventing, OpenShift Serverless Logic Operator, PostgreSQL database, optional AMQ Streams | ||
| | Disabled by default - enable explicitly | ||
|
|
||
| | `lightspeed` | ||
| | AI chat assistance for developers | ||
| | External LLM provider (OpenAI-compatible API) | ||
| | Enabled by default - disable to turn off | ||
| |=== | ||
|
|
||
| == Orchestrator | ||
|
|
||
| Enable workflow automation with automatic plugin configuration. | ||
|
|
||
| *Automatically configured components:* | ||
|
|
||
| * Orchestrator front-end plugin (`red-hat-developer-hub-backstage-plugin-orchestrator`) | ||
| * Orchestrator backend plugin (`red-hat-developer-hub-backstage-plugin-orchestrator-backend`) | ||
| * Orchestrator backend module for Scaffolder (`red-hat-developer-hub-backstage-plugin-scaffolder-backend-module-orchestrator`) | ||
| * Orchestrator form widgets plugin (`red-hat-developer-hub-backstage-plugin-orchestrator-form-widgets`) | ||
| * `SonataFlow` Operator integration | ||
| * Data Index service | ||
| * Job service | ||
|
|
||
| *Minimal CR example:* | ||
|
|
||
| [source,yaml,subs="+attributes"] | ||
| ---- | ||
| apiVersion: rhdh.redhat.com/v1alpha5 | ||
| kind: {product-custom-resource-type} | ||
| metadata: | ||
| name: developer-hub-orchestrator | ||
| spec: | ||
| flavours: | ||
| - name: orchestrator | ||
| enabled: true | ||
| ---- | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| This example uses the default local PostgreSQL database. | ||
| For production deployments, Red Hat recommends using an external PostgreSQL database. | ||
| For configuration details, see {configuring-book-link}#configure-external-postgresql-databases_configuring-rhdh[Configure external PostgreSQL databases]. | ||
| ==== | ||
|
|
||
| *Prerequisites:* | ||
|
|
||
| * OpenShift Serverless Operator, Knative Serving, Knative Eventing, and OpenShift Serverless Logic Operator | ||
| * PostgreSQL database (external database recommended for production) | ||
| * Optional: AMQ Streams (Kafka) for event-driven workflows | ||
| + | ||
| For detailed steps, see xref:deploy-rhdh-for-workflow-automation_{context}[Deploy {product} for workflow automation]. | ||
|
|
||
| == {ls-short} | ||
|
|
||
| {ls-short} is enabled by default in {product} 1.10.0 and later. Connect your LLM provider to use AI chat assistance. | ||
|
|
||
| *Automatically configured components:* | ||
|
|
||
| * {ls-short} front-end plugin | ||
| * {ls-short} backend plugin | ||
| * {lcs-name} sidecar | ||
|
|
||
| *Minimal CR example:* | ||
|
|
||
| [source,yaml,subs="+attributes"] | ||
| ---- | ||
| apiVersion: rhdh.redhat.com/v1alpha5 | ||
| kind: {product-custom-resource-type} | ||
| metadata: | ||
| name: developer-hub | ||
| spec: | ||
| application: | ||
| extraEnvs: | ||
| secrets: | ||
| - name: lightspeed-secrets | ||
| containers: | ||
| - lightspeed-core | ||
| ---- | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| {ls-short} is enabled by default. | ||
| You do not need to set `spec.flavours` to enable AI assistance. | ||
| To disable, set `spec.flavours: [{name: lightspeed, enabled: false}]`. | ||
| ==== | ||
|
|
||
| *Prerequisites:* | ||
|
|
||
| * External LLM provider endpoint (OpenAI, {azure-short} OpenAI, or compatible API) | ||
| * LLM API credentials | ||
| + | ||
| For complete configuration details, provider-specific guidance, and troubleshooting, see {developer-lightspeed-book-link}#install-and-configure_interacting-with-developer-lightspeed-for-rhdh[Install and configure {ls-brand-name}]. | ||
|
|
||
| == Multiple pre-configured settings | ||
|
|
||
| Enable both Orchestrator and {ls-short} in a single deployment: | ||
|
|
||
| [source,yaml,subs="+attributes"] | ||
| ---- | ||
| apiVersion: rhdh.redhat.com/v1alpha5 | ||
| kind: {product-custom-resource-type} | ||
| metadata: | ||
| name: developer-hub-full | ||
| spec: | ||
| flavours: | ||
| - name: orchestrator | ||
| enabled: true | ||
| application: | ||
| extraEnvs: | ||
| secrets: | ||
| - name: lightspeed-secrets | ||
| containers: | ||
| - lightspeed-core | ||
| ---- | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| {ls-short} is enabled by default, so you only need to explicitly enable Orchestrator. | ||
| Settings from both configurations merge automatically. | ||
| For production deployments with external PostgreSQL database, add the database configuration as shown in {configuring-book-link}#configure-external-postgresql-databases_configuring-rhdh[Configure external PostgreSQL databases]. | ||
| ==== | ||
|
|
||
| You must meet prerequisites for both: OpenShift Serverless components for Orchestrator and external LLM provider for {ls-short}. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.