-
Notifications
You must be signed in to change notification settings - Fork 302
KubeArchive loki: remove second tmp folder #7550
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
KubeArchive loki: remove second tmp folder #7550
Conversation
Code Review by GeminiThe changes correctly remove the No bugs or issues are found in the provided diff. The removal is consistent and resolves the stated problem. --- a/components/vector-kubearchive-log-collector/staging/stone-stg-rh01/loki-helm-values.yaml
+++ b/components/vector-kubearchive-log-collector/staging/stone-stg-rh01/loki-helm-values.yaml
@@ -28,11 +28,9 @@
# Add writable volume mounts for Loki data directories
extraVolumeMounts:
- name: loki-storage
mountPath: /var/loki
- - name: tmp-storage
- mountPath: /tmp
extraVolumes:
- name: loki-storage
emptyDir: {}
- - name: tmp-storage
- emptyDir: {}
# Basic Loki configuration with S3 storage
loki:
|
/lgtm |
905b4dc
to
9c5e24a
Compare
Code Review by GeminiThe pull request includes several changes, some of which appear unrelated to the commit message "KubeArchive loki: remove second tmp folder".
### Issues and Suggestions:
1. **Discrepancy between Commit Message and Changes:**
The commit message states "remove second tmp folder", which directly relates to the changes in `components/vector-kubearchive-log-collector/staging/stone-stg-rh01/loki-helm-values.yaml`. However, the PR also includes:
* Removal of `GOMEMLIMIT` environment variable in `components/mintmaker/production/base/manager_patch.yaml`.
* Update of `multi-platform-controller` references in `components/multi-platform-controller/base/kustomization.yaml`.
* Deletion of `rbac.yaml` and its reference in `components/vector-kubearchive-log-collector/base/kustomization.yaml`.
These additional changes are significant and are not explained by the current commit message. It is best practice for a commit to be atomic and for its message to accurately reflect all changes.
**Suggestion:**
* Consider splitting this into multiple commits. For example:
* One commit for the Loki `/tmp` folder fix.
* One commit for the `rbac.yaml` deletion (with a clear explanation of why it's being removed).
* One commit for the `GOMEMLIMIT` change.
* One commit for the `multi-platform-controller` dependency update.
* Alternatively, if all changes are indeed related to a single logical fix, update the commit message and body to clearly explain the rationale behind *all* modifications.
2. **Deletion of RBAC Definitions:**
The deletion of `components/vector-kubearchive-log-collector/base/rbac.yaml` and its removal from `components/vector-kubearchive-log-collector/base/kustomization.yaml` means that the `RoleBinding`s for `kubearchive-logging-component-maintainers` and `kubearchive-logging-admin` will no longer be applied. This is a functional change regarding permissions.
**Suggestion:**
* Confirm if these RBAC definitions are no longer needed or if they are being moved/redefined elsewhere.
* If they are intentionally removed, provide a clear explanation in the commit message/body (ideally in a separate commit) for why these permissions are no longer required for the `product-kubearchive-logging` namespace.
### Exact Lines for Changes:
No specific line changes are suggested for the existing diff, as the primary feedback is about commit structure and clarification of intent for the non-Loki-related changes. The changes made in the diff are syntactically correct for their intended purpose (deletion/update).
However, if the intent is to revert the unrelated changes and keep only the Loki `/tmp` fix, here are the lines that would need to be reverted:
**File: `components/mintmaker/production/base/manager_patch.yaml`**
To revert the removal of `GOMEMLIMIT`:
```diff
--- a/components/mintmaker/production/base/manager_patch.yaml
+++ b/components/mintmaker/production/base/manager_patch.yaml
@@ -13,3 +13,6 @@ spec:
requests:
cpu: 100m
memory: 8Gi
+- env:
+- - name: GOMEMLIMIT
+- value: "7GiB" File: --- a/components/multi-platform-controller/base/kustomization.yaml
+++ b/components/multi-platform-controller/base/kustomization.yaml
@@ -8,13 +8,13 @@
resources:
- common
- rbac
-- https://github.com/konflux-ci/multi-platform-controller/deploy/operator?ref=12cce4151fcc80327ffd03b9454aebaa2e068296
-- https://github.com/konflux-ci/multi-platform-controller/deploy/otp?ref=12cce4151fcc80327ffd03b9454aebaa2e068296
+- https://github.com/konflux-ci/multi-platform-controller/deploy/operator?ref=944fdc5bfb70a9e0ea84ea1232fc3ed2b8d924ba
+- https://github.com/konflux-ci/multi-platform-controller/deploy/otp?ref=944fdc5bfb70a9e0ea84ea1232fc3ed2b8d924ba
images:
- name: multi-platform-controller
newName: quay.io/konflux-ci/multi-platform-controller
-- newTag: 12cce4151fcc80327ffd03b9454aebaa2e068296
+- newTag: 944fdc5bfb70a9e0ea84ea1232fc3ed2b8d924ba
- name: multi-platform-otp-server
newName: quay.io/konflux-ci/multi-platform-controller-otp-service
-- newTag: 12cce4151fcc80327ffd03b9454aebaa2e068296
+- newTag: 944fdc5bfb70a9e0ea84ea1232fc3ed2b8d924ba File: --- a/components/vector-kubearchive-log-collector/base/kustomization.yaml
+++ b/components/vector-kubearchive-log-collector/base/kustomization.yaml
@@ -6,4 +6,4 @@
argocd.argoproj.io/sync-wave: "-1"
resources:
-- vector-pre.yaml
+- vector-pre.yaml
+- rbac.yaml And restore the
|
9c5e24a
to
473248f
Compare
Code Review by GeminiThe provided change removes an explicit Assuming Loki does not require a dedicated or persistent No bugs or issues are found in the provided diff. The change is a direct and appropriate solution to the described problem. |
473248f
to
c40e0ee
Compare
Signed-off-by: Hector Martinez <[email protected]>
c40e0ee
to
d619c0d
Compare
Code Review by GeminiThe provided change removes an explicit Assuming Loki does not require a dedicated or persistent No bugs or issues are found in the provided diff. The change is a direct and appropriate solution to the described problem. |
Code Review by GeminiThe changes align with the commit message, addressing a potential mount conflict by removing a redundant No bugs or issues were found in the provided diff. The changes are a direct removal of configuration that was causing a conflict. No further improvements are suggested for the changed lines. |
/lgtm |
/verify-owners |
/approve |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hugares, maruiz93, rh-hemartin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
c88a0c2
into
redhat-appstudio:main
Remove a tmp folder because there are two things trying to mount into
/tmp
. Added OWNER files as well.