Skip to content

Prepare release v0.28.0#688

Merged
lllamnyp merged 1 commit intomainfrom
release-v0.28.0
Mar 13, 2025
Merged

Prepare release v0.28.0#688
lllamnyp merged 1 commit intomainfrom
release-v0.28.0

Conversation

@kvaps
Copy link
Member

@kvaps kvaps commented Mar 10, 2025

Summary by CodeRabbit

  • Chores

    • Aligned container image references with the new repository namespace and updated version tags and digests across multiple services.
    • Refined metadata and configuration settings to support dynamic secret naming and improved image sourcing.
  • New Features

    • Enabled tenant namespace isolation by default, enhancing overall system security.

@kvaps kvaps requested a review from lllamnyp as a code owner March 10, 2025 21:52
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 10, 2025

Walkthrough

This pull request systematically updates Docker image references across the repository. Many files now use the new repository path (ghcr.io/cozystack/cozystack) instead of the former (ghcr.io/aenix-io/cozystack) and update their SHA256 digests. Version tags are upgraded (for example, from v0.27.0 to v0.28.0 in several components) and additional metadata (such as new labels in Kubernetes manifests) has been added. In addition, default configuration values—for instance, tenant isolation—have been revised.

Changes

File(s) Change Summary
packages/apps/clickhouse/images/clickhouse-backup.tag,
packages/apps/ferretdb/images/postgres-backup.tag,
packages/apps/http-cache/images/nginx-cache.tag,
packages/apps/kubernetes/images/{cluster-autoscaler.tag, kubevirt-cloud-provider.tag, kubevirt-csi-driver.tag, ubuntu-container-disk.tag},
packages/apps/mysql/images/mariadb-backup.tag,
packages/apps/postgres/images/postgres-backup.tag,
packages/extra/bootbox/images/matchbox.tag
Updated Docker image references by changing the repository path from ghcr.io/aenix-io/cozystack to ghcr.io/cozystack/cozystack, with corresponding SHA256 digest changes. Some images also reflect a version change (e.g. v0.27.0 to v0.28.0).
packages/core/installer/values.yaml,
packages/core/installer/Makefile,
packages/core/installer/templates/cozystack.yaml,
packages/core/testing/values.yaml
Revised core image settings: switched image name from “cozystack” to “installer”, updated version tags from v0.27.0 to v0.28.0, and refreshed the associated digests.
packages/extra/monitoring/images/grafana.tag,
packages/system/dashboard/charts/kubeapps/templates/dashboard/configmap.yaml,
packages/system/dashboard/values.yaml
Adjusted monitoring/dashboard images: Grafana image upgraded (v1.8.1 → v1.9.0) and dashboard configurations updated with new registry paths, tags, and digests.
packages/system/bucket/images/s3manager.tag,
packages/system/cilium/values.yaml,
packages/system/cozystack-api/values.yaml,
packages/system/cozystack-controller/values.yaml,
packages/system/kamaji/values.yaml,
packages/system/kubeovn/values.yaml,
packages/system/cozy-proxy/charts/cozy-proxy/values.yaml,
packages/system/kubeovn-webhook/values.yaml,
packages/system/kubeovn-webhook/templates/{deployment.yaml, mutatingwebhookconfiguration.yaml}
Updated image references for system-level services by revising registry addresses, image tags, and digests. Includes dynamic templating for secret names and labels, ensuring that system components use consistent, updated references.
manifests/cozystack-installer.yaml,
packages/apps/versions_map
Added a new namespace label (cozystack.io/system: "true") and updated container images in the installer manifest. Version hashes were revised and a new entry for virtual-machine 0.6.1 was added.
packages/apps/tenant/README.md,
packages/apps/tenant/values.schema.json
Changed the default value for tenant isolation from false to true, enforcing tenant namespace network policies by default.

Poem

Hop, hop—the images leap anew,
From old paths to ones so true.
With digests refreshed and labels bright,
Our containers now shine in updated light.
I twirl and nibble, code so grand,
Celebrating each change across the land! 🐰

Tip

⚡🧪 Multi-step agentic review comment chat (experimental)
  • We're introducing multi-step agentic chat in review comments. This experimental feature enhances review discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments.
    - To enable this feature, set early_access to true under in the settings.

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f615daa and 3d03b22.

📒 Files selected for processing (31)
  • manifests/cozystack-installer.yaml (3 hunks)
  • packages/apps/clickhouse/images/clickhouse-backup.tag (1 hunks)
  • packages/apps/ferretdb/images/postgres-backup.tag (1 hunks)
  • packages/apps/http-cache/images/nginx-cache.tag (1 hunks)
  • packages/apps/kubernetes/images/cluster-autoscaler.tag (1 hunks)
  • packages/apps/kubernetes/images/kubevirt-cloud-provider.tag (1 hunks)
  • packages/apps/kubernetes/images/kubevirt-csi-driver.tag (1 hunks)
  • packages/apps/kubernetes/images/ubuntu-container-disk.tag (1 hunks)
  • packages/apps/mysql/images/mariadb-backup.tag (1 hunks)
  • packages/apps/postgres/images/postgres-backup.tag (1 hunks)
  • packages/apps/tenant/README.md (1 hunks)
  • packages/apps/tenant/values.schema.json (1 hunks)
  • packages/apps/versions_map (3 hunks)
  • packages/core/installer/Makefile (1 hunks)
  • packages/core/installer/templates/cozystack.yaml (1 hunks)
  • packages/core/installer/values.yaml (1 hunks)
  • packages/core/testing/values.yaml (1 hunks)
  • packages/extra/bootbox/images/matchbox.tag (1 hunks)
  • packages/extra/monitoring/images/grafana.tag (1 hunks)
  • packages/system/bucket/images/s3manager.tag (1 hunks)
  • packages/system/cilium/values.yaml (1 hunks)
  • packages/system/cozy-proxy/charts/cozy-proxy/values.yaml (1 hunks)
  • packages/system/cozystack-api/values.yaml (1 hunks)
  • packages/system/cozystack-controller/values.yaml (1 hunks)
  • packages/system/dashboard/charts/kubeapps/templates/dashboard/configmap.yaml (1 hunks)
  • packages/system/dashboard/values.yaml (1 hunks)
  • packages/system/kamaji/values.yaml (1 hunks)
  • packages/system/kubeovn-webhook/templates/deployment.yaml (1 hunks)
  • packages/system/kubeovn-webhook/templates/mutatingwebhookconfiguration.yaml (1 hunks)
  • packages/system/kubeovn-webhook/values.yaml (1 hunks)
  • packages/system/kubeovn/values.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (29)
  • packages/apps/tenant/README.md
  • packages/core/installer/templates/cozystack.yaml
  • packages/apps/tenant/values.schema.json
  • packages/extra/monitoring/images/grafana.tag
  • packages/system/kubeovn-webhook/templates/mutatingwebhookconfiguration.yaml
  • packages/system/dashboard/charts/kubeapps/templates/dashboard/configmap.yaml
  • packages/apps/versions_map
  • packages/system/cozy-proxy/charts/cozy-proxy/values.yaml
  • packages/apps/kubernetes/images/kubevirt-csi-driver.tag
  • packages/system/bucket/images/s3manager.tag
  • packages/apps/clickhouse/images/clickhouse-backup.tag
  • packages/core/installer/Makefile
  • packages/system/kubeovn-webhook/values.yaml
  • packages/system/kamaji/values.yaml
  • packages/core/installer/values.yaml
  • packages/apps/mysql/images/mariadb-backup.tag
  • packages/system/cozystack-controller/values.yaml
  • packages/apps/http-cache/images/nginx-cache.tag
  • packages/system/cilium/values.yaml
  • packages/system/cozystack-api/values.yaml
  • manifests/cozystack-installer.yaml
  • packages/core/testing/values.yaml
  • packages/extra/bootbox/images/matchbox.tag
  • packages/system/kubeovn/values.yaml
  • packages/apps/kubernetes/images/cluster-autoscaler.tag
  • packages/apps/postgres/images/postgres-backup.tag
  • packages/system/dashboard/values.yaml
  • packages/apps/kubernetes/images/ubuntu-container-disk.tag
  • packages/apps/kubernetes/images/kubevirt-cloud-provider.tag
🧰 Additional context used
🪛 YAMLlint (1.35.1)
packages/system/kubeovn-webhook/templates/deployment.yaml

[error] 63-63: syntax error: expected , but found ''

(syntax)

🔇 Additional comments (1)
packages/apps/ferretdb/images/postgres-backup.tag (1)

1-1:

Details

❓ Verification inconclusive

Image reference has been successfully updated.

The Docker image reference has been updated from ghcr.io/aenix-io/cozystack to ghcr.io/cozystack/cozystack with a new SHA256 digest while maintaining the same version tag (0.9.0). This change aligns with the overall PR objective of preparing for release v0.28.0.

Verify that this new image has been tested and is compatible with the current system components, particularly with FerretDB.


🏁 Script executed:

#!/bin/bash
# Check if the new image exists in the registry
curl -s -o /dev/null -w "%{http_code}" "https://ghcr.io/v2/cozystack/cozystack/postgres-backup/manifests/0.9.0"

Length of output: 115


Attention: Authentication Check Required for Docker Image Manifest

The Docker image reference update to
ghcr.io/cozystack/cozystack/postgres-backup:0.9.0@sha256:2b6ba87f5688a439bd2ac12835a5ab9e601feb15c0c44ed0d9ca48cec7c52521
appears correct per the PR’s objective for release v0.28.0. However, the verification script returned a 401 Unauthorized response when attempting to retrieve the manifest from the registry. This likely indicates that the registry requires authentication to access this endpoint.

Action items:

  • Verify the image’s existence and digest using authenticated access (e.g., via a docker pull or an authenticated API call).
  • Confirm that the updated image has been fully tested and is compatible with FerretDB within your system’s integration tests.

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@kvaps kvaps force-pushed the release-v0.28.0 branch 9 times, most recently from 338e6e4 to 36a7d87 Compare March 13, 2025 10:43
@lllamnyp lllamnyp force-pushed the release-v0.28.0 branch 2 times, most recently from 5f1df32 to f615daa Compare March 13, 2025 12:36
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
hack/e2e.sh (1)

87-92: Review Updated QEMU Resource Parameters

The updated QEMU command now allocates 6 virtual CPUs (-smp 6) and 7680 MB memory (-m 7680) which is a notable change from the previous 4 CPUs and 8192 MB setting. This change appears to be intentional for optimizing performance or resource utilization. However, please verify that the reduced memory allocation is sufficient for the VMs’ workloads in your e2e tests and that the host environment supports these parameters without issues. For clarity and future maintainability, consider adding an inline comment explaining the rationale behind this configuration adjustment.

Suggested diff for adding an inline comment:

-  qemu-system-x86_64 -machine type=pc,accel=kvm -cpu host -smp 6 -m 7680 \
+  # Updated resource allocation: 6 vCPUs and 7680 MB memory per VM for optimized performance.
+  qemu-system-x86_64 -machine type=pc,accel=kvm -cpu host -smp 6 -m 7680 \
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5f1df32 and f615daa.

📒 Files selected for processing (32)
  • hack/e2e.sh (1 hunks)
  • manifests/cozystack-installer.yaml (3 hunks)
  • packages/apps/clickhouse/images/clickhouse-backup.tag (1 hunks)
  • packages/apps/ferretdb/images/postgres-backup.tag (1 hunks)
  • packages/apps/http-cache/images/nginx-cache.tag (1 hunks)
  • packages/apps/kubernetes/images/cluster-autoscaler.tag (1 hunks)
  • packages/apps/kubernetes/images/kubevirt-cloud-provider.tag (1 hunks)
  • packages/apps/kubernetes/images/kubevirt-csi-driver.tag (1 hunks)
  • packages/apps/kubernetes/images/ubuntu-container-disk.tag (1 hunks)
  • packages/apps/mysql/images/mariadb-backup.tag (1 hunks)
  • packages/apps/postgres/images/postgres-backup.tag (1 hunks)
  • packages/apps/tenant/README.md (1 hunks)
  • packages/apps/tenant/values.schema.json (1 hunks)
  • packages/apps/versions_map (3 hunks)
  • packages/core/installer/Makefile (1 hunks)
  • packages/core/installer/templates/cozystack.yaml (1 hunks)
  • packages/core/installer/values.yaml (1 hunks)
  • packages/core/testing/values.yaml (1 hunks)
  • packages/extra/bootbox/images/matchbox.tag (1 hunks)
  • packages/extra/monitoring/images/grafana.tag (1 hunks)
  • packages/system/bucket/images/s3manager.tag (1 hunks)
  • packages/system/cilium/values.yaml (1 hunks)
  • packages/system/cozy-proxy/charts/cozy-proxy/values.yaml (1 hunks)
  • packages/system/cozystack-api/values.yaml (1 hunks)
  • packages/system/cozystack-controller/values.yaml (1 hunks)
  • packages/system/dashboard/charts/kubeapps/templates/dashboard/configmap.yaml (1 hunks)
  • packages/system/dashboard/values.yaml (1 hunks)
  • packages/system/kamaji/values.yaml (1 hunks)
  • packages/system/kubeovn-webhook/templates/deployment.yaml (1 hunks)
  • packages/system/kubeovn-webhook/templates/mutatingwebhookconfiguration.yaml (1 hunks)
  • packages/system/kubeovn-webhook/values.yaml (1 hunks)
  • packages/system/kubeovn/values.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (28)
  • packages/core/installer/templates/cozystack.yaml
  • packages/system/dashboard/charts/kubeapps/templates/dashboard/configmap.yaml
  • packages/apps/tenant/README.md
  • packages/apps/tenant/values.schema.json
  • packages/extra/monitoring/images/grafana.tag
  • packages/core/installer/Makefile
  • packages/apps/http-cache/images/nginx-cache.tag
  • packages/system/bucket/images/s3manager.tag
  • packages/apps/clickhouse/images/clickhouse-backup.tag
  • packages/system/kubeovn/values.yaml
  • packages/core/installer/values.yaml
  • packages/apps/versions_map
  • packages/system/kubeovn-webhook/values.yaml
  • packages/extra/bootbox/images/matchbox.tag
  • manifests/cozystack-installer.yaml
  • packages/apps/kubernetes/images/ubuntu-container-disk.tag
  • packages/system/cozy-proxy/charts/cozy-proxy/values.yaml
  • packages/apps/kubernetes/images/kubevirt-csi-driver.tag
  • packages/system/kamaji/values.yaml
  • packages/apps/mysql/images/mariadb-backup.tag
  • packages/system/cozystack-api/values.yaml
  • packages/core/testing/values.yaml
  • packages/apps/postgres/images/postgres-backup.tag
  • packages/apps/kubernetes/images/cluster-autoscaler.tag
  • packages/system/cilium/values.yaml
  • packages/system/cozystack-controller/values.yaml
  • packages/system/dashboard/values.yaml
  • packages/apps/kubernetes/images/kubevirt-cloud-provider.tag
🧰 Additional context used
🪛 YAMLlint (1.35.1)
packages/system/kubeovn-webhook/templates/deployment.yaml

[error] 63-63: syntax error: expected , but found ''

(syntax)

🔇 Additional comments (2)
packages/apps/ferretdb/images/postgres-backup.tag (1)

1-1: Image reference correctly updated to the new namespace.

The repository namespace has been properly migrated from ghcr.io/aenix-io/cozystack to ghcr.io/cozystack/cozystack while maintaining the same version tag (0.9.0). The SHA256 digest has been updated accordingly. This change aligns with the PR objective of preparing for release v0.28.0 by standardizing image references across the codebase.

Including both the version tag and SHA256 digest is a good security practice that ensures reproducibility and prevents unauthorized changes to the same tag.

packages/system/kubeovn-webhook/templates/mutatingwebhookconfiguration.yaml (1)

8-8: Dynamic Label Update for Consistency

The change to update the app.kubernetes.io/name label to use the dynamic value via {{ include "namespace-annotation-webhook.fullname" . }} is a step toward improving configuration consistency. Please verify that the function returns a valid string meeting your Kubernetes naming conventions.

Comment on lines +63 to 64
secretName: {{ include "namespace-annotation-webhook.fullname" . }}-tls
defaultMode: 0400
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

⚠️ Potential issue

Quote the dynamic secret name for valid YAML syntax

The dynamic secretName now concatenates the templated full name with -tls. However, YAMLlint indicates a syntax error due to the unquoted scalar. To ensure proper YAML parsing, please wrap the entire expression in quotes. For example:

-            secretName: {{ include "namespace-annotation-webhook.fullname" . }}-tls
+            secretName: "{{ include "namespace-annotation-webhook.fullname" . }}-tls"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
secretName: {{ include "namespace-annotation-webhook.fullname" . }}-tls
defaultMode: 0400
secretName: "{{ include "namespace-annotation-webhook.fullname" . }}-tls"
defaultMode: 0400
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 63-63: syntax error: expected , but found ''

(syntax)

Signed-off-by: Andrei Kvapil <[email protected]>
Copy link
Member Author

@kvaps kvaps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lllamnyp lllamnyp merged commit 728743d into main Mar 13, 2025
3 checks passed
@lllamnyp lllamnyp deleted the release-v0.28.0 branch March 13, 2025 13:18
@coderabbitai coderabbitai bot mentioned this pull request Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants