-
Notifications
You must be signed in to change notification settings - Fork 306
chore(KFLUXSPRT-4515): add konflux-support-ops to development and staging #8110
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Kousalya1998 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Code Review by Gemini### `argo-cd-apps/base/all-clusters/infra-deployments/kustomization.yaml`
* **Issue**: The `disable-self-provisioning-for-all-cluster` resource is removed from the `all-clusters` base kustomization. This, in conjunction with the deletion of `configs/disable-self-provisioning-for-all-cluster/self-provisioners_clusterrolebinding.yaml`, removes the mechanism that previously disabled self-provisioning for all clusters. This is a significant functional change that is not explicitly stated in the commit message and could lead to unintended re-enabling of self-provisioning.
* **Suggestion**: If disabling self-provisioning is still a requirement, this functionality needs to be restored or replaced. If the intent is to re-enable self-provisioning, this should be clearly documented in the commit message.
### `argo-cd-apps/base/member/infra-deployments/konflux-support-ops/konflux-support-ops.yaml`
* **Issue**: The `destination.namespace` is hardcoded to `cert-manager`. It is generally not recommended to deploy unrelated applications into the namespace of another critical component like `cert-manager`.
* **Suggestion**: Consider deploying `konflux-support-ops` into its own dedicated namespace (e.g., `konflux-support-ops`) or a more appropriate operational namespace.
```diff
--- a/argo-cd-apps/base/member/infra-deployments/konflux-support-ops/konflux-support-ops.yaml
+++ b/argo-cd-apps/base/member/infra-deployments/konflux-support-ops/konflux-support-ops.yaml
@@ -26,7 +26,7 @@
repoURL: https://github.com/redhat-appstudio/infra-deployments.git
targetRevision: main
destination:
- namespace: cert-manager
+ namespace: konflux-support-ops # Or another appropriate dedicated namespace
server: '{{server}}'
syncPolicy:
automated:
--- a/argo-cd-apps/base/member/infra-deployments/konflux-support-ops/konflux-support-ops.yaml
+++ b/argo-cd-apps/base/member/infra-deployments/konflux-support-ops/konflux-support-ops.yaml
@@ -30,7 +30,7 @@
syncPolicy:
automated:
prune: true
- selfHeal: true
+ selfHeal: true # Consider setting to true for operational components
syncOptions:
- CreateNamespace=true
retry:
|
0fffbbf
to
4479d68
Compare
Code Review by GeminiHere's a review of the provided code changes:
### Issues and Suggestions
**1. `argo-cd-apps/base/member/infra-deployments/konflux-support-ops/konflux-support-ops.yaml`**
* **Issue**: The `destination.namespace` is set to `cert-manager`. It is highly unlikely that `konflux-support-ops` should be deployed into the `cert-manager` namespace. This could lead to permission issues, resource conflicts, or simply an incorrect logical grouping of components.
* **Suggestion**: Change the `namespace` to a more appropriate one for `konflux-support-ops`, such as `konflux-system`, `appstudio-system`, or a dedicated `konflux-support-ops` namespace if it's meant to be isolated.
```diff
--- a/argo-cd-apps/base/member/infra-deployments/konflux-support-ops/konflux-support-ops.yaml
+++ b/argo-cd-apps/base/member/infra-deployments/konflux-support-ops/konflux-support-ops.yaml
@@ -26,7 +26,7 @@
repoURL: https://github.com/redhat-appstudio/infra-deployments.git
targetRevision: main
destination:
- namespace: cert-manager
+ namespace: <appropriate-namespace> # e.g., konflux-system or konflux-support-ops
server: '{{server}}'
syncPolicy:
automated: 2.
--- a/components/konflux-support-ops/development/konflux-support-ops-generator.yaml
+++ b/components/konflux-support-ops/development/konflux-support-ops-generator.yaml
@@ -4,9 +4,9 @@
metadata:
name: konflux-support-ops
name: konflux-support-ops
-repo: <?>
+repo: <helm-chart-repo-url> # e.g., https://charts.example.com/
version: 0.19.0
-namespace: <?>
+namespace: <target-namespace> # e.g., konflux-system
releaseName: konflux-support-ops
valuesInline:
resources: 3.
--- a/components/konflux-support-ops/staging/konflux-support-ops-generator.yaml
+++ b/components/konflux-support-ops/staging/konflux-support-ops-generator.yaml
@@ -4,9 +4,9 @@
metadata:
name: konflux-support-ops
name: konflux-support-ops
-repo: <?>
+repo: <helm-chart-repo-url> # e.g., https://charts.example.com/
version: 0.19.0
-namespace: <?>
+namespace: <target-namespace> # e.g., konflux-system
releaseName: konflux-support-ops
valuesInline:
resources: 4.
--- a/components/konflux-support-ops/staging/kustomization.yaml
+++ b/components/konflux-support-ops/staging/kustomization.yaml
@@ -3,4 +3,4 @@
kind: Kustomization
generators:
-- konflux-support-ops-generator.yaml
+- konflux-support-ops-generator.yaml
\ No newline at end of file |
metadata: | ||
name: konflux-support-ops | ||
name: konflux-support-ops | ||
repo: <?> |
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.
@avi-biton Any idea which repo link should I link here?
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.
Are you using helm chart to deploy it?
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.
No, I a not using helm chat. In that case what should I fill in there?
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.
If support-ops is not deployed by helm chart, you should not use HelmChartInflationGenerator
Take a look at https://github.com/redhat-appstudio/infra-deployments/tree/main/components/smee-client and use it as an example for how to create deployment from your image
name: konflux-support-ops | ||
repo: <?> | ||
version: 0.19.0 | ||
namespace: <?> |
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.
@avi-biton should I create a new namespace here?
metadata: | ||
name: konflux-support-ops | ||
name: konflux-support-ops | ||
repo: <?> |
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.
@avi-biton Any idea which repo link should I link here?
name: konflux-support-ops | ||
repo: <?> | ||
version: 0.19.0 | ||
namespace: <?> |
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.
@avi-biton Should I create a new namespace or use an existing one?
@Kousalya1998: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
repoURL: https://github.com/redhat-appstudio/infra-deployments.git | ||
targetRevision: main | ||
destination: | ||
namespace: cert-manager |
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.
Why is the namespace cert-manager
?
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
No description provided.