Normalize line endings to LF and add .gitattributes for branch release 1.16#1029
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a .gitattributes file to normalize line endings across the repository and applies formatting/line-ending normalization to various documentation files, including compatibility guides and upgrade notes in both English and Chinese. The reviewer identified several minor grammatical errors, typos, and a missing trailing newline in the documentation files (compatibility.md and v1.11-v1.12.md), which should be addressed to improve clarity and maintain formatting standards.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
|
||
| ### API Changes | ||
|
|
||
| - Introduced `SecretRef` to `Karmada` API as part of the configuration for connecting to an external etcd cluster can be used to reference a secret that contains credentials for connecting to an external etcd cluster. |
There was a problem hiding this comment.
The sentence is missing a relative pronoun (like "which" or "that") or needs to be split to be grammatically correct.
Suggested change:
- Introduced `SecretRef` to `Karmada` API as part of the configuration for connecting to an external etcd cluster, which can be used to reference a secret that contains credentials for connecting to an external etcd cluster.|
|
||
| - Introduced `SecretRef` to `Karmada` API as part of the configuration for connecting to an external etcd cluster can be used to reference a secret that contains credentials for connecting to an external etcd cluster. | ||
| - Introduced `extraVolumes` and `extraVolumemounts` to the `Karmada` API to optionally specify extra volumes and volume mounts for the Karmada API server component. | ||
| - Introduced `ApiServerService` field to `Karmada` API as part of the Karmada instance status can be used to reference the API Server service for that instance. This is useful for scenarios where higher level operators need to discover the API Server service of a Karmada instance for tasks like setting up ingress traffic. |
There was a problem hiding this comment.
The sentence is missing a relative pronoun and has a double space typo ("instance for").
Suggested change:
- Introduced `ApiServerService` field to `Karmada` API as part of the Karmada instance status, which can be used to reference the API Server service for that instance. This is useful for scenarios where higher level operators need to discover the API Server service of a Karmada instance for tasks like setting up ingress traffic.| ### karmada-controller-manager | ||
|
|
||
| - Introduced feature gate `StatefulFailoverInjection` to control whether Karmada collects and injects state information during a failover event for stateful application. | ||
| - The feature `Failover` now has been disabled by default, which should be explicitly enabled to avoid unexpected incidents. No newline at end of file |
| Users can extend Karmada’s API surface in the same way they extend Kubernetes -- whether for custom resources or | ||
| third-party integrations. | ||
|
|
||
| To view all supported APIs, run the `karmadactl api-resources` command against Karmada, this lists all supported API |
| - **聚合 APIServer**:Karmada 的 Cluster API 通过 karmada-aggregated-apiserver 扩展,用户可直接通过 Karmada 统一 API 端点查询成员集群资源(如 Nodes、Pods)。 | ||
| 用户可以通过与扩展 Kubernetes 相同的方式扩展 Karmada 的 API 能力,无论是自定义资源还是第三方集成。 | ||
|
|
||
| 要查看所有支持的 API,请对 Karmada 执行 `karmadactl api-resources` 命令,该命令会列出包括 Kubernetes API 和扩展 API 在内的所有支持API,输出示例如下: |
There was a problem hiding this comment.
Code Review
This pull request introduces a .gitattributes file to normalize line endings across the repository and standardizes trailing newlines in several documentation files. The review feedback recommends expanding the .gitattributes file to explicitly handle Windows batch files with CRLF and Makefiles with LF to prevent execution failures on different platforms.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| # Shell scripts must use LF | ||
| *.sh text eol=lf |
There was a problem hiding this comment.
Windows batch files (*.bat, *.cmd) require CRLF line endings to execute properly on Windows systems. If they are normalized to LF, they may fail to run or encounter syntax errors. Conversely, Makefile and *.mk files must use LF line endings to prevent make execution failures on Unix/Linux environments. Adding these explicit rules ensures cross-platform compatibility.
# Shell scripts and Makefiles must use LF
*.sh text eol=lf
Makefile text eol=lf
*.mk text eol=lf
# Windows batch files must use CRLF
*.bat text eol=crlf
*.cmd text eol=crlf
There was a problem hiding this comment.
Code Review
This pull request introduces a .gitattributes file to normalize line endings and manage binary assets, and updates documentation regarding Kubernetes compatibility and upgrading from v1.11 to v1.12. Feedback is provided to explicitly configure Windows batch files (*.bat and *.cmd) to use CRLF line endings in .gitattributes to ensure cross-platform compatibility, and to add a trailing newline to the upgrading documentation to adhere to standard POSIX conventions.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| *.pdf binary | ||
|
|
||
| # Shell scripts must use LF | ||
| *.sh text eol=lf |
There was a problem hiding this comment.
Windows batch files (.bat and .cmd) require CRLF line endings to execute correctly on Windows systems. Since the repository-wide default is set to LF (* text=auto eol=lf), it is highly recommended to explicitly configure batch files to use CRLF to prevent execution failures on Windows.
*.sh text eol=lf
# Windows batch files must use CRLF
*.bat text eol=crlf
*.cmd text eol=crlf
| ### karmada-controller-manager | ||
|
|
||
| - Introduced feature gate `StatefulFailoverInjection` to control whether Karmada collects and injects state information during a failover event for stateful application. | ||
| - The feature `Failover` now has been disabled by default, which should be explicitly enabled to avoid unexpected incidents. No newline at end of file |
…e-1.16 Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: MilindRastogi24 <milindrastogicloud@gmail.com>
cfd2fc4 to
29a047e
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
…e-1.16
What type of PR is this?
kind feature
What this PR does / why we need it:
Normalize line endings to LF and add .gitattributes for the release 1.16 branch
Enforce LF line endings repository-wide and convert 18 files that were
committed with CRLF.
Which issue(s) this PR fixes:
Part of #1026
Special notes for your reviewer: