This repository was archived by the owner on Jun 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
[1.5] Cleanup CRD fields in v1alpha2 of Release Candidate related fields #450
Draft
jordigilh
wants to merge
6
commits into
rhdhorchestrator:main
Choose a base branch
from
jordigilh:cleanup_values.yaml_v1alpha2
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.
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
96a2cd6
Normalized to source variable name
jordigilh 3eedd98
Removed isReleaseCandidate
jordigilh f40d2c8
Remove rhdh/sonataflowPlatform image field used specifically for RC
jordigilh f438bad
Remove RC fields to allow customize dataIndexImage and jobServiceImag…
jordigilh 6c49567
Removed get-cluster-version helper
jordigilh d15e518
Moved rhdhOperator.subscription.targetNamespace to rhdhOperator.targe…
jordigilh 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
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
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
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 |
|---|---|---|
|
|
@@ -42,29 +42,9 @@ spec: | |
| description: Spec defines the desired state of Orchestrator | ||
| type: object | ||
| properties: | ||
| rhdh: | ||
| description: rhdh contains the configuration fields for the RHDH when using release candidate | ||
| properties: | ||
| images: | ||
| description: Indicates RC builds images that should be used by the chart to install RHDH | ||
| type: object | ||
| x-kubernetes-preserve-unknown-fields: true | ||
| type: object | ||
| sonataflow: | ||
| description: SonatafFlow contains the configuration fields for the SonataFlow when using release candidate | ||
| properties: | ||
| images: | ||
| description: Indicates RC builds images that should be used by the chart to install Sonataflow | ||
| type: object | ||
| x-kubernetes-preserve-unknown-fields: true | ||
| type: object | ||
| sonataFlowOperator: | ||
| description: SonatafFlowOperator contains the configuration fields for the SonataFlow Operator | ||
| properties: | ||
| isReleaseCandidate: | ||
| default: false | ||
| description: Indicates RC builds should be used by the chart to install Sonataflow | ||
| type: boolean | ||
| enabled: | ||
| default: true | ||
| description: Enabled determines whether to deploy the SonataFlow Operator operator or not. Defaults to true. | ||
|
|
@@ -88,7 +68,7 @@ spec: | |
| default: openshift-serverless-logic | ||
| description: Namespace determines the namespace where the operator should be deployed. Defaults to openshift-serverless-logic | ||
| type: string | ||
| sourceName: | ||
| source: | ||
| default: "redhat-operators" | ||
| description: SourceName captures the name of the catalog source | ||
| type: string | ||
|
|
@@ -124,7 +104,7 @@ spec: | |
| description: Namespace determines the namespace where the operator should be deployed. Defaults to openshift-serverless | ||
| default: openshift-serverless | ||
| type: string | ||
| sourceName: | ||
| source: | ||
| description: SourceName captures the name of the catalog source | ||
| default: "redhat-operators" | ||
| type: string | ||
|
|
@@ -133,14 +113,14 @@ spec: | |
| rhdhOperator: | ||
| description: RHDH Operator contains the configuration fields for the Red Hat Developer Hub operator | ||
| properties: | ||
| isReleaseCandidate: | ||
| default: false | ||
| description: Indicates RC builds should be used by the chart to install the Serverless Operator | ||
| type: boolean | ||
| enabled: | ||
| default: true | ||
| description: Enabled determines whether the operator should be deployed by the chart. Defaults to true | ||
| type: boolean | ||
| targetNamespace: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above. |
||
| default: orchestrator | ||
| description: The target namespace for the backstage CR in which RHDH instance is created | ||
| type: string | ||
| enableGuestProvider: | ||
| default: false | ||
| description: EnableGuestProvider captures whether to enable the guest provider in RHDH. Defaults to false. | ||
|
|
@@ -191,7 +171,7 @@ spec: | |
| description: The name of the host for the Gitlab instance used. Required for launching software templates. Defaults to 'GITLAB_HOST', empty for not available. | ||
| default: GITLAB_HOST | ||
| type: string | ||
| type: object | ||
| type: object | ||
| k8s: | ||
| description: Kubernetes specific configuration fields that are injected to the Backstage instance to allow the plugin to communicate with the Kubernetes API Server. | ||
| properties: | ||
|
|
@@ -258,10 +238,6 @@ spec: | |
| default: rhdh-operator | ||
| description: Namespace determines the namespace where the operator should be deployed. Defaults to rhdh-operator | ||
| type: string | ||
| sourceName: | ||
| default: "redhat-operators" | ||
| description: SourceName captures the name of the catalog source | ||
| type: string | ||
| source: | ||
| default: "redhat-operators" | ||
| description: Source captures the name of the catalog source | ||
|
|
@@ -270,10 +246,6 @@ spec: | |
| default: "" | ||
| description: The initial version of the operator | ||
| type: string | ||
| targetNamespace: | ||
| default: rhdh-operator | ||
| description: The target namespace for the backstage CR in which RHDH instance is created | ||
| type: string | ||
| type: object | ||
| type: object | ||
| rhdhPlugins: | ||
|
|
@@ -413,28 +385,6 @@ spec: | |
| default: 64Mi | ||
| type: string | ||
| type: object | ||
| dataIndexImage: | ||
| description: This field contains the location of a custom DataIndex service container image to be used instead of the provided one by SonataFlow | ||
| default: | ||
| type: string | ||
| jobServiceImage: | ||
| description: This field contains the location of a custom Job Service container image to be used instead of the provided one by SonataFlow | ||
| default: | ||
| type: string | ||
| eventing: | ||
| description: SonataflowPlatform's eventing related properties | ||
| properties: | ||
| broker: | ||
| description: Broker contains the name and namespace of the broker to use if using Knative eventing for components communication | ||
| properties: | ||
| name: | ||
| description: Name describes the name of the broker to use | ||
| type: string | ||
| namespace: | ||
| description: Namespace describes the namespace on which the broker to use is deployed | ||
| type: string | ||
| type: object | ||
| type: object | ||
| type: object | ||
| type: object | ||
| tekton: | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the default namespace for the Backstage CR, we should pick a different one than the target namespace of the operator, perhaps the
orchestratoras default (if namespace exists) or require the user to specify if the RHDH is disabled.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second thought, I think we should remove it. Look at the logic where it is being referenced:
orchestrator-helm-operator/helm-charts/orchestrator/templates/network-policies.yaml
Lines 18 to 19 in 6bfbf3d
If the operator is enabled, why can't we use the
subscription.namespacevalue and instead we have to have a new field? Maybe I'm missing something here, because I remember we had an extensive discussion about this field before, but my memory is failing me.Thoughts @jenniferubah ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use
rhdhOperator.targetNamespacebecause that is used the user to indicate the namespace they want the RHDH instance deployed and that can be different from the RHDH operator namespacesubscription.namespaceand also less confusing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could default the value of
targetNamespacetorhdhif the operator is enabled instead ofrhdh-operatorsince we want to keep those separate.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see it now. Thanks for refreshing my memory :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@masayag I will change the default value to
orchestratoras you suggest, to avoid the situation where the user is attempting to deploy the CR in the same namespace whererhdhis deployed by defaultUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@masayag should we also change the default location for RHDH in the
setup.shscript? Currently it'srhdh-operator.https://github.com/jordigilh/orchestrator-helm-operator/blob/d15e518d5b3f01fe7537758b2612d9f95bf63a19/hack/setup.sh#L18-L20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a concern about this one, since the same script is used for all releases.
So not sure what will be the impact of it.
And yet, I'd prefer for 1.4 the default to be
orchestrator.