Skip to content

Comments

Robot Upgrade: prometheus-adapter chart upgrade from 4.10.0 to 5.3.0#3936

Open
weizhoublue wants to merge 1 commit intomainfrom
upgrade/prometheus-adapter/5.3.0
Open

Robot Upgrade: prometheus-adapter chart upgrade from 4.10.0 to 5.3.0#3936
weizhoublue wants to merge 1 commit intomainfrom
upgrade/prometheus-adapter/5.3.0

Conversation

@weizhoublue
Copy link
Member

I am robot, upgrade: project prometheus-adapter chart upgrade from 4.10.0 to 5.3.0

@gemini-code-assist
Copy link

Summary of Changes

Hello @weizhoublue, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request performs a significant upgrade of the prometheus-adapter Helm chart from version 4.10.0 to 5.3.0. This update brings the chart in line with newer Kubernetes standards by removing deprecated API versions and increasing the minimum Kubernetes requirement. It also enhances deployment flexibility with new configuration options and updates the documentation to reflect modern Helm usage, including OCI artifact distribution.

Highlights

  • Chart Version Upgrade: The prometheus-adapter Helm chart has been upgraded from version 4.10.0 to 5.3.0, and the underlying application version from v0.11.2 to v0.12.0.
  • Kubernetes API Compatibility: The minimum required Kubernetes version has been raised from 1.14+ to 1.21+. Support for deprecated Kubernetes APIs, specifically policy/v1beta1 for PodDisruptionBudgets and PodSecurityPolicy resources, has been removed.
  • Helm Usage and Documentation Updates: The README.md files have been updated to reflect modern Helm usage, including instructions for OCI Artifact distribution, and now include detailed upgrade notes for version 5.0.0.
  • New Configuration Options: New configuration parameters have been introduced for revisionHistoryLimit in deployments and certificates, automountServiceAccountToken for service accounts, and unhealthyPodEvictionPolicy for PodDisruptionBudgets.
  • Prometheus Query Enhancement: Prometheus memory queries in the README.md have been modified to include the round() function for improved metric presentation.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • charts/prometheus-adapter/config
    • Updated the VERSION export from 4.10.0 to 5.3.0.
  • charts/prometheus-adapter/prometheus-adapter/Chart.yaml
    • Updated appVersion from v0.11.2 to v0.12.0.
    • Added an icon field pointing to the Prometheus icon.
    • Added url fields for maintainers.
    • Updated version and dependencies.version from 4.10.0 to 5.3.0.
  • charts/prometheus-adapter/prometheus-adapter/README.md
    • Updated Kubernetes prerequisite from 1.14+ to 1.21+.
    • Revised usage instructions to include OCI Artifact distribution and updated helm install commands.
    • Added upgrade notes for version 5.0.0, detailing removal of deprecated APIs and increased Kubernetes version.
    • Modified Prometheus memory queries to wrap sum with round().
  • charts/prometheus-adapter/prometheus-adapter/charts/prometheus-adapter/Chart.yaml
    • Updated appVersion from v0.11.2 to v0.12.0.
    • Added an icon field.
    • Added url fields for maintainers.
    • Updated version from 4.10.0 to 5.3.0.
  • charts/prometheus-adapter/prometheus-adapter/charts/prometheus-adapter/README.md
    • Updated Kubernetes prerequisite from 1.14+ to 1.21+.
    • Revised usage instructions to include OCI Artifact distribution and updated helm install commands.
    • Added upgrade notes for version 5.0.0, detailing removal of deprecated APIs and increased Kubernetes version.
    • Modified Prometheus memory queries to wrap sum with round().
  • charts/prometheus-adapter/prometheus-adapter/charts/prometheus-adapter/templates/_helpers.tpl
    • Removed the k8s-prometheus-adapter.pdb.apiVersion helper function.
  • charts/prometheus-adapter/prometheus-adapter/charts/prometheus-adapter/templates/certmanager.yaml
    • Added revisionHistoryLimit configuration for both CA and regular certificates.
  • charts/prometheus-adapter/prometheus-adapter/charts/prometheus-adapter/templates/deployment.yaml
    • Added revisionHistoryLimit to the deployment specification.
    • Added automountServiceAccountToken to the pod specification.
  • charts/prometheus-adapter/prometheus-adapter/charts/prometheus-adapter/templates/extra-objects.yaml
    • Added a new template file to allow deployment of extra manifests.
  • charts/prometheus-adapter/prometheus-adapter/charts/prometheus-adapter/templates/pdb.yaml
    • Hardcoded apiVersion to policy/v1.
    • Added unhealthyPodEvictionPolicy to the PodDisruptionBudget specification.
  • charts/prometheus-adapter/prometheus-adapter/charts/prometheus-adapter/templates/psp.yaml
    • Removed the entire file, eliminating PodSecurityPolicy resources.
  • charts/prometheus-adapter/prometheus-adapter/charts/prometheus-adapter/templates/serviceaccount.yaml
    • Added automountServiceAccountToken to the service account definition.
  • charts/prometheus-adapter/prometheus-adapter/charts/prometheus-adapter/values.yaml
    • Added nameOverride and fullnameOverride for chart naming.
    • Added pullSecrets for image pull.
    • Removed the psp configuration section.
    • Added automountServiceAccountToken at the top level.
    • Added caCertRevisionHistoryLimit and certRevisionHistoryLimit for cert-manager.
    • Added extraManifests for custom resources.
    • Added revisionHistoryLimit for deployments.
    • Added unhealthyPodEvictionPolicy to podDisruptionBudget configuration.
  • charts/prometheus-adapter/prometheus-adapter/values.yaml
    • Added nameOverride and fullnameOverride for chart naming.
    • Updated image.tag from v0.11.2 to v0.12.0.
    • Added image.pullSecrets.
    • Removed the psp configuration section.
    • Added automountServiceAccountToken at the top level.
    • Added unhealthyPodEvictionPolicy to podDisruptionBudget configuration.
    • Added caCertRevisionHistoryLimit and certRevisionHistoryLimit for cert-manager.
    • Added extraManifests for custom resources.
    • Added revisionHistoryLimit for deployments.
Activity
  • The pull request was created by a bot (weizhoublue) to automate the chart upgrade.
  • No human review comments or activities have been recorded yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request updates the prometheus-adapter Helm chart from version 4.10.0 to 5.3.0. This involves updating version numbers in config and Chart.yaml files, modifying the README.md to reflect new installation methods (OCI Artifacts) and Kubernetes version requirements (1.21+), and updating the Prometheus query syntax in values.yaml. Additionally, it removes PodSecurityPolicy related templates and values, and introduces new fields for revisionHistoryLimit in deployments and cert-manager configurations, and automountServiceAccountToken for service accounts. The changes align with the new chart version's features and deprecations.

- Helm Repository: `https://prometheus-community.github.io/helm-charts` with chart `prometheus-adapter`

_See [`helm repo`](https://helm.sh/docs/helm/helm_repo/) for command documentation._
The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository.

Choose a reason for hiding this comment

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

medium

There's a typo in the markdown link for helm repo. It appears to be nested incorrectly, resulting in a broken link. It should be [helm repo](https://helm.sh/docs/helm/helm_repo/).

Suggested change
The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository.
The installation instructions use the OCI registry. Refer to the [`helm repo`](https://helm.sh/docs/helm/helm_repo/) command documentation for information on installing charts via the traditional repository.

- Helm Repository: `https://prometheus-community.github.io/helm-charts` with chart `prometheus-adapter`

_See [`helm repo`](https://helm.sh/docs/helm/helm_repo/) for command documentation._
The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository.

Choose a reason for hiding this comment

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

medium

The markdown link for helm repo is malformed. It seems like there's an extra [helm repo] around the actual link, which will cause it to render incorrectly. Please correct the syntax.

Suggested change
The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository.
The installation instructions use the OCI registry. Refer to the [`helm repo`](https://helm.sh/docs/helm/helm_repo/) command documentation for information on installing charts via the traditional repository.

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.

2 participants