Skip to content

feat(base-cluster/cert-manager): use oci repository#1650

Merged
cwrau merged 1 commit intomainfrom
feat/base-cluster/use-oci-repository-for-jetstack
Aug 6, 2025
Merged

feat(base-cluster/cert-manager): use oci repository#1650
cwrau merged 1 commit intomainfrom
feat/base-cluster/use-oci-repository-for-jetstack

Conversation

@cwrau
Copy link
Copy Markdown
Member

@cwrau cwrau commented Aug 5, 2025

See https://cert-manager.io/docs/installation/helm/#installing-from-the-oci-registry

Summary by CodeRabbit

  • Chores
    • Updated the repository URL for the "jetstack" chart to use an OCI registry.
    • Updated the "cert-manager" chart version to "v1.17.2".

Copilot AI review requested due to automatic review settings August 5, 2025 07:54
@cwrau cwrau enabled auto-merge August 5, 2025 07:54
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Aug 5, 2025

Walkthrough

The repository URL for the "jetstack" Helm chart source was switched from an HTTPS URL to an OCI registry URL, and the "cert-manager" chart version string was updated from "1.17.2" to "v1.17.2" in the charts/base-cluster/values.yaml file.

Changes

Cohort / File(s) Change Summary
Helm Chart Source & Version Update
charts/base-cluster/values.yaml
Changed "jetstack" Helm repo from HTTPS to OCI URL and updated "cert-manager" chart version string.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

base-cluster

Suggested reviewers

  • marvinWolff
  • tasches

Poem

A hop to the cloud, a leap to OCI,
Jetstack’s new address—how time does fly!
Cert-manager’s version gets a tiny tweak,
YAML updated, the future looks sleek.
With carrots in paw, I cheer and I grin—
For tidy changes let the best reviews begin! 🥕

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 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 d52b502 and 1506410.

📒 Files selected for processing (1)
  • charts/base-cluster/values.yaml (1 hunks)
🧰 Additional context used
🧠 Learnings (6)
📓 Common learnings
Learnt from: cwrau
PR: teutonet/teutonet-helm-charts#1604
File: charts/base-cluster/templates/monitoring/metrics-server/metrics-server.yaml:20-21
Timestamp: 2025-07-24T09:41:28.072Z
Learning: The official kubernetes-sigs/metrics-server Helm chart pins the image tag to a specific version in its values.yaml by default, ensuring reproducible deployments without requiring explicit tag specification in consuming charts.
Learnt from: cwrau
PR: teutonet/teutonet-helm-charts#1602
File: charts/base-cluster/templates/monitoring/kube-prometheus-stack/oauth-proxy.yaml:38-40
Timestamp: 2025-07-24T09:49:40.961Z
Learning: Official Helm charts like oauth2-proxy manage image versioning automatically through their Chart.yaml appVersion field, making manual tag pinning in consumer values unnecessary and potentially harmful. The chart version itself provides reproducibility by ensuring the correct image tag is used.
Learnt from: cwrau
PR: teutonet/teutonet-helm-charts#1601
File: charts/base-cluster/templates/dns/external-dns.yaml:33-39
Timestamp: 2025-07-24T09:56:41.380Z
Learning: In the teutonet-helm-charts base-cluster chart, secret names like "external-dns" for Cloudflare provider are intentionally hard-coded. Users who need custom secret names should use Helm's `valuesFrom` feature to override values rather than expecting dedicated fields in values.yaml. This design keeps the values.yaml clean while still allowing full customization flexibility.
Learnt from: cwrau
PR: teutonet/teutonet-helm-charts#1604
File: charts/base-cluster/templates/monitoring/metrics-server/metrics-server.yaml:20-21
Timestamp: 2025-07-24T09:41:28.072Z
Learning: The kubernetes-sigs/metrics-server Helm chart uses `v{{ .Chart.AppVersion }}` as the default image tag when `image.tag` is empty, which provides pinned versioning through the chart's AppVersion rather than using floating tags like "latest".
Learnt from: cwrau
PR: teutonet/teutonet-helm-charts#1601
File: charts/base-cluster/templates/dns/external-dns.yaml:30-32
Timestamp: 2025-07-24T09:55:53.655Z
Learning: In charts/base-cluster/templates/dns/external-dns.yaml, the dns.provider field in values.yaml has always been expected to be a map format (e.g., `{ cloudflare: {} }`), never a string format. The template correctly uses `{{ .Values.dns.provider | keys | first }}` to extract the provider name from the map keys.
📚 Learning: in the teutonet-helm-charts base-cluster chart, secret names like "external-dns" for cloudflare prov...
Learnt from: cwrau
PR: teutonet/teutonet-helm-charts#1601
File: charts/base-cluster/templates/dns/external-dns.yaml:33-39
Timestamp: 2025-07-24T09:56:41.380Z
Learning: In the teutonet-helm-charts base-cluster chart, secret names like "external-dns" for Cloudflare provider are intentionally hard-coded. Users who need custom secret names should use Helm's `valuesFrom` feature to override values rather than expecting dedicated fields in values.yaml. This design keeps the values.yaml clean while still allowing full customization flexibility.

Applied to files:

  • charts/base-cluster/values.yaml
📚 Learning: official helm charts like oauth2-proxy manage image versioning automatically through their chart.yam...
Learnt from: cwrau
PR: teutonet/teutonet-helm-charts#1602
File: charts/base-cluster/templates/monitoring/kube-prometheus-stack/oauth-proxy.yaml:38-40
Timestamp: 2025-07-24T09:49:40.961Z
Learning: Official Helm charts like oauth2-proxy manage image versioning automatically through their Chart.yaml appVersion field, making manual tag pinning in consumer values unnecessary and potentially harmful. The chart version itself provides reproducibility by ensuring the correct image tag is used.

Applied to files:

  • charts/base-cluster/values.yaml
📚 Learning: the official kubernetes-sigs/metrics-server helm chart pins the image tag to a specific version in i...
Learnt from: cwrau
PR: teutonet/teutonet-helm-charts#1604
File: charts/base-cluster/templates/monitoring/metrics-server/metrics-server.yaml:20-21
Timestamp: 2025-07-24T09:41:28.072Z
Learning: The official kubernetes-sigs/metrics-server Helm chart pins the image tag to a specific version in its values.yaml by default, ensuring reproducible deployments without requiring explicit tag specification in consuming charts.

Applied to files:

  • charts/base-cluster/values.yaml
📚 Learning: in charts/base-cluster/templates/dns/external-dns.yaml, the dns.provider field in values.yaml has al...
Learnt from: cwrau
PR: teutonet/teutonet-helm-charts#1601
File: charts/base-cluster/templates/dns/external-dns.yaml:30-32
Timestamp: 2025-07-24T09:55:53.655Z
Learning: In charts/base-cluster/templates/dns/external-dns.yaml, the dns.provider field in values.yaml has always been expected to be a map format (e.g., `{ cloudflare: {} }`), never a string format. The template correctly uses `{{ .Values.dns.provider | keys | first }}` to extract the provider name from the map keys.

Applied to files:

  • charts/base-cluster/values.yaml
📚 Learning: the kubernetes-sigs/metrics-server helm chart uses `v{{ .chart.appversion }}` as the default image t...
Learnt from: cwrau
PR: teutonet/teutonet-helm-charts#1604
File: charts/base-cluster/templates/monitoring/metrics-server/metrics-server.yaml:20-21
Timestamp: 2025-07-24T09:41:28.072Z
Learning: The kubernetes-sigs/metrics-server Helm chart uses `v{{ .Chart.AppVersion }}` as the default image tag when `image.tag` is empty, which provides pinned versioning through the chart's AppVersion rather than using floating tags like "latest".

Applied to files:

  • charts/base-cluster/values.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: check licenses
  • GitHub Check: lint helm chart (base-cluster)
🔇 Additional comments (1)
charts/base-cluster/values.yaml (1)

141-143: Explicitly specify repository type: oci for OCI-based charts

Add type: oci under the repository entry to ensure Flux Source-Controller, HelmController, and Renovate treat it as an OCI registry. Without it, they may default to a standard Helm repo and fail to pull the chart.

  • File: charts/base-cluster/values.yaml (around lines 141–143)
       url: oci://quay.io/jetstack/charts
+      type: oci
       charts:
         cert-manager: v1.17.2

Please verify:

  1. Flux Source-Controller ≥ v0.37 (Flux ≥ v0.41) is in use for native OCI support.
  2. The tag v1.17.2 exists under quay.io/jetstack/charts/cert-manager.
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/base-cluster/use-oci-repository-for-jetstack

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 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.
    • Explain this complex logic.
    • 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 explain this code block.
  • 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 explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests 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.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the cert-manager Helm chart configuration to use the OCI (Open Container Initiative) registry instead of the traditional Helm chart repository, following the official cert-manager documentation recommendation.

  • Migrates from HTTPS-based Helm repository to OCI registry at quay.io
  • Updates cert-manager version format to include 'v' prefix as required by OCI registry

@cwrau cwrau added this pull request to the merge queue Aug 6, 2025
Merged via the queue into main with commit ef6382d Aug 6, 2025
35 checks passed
@cwrau cwrau deleted the feat/base-cluster/use-oci-repository-for-jetstack branch August 6, 2025 08:43
github-merge-queue Bot pushed a commit that referenced this pull request Aug 15, 2025
🤖 I have created a release *beep* *boop*
---


##
[9.2.0](base-cluster-v9.1.1...base-cluster-v9.2.0)
(2025-08-14)


### Features

* **base-cluster/cert-manager:** enableCertificateOwnerRef
([#1653](#1653))
([283d86f](283d86f))
* **base-cluster/cert-manager:** use oci repository
([#1650](#1650))
([ef6382d](ef6382d))
* **base-cluster/kyverno:** enable policyExceptions for kyverno
([#1655](#1655))
([2029bcb](2029bcb))


### Bug Fixes

* **base-cluster/certificates:** certificate for `baseDomain` is not
used
([#1644](#1644))
([6a3ccae](6a3ccae))
* **base-cluster/dns:** only deploy external-dns HelmRepository if
needed
([#1645](#1645))
([7d313f2](7d313f2))
* **base-cluster/ingress-nginx:** set a couple of timeouts in the
loadbalancer to the maximum value
([#1571](#1571))
([bc6fe78](bc6fe78))
* **base-cluster/monitoring:** remove versions from datasources so they
always take precedence
([#1651](#1651))
([6821ed8](6821ed8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- New Features
  - Cert-manager: option to set certificate owner references.
  - Cert-manager: support for pulling from an OCI repository.
  - Kyverno: ability to enable policy exceptions.

- Bug Fixes
  - Corrected use of the base domain certificate.
  - External DNS repository now created only when required.
- Ingress load balancer timeouts set to maximum to prevent premature
terminations.
  - Monitoring datasources prioritized by removing version pinning.

- Chores
  - Bumped base-cluster chart to 9.2.0 and updated release notes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants