Installing network policies when OSL is disabled#234
Merged
openshift-merge-bot[bot] merged 3 commits intoredhat-developer:mainfrom Sep 9, 2025
Merged
Installing network policies when OSL is disabled#234openshift-merge-bot[bot] merged 3 commits intoredhat-developer:mainfrom
openshift-merge-bot[bot] merged 3 commits intoredhat-developer:mainfrom
Conversation
|
There was a problem hiding this comment.
Hey there - I've reviewed your changes - here's some feedback:
- Clarify the intent of the added comments in values.yaml for serverlessLogicOperator and serverlessOperator—currently they suggest disabling but leave the flags enabled, which may confuse users.
- Verify whether the network-policies template should also account for orchestrator.serverlessOperator.enabled to avoid unintended policy creation when both logic operators are disabled.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Clarify the intent of the added comments in values.yaml for serverlessLogicOperator and serverlessOperator—currently they suggest disabling but leave the flags enabled, which may confuse users.
- Verify whether the network-policies template should also account for orchestrator.serverlessOperator.enabled to avoid unintended policy creation when both logic operators are disabled.
## Individual Comments
### Comment 1
<location> `charts/backstage/values.yaml:360` </location>
<code_context>
orchestrator:
enabled: false
+ # Disable Serverless Logic Operator if it already exists on the cluster
serverlessLogicOperator:
enabled: true
</code_context>
<issue_to_address>
Comment suggests disabling Serverless Logic Operator if it exists, but value remains enabled by default.
Please clarify whether the default should be 'enabled' or update the comment to accurately reflect the intended behavior.
</issue_to_address>
### Comment 2
<location> `charts/backstage/values.yaml:363` </location>
<code_context>
+ # Disable Serverless Logic Operator if it already exists on the cluster
serverlessLogicOperator:
enabled: true
+ # Disable Serverless Operator if it already exists on the cluster
serverlessOperator:
enabled: true
</code_context>
<issue_to_address>
Comment suggests disabling Serverless Operator if it exists, but value remains enabled by default.
Clarify whether users should manually disable the Serverless Operator, since the default remains enabled. Additional context or explicit instructions would help avoid confusion.
</issue_to_address>
<suggested_fix>
<<<<<<< SEARCH
# Disable Serverless Operator if it already exists on the cluster
serverlessOperator:
enabled: true
=======
# NOTE:
# If the Serverless Operator already exists on the cluster, set enabled: false below to avoid conflicts.
# Example:
# serverlessOperator:
# enabled: false
serverlessOperator:
enabled: true
>>>>>>> REPLACE
</suggested_fix>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Member
|
@elai-shalev Same question again: does https://issues.redhat.com/browse/RHDHBUGS-2020 need to be backported to 1.7.1? Or can it wait until 1.8? |
Author
This also has an easy workaround, either by manually adding the NP or hacking the chart |
0bc62a4
into
redhat-developer:main
8 checks passed
5 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



This PR will introduce a fix to the backstage chart when installing Orchestrator with serverlessLogicOperator disabled, the network policies were not installed by the chart - but are still needed.
This is for the case that OSL already exists on the cluster, as happens in Upgrade scenarios.
This PR will fix the bug captured here.
Description of the change
Helm Condition change in charts/backstage/templates/network-policies.yaml
Checklist
Chart.yamlaccording to Semantic Versioning.values.yamland added to the corresponding README.md. The pre-commit utility can be used to generate the necessary content. Usepre-commit run -ato apply changes. The pre-commit Workflow will do this automatically for you if needed.pre-commithook.ct lintcommand.Summary by Sourcery
Ensure network policies are applied when the orchestrator is enabled even if the Serverless Logic Operator is disabled
Bug Fixes:
Enhancements:
Documentation: