Skip to content

change Kmesh deploy yaml#1507

Merged
kmesh-bot merged 1 commit intokmesh-net:mainfrom
LiZhenCheng9527:kmesh-yaml
Sep 25, 2025
Merged

change Kmesh deploy yaml#1507
kmesh-bot merged 1 commit intokmesh-net:mainfrom
LiZhenCheng9527:kmesh-yaml

Conversation

@LiZhenCheng9527
Copy link
Copy Markdown
Contributor

What type of PR is this?

What this PR does / why we need it:
After Kmesh support dns proxy, the YAML file for Kmesh deployment lacks the corresponding environment variable configurations.
Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


…nts of Kmesh.

Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @LiZhenCheng9527, 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 addresses a configuration oversight in the Kmesh deployment YAML. With Kmesh now supporting DNS proxy capabilities, this change ensures that the deployment manifest correctly enables this feature by adding the required environment variable. The update is essential for the proper functioning of the DNS proxy within the Kmesh environment.

Highlights

  • DNS Proxy Configuration: The Kmesh deployment YAML has been updated to include the KMESH_ENABLE_DNS_PROXY environment variable, setting its value to "true". This change is crucial for enabling the DNS proxy functionality in Kmesh, which was previously lacking the necessary configuration.
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

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.


YAML lines now grow, DNS proxy takes its place, New features now live.

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
Copy Markdown

@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

This pull request adds the KMESH_ENABLE_DNS_PROXY environment variable to the Kmesh daemonset deployment YAML, with the goal of enabling the DNS proxy feature. However, based on the provided code, this environment variable is not being read or utilized by the kmesh-daemon. This means the change, as it stands, is ineffective. I have added a critical review comment detailing this issue.

Comment on lines +110 to +111
- name: KMESH_ENABLE_DNS_PROXY
value: "true"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

The environment variable KMESH_ENABLE_DNS_PROXY is added here, but it does not appear to be used anywhere in the provided Go source files, such as daemon/options/options.go or pkg/controller/ads/dns.go. Without code to read this variable and conditionally enable the DNS proxy feature, this change will have no effect.

To fix this, the kmesh-daemon application needs to be modified to check for this environment variable and enable the DNS proxy functionality accordingly. For example, you might use os.Getenv("KMESH_ENABLE_DNS_PROXY") and parse the boolean value to control whether the DNS controller is started.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.30%. Comparing base (6fd6a3a) to head (f160875).
⚠️ Report is 24 commits behind head on main.
see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa9c947...f160875. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

fieldRef:
fieldPath: spec.nodeName
- name: KMESH_ENABLE_DNS_PROXY
value: "true"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It is intended to be false at beginning

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Then should we also change feature.dnsProxy.enable to false in the Helm values?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, i am mistaken. It is now enabled by default in the helm

@hzxuzhonghu
Copy link
Copy Markdown
Member

/approve
/lgtm

@kmesh-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kmesh-bot kmesh-bot merged commit 83c3d63 into kmesh-net:main Sep 25, 2025
12 checks passed
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.

3 participants