fix: align shipped manifest and Helm chart defaults with v1.4.1 #136
@KR-Ravindra: The label(s) kind/bug cannot be applied, because the repository doesn't have them.
<details>
In response to this:
>What type of PR is this?
>/kind bug
>What this PR does / why we need it:
>#### Problem
>https://github.com/Project-HAMi/ascend-device-plugin/issues/133
>Tagv1.4.1andmainare the same commit (4b977f9) andprojecthami/ascend-device-plugin:v1.4.1is published, but both documented install paths still deployv1.4.0:
>-ascend-device-plugin.yamlpinsprojecthami/ascend-device-plugin:v1.4.0.
>-
charts/ascend-device-plugin/Chart.yaml has appVersion: v1.4.0, and image.tag is empty by default, so the ascend-device-plugin.image helper renders v1.4.0.>Users following the docs silently miss the v1.4.1 fixes, including #106.>#### Fix
>- Bump the manifest image and the chartappVersiontov1.4.1; bump the chartversionto0.1.1so the Helm release workflow publishes the new chart; regeneratecharts/ascend-device-plugin/README.mdwithhelm-docs(make update-chart-docs,values.schema.jsonunchanged).
>-
helm-lint.yaml: new step asserts that the manifest image and the image rendered by helm template with default values both equal projecthami/ascend-device-plugin:<appVersion>. ascend-device-plugin.yaml is added to the path filter so manifest-only PRs run this job.>-
ci.yml: on a release tag push, a step in the build job fails before the image is pushed when the tag does not equal the chart appVersion and the manifest image tag. This keeps the bump-then-tag flow used for v1.4.0 (2d77477 was merged before the tag was cut) and would have flagged v1.4.1 at release time.>#### How tested
>- Ran the exact run: bodies of both new steps locally (Helm v3.19, helm-docs v1.14.2):- tag step withGITHUB_REF=refs/tags/v1.4.1against themainfiles: fails (as it should have at release time); against this branch: passes; withv1.4.2: fails.
- helm-lint step on this branch: passes; with onlyChart.yamlbumped tov1.4.2, or only the manifest left atv1.4.0: fails.
>-
make verify-helm-chart and make verify-helm-release-path pass; actionlint reports no new findings.>Which issue(s) this PR fixes:
>Fixes #133
>Special notes for your reviewer:
>No Go code changes; nothing here touches device allocation, so no hardware run was needed. The chart version bump to0.1.1triggersbuild-helm-release.yamlon merge. The tag-time guard compares the manifest against the literalprojecthami/ascend-device-plugin(same as the helm-lint step) rather thanIMAGE_NAME, which can come from a secret. Open PRs #99 and #116 touchascend-device-plugin.yamland #81 touchesci.ymlwith unrelated hunks, so whichever merges second needs a small rebase. AI disclosure: the version bumps, the two workflow steps and this description were written with an AI agent (Claude Code) operated by KR-Ravindra, who reviewed and tested them.
>Does this PR introduce a user-facing change?:
>``release-note>The standalone manifest and the Helm chart (0.1.1) now deploy ascend-device-plugin v1.4.1 by default; CI fails when the manifest, chart appVersion and release tag disagree.
>``
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
</details>
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: <a href="https://github.com/Project-HAMi/ascend-device-plugin/pull/136#" title="Author self-approved">KR-Ravindra</a>
Once this PR has been reviewed and has the lgtm label, please assign archlitchi for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
<details open>
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
</details>
<!-- META={"approvers":["archlitchi"]} -->
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- review_stack_entry_start -->
<a href="https://app.coderabbit.ai/change-stack/Project-HAMi/ascend-device-plugin/pull/136#gh-light-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg" alt="Review Change Stack" width="202" height="32"></a><a href="https://app.coderabbit.ai/change-stack/Project-HAMi/ascend-device-plugin/pull/136#gh-dark-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg" alt="Review Change Stack" width="202" height="32"></a>
<!-- review_stack_entry_end -->
<!-- recent_review_start -->
No actionable comments were generated in the recent review. 🎉
<details>
<summary>ℹ️ Recent review info</summary>
<details>
<summary>⚙️ Run configuration</summary>
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: fc1fd85a-105d-46d0-9ef3-fb600886030b
</details>
<details>
<summary>📥 Commits</summary>
Reviewing files that changed from the base of the PR and between 4b977f92853a9e797f7d219204e575524e740ee0 and 19841e3ff6ace5c521a1d96eecb2197ce4746ea3.
</details>
<details>
<summary>📒 Files selected for processing (5)</summary>
.github/workflows/ci.yml
.github/workflows/helm-lint.yaml
ascend-device-plugin.yaml
charts/ascend-device-plugin/Chart.yaml
charts/ascend-device-plugin/README.md</details>
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.
</details>
---
<!-- recent_review_end -->
<!-- walkthrough_start -->
<details>
<summary>📝 Walkthrough</summary>
Walkthrough
The standalone manifest and Helm chart now reference v1.4.1. The chart version is 0.1.1. CI validates manifest, chart, and release tag image alignment.
Changes
Release image alignment
|Layer / File(s)|Summary|
|---|---|
|Update release versions <br> .github/workflows/ci.yml, ascend-device-plugin.yaml, charts/ascend-device-plugin/Chart.yaml, charts/ascend-device-plugin/README.md|The standalone manifest and chart metadata now reference v1.4.1. The chart version is 0.1.1.|
|Validate image consistency <br> .github/workflows/ci.yml, .github/workflows/helm-lint.yaml|The workflows compare the manifest image, rendered Helm image, chart appVersion, and release tag. Manifest changes now trigger Helm lint validation.|
<!-- change_assessment_start -->
Priority: ➖ Normal
Estimated code review effort: 3 (Moderate) | ~20 minutes
<!-- change_assessment_commit:"19841e3ff6ace5c521a1d96eecb2197ce4746ea3" -->
Change: Bug fix · Severity of issue fixed: Medium
<!-- change_assessment_end -->
Suggested labels: enhancement
</details>
<!-- walkthrough_end -->
<!-- pre_merge_checks_walkthrough_start -->
<details>
<summary>🚥 Pre-merge checks | ✅ 5</summary>
<details>
<summary>✅ Passed checks (5 passed)</summary>
| Check name | Status | Explanation |
| :------------------------: | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Linked Issues check | ✅ Passed | The PR satisfies the coding requirements in #133. ascend-device-plugin.yaml now uses projecthami/ascend-device-plugin:v1.4.1. Chart.yaml now sets appVersion: v1.4.1 and chart version: 0.1.1.… |
| Out of Scope Changes check | ✅ Passed | All changed files support #133. The manifest and chart versions implement version alignment. The README refreshes generated chart documentation. The CI changes prevent manifest, chart, and release-ima… |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0… |
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly and concisely describes the primary change: aligning the shipped manifest and Helm chart defaults with v1.4.1. |
</details>
</details>
<!-- pre_merge_checks_walkthrough_end -->
<!-- finishing_touch_checkbox_start -->
<details>
<summary>✨ Finishing Touches</summary>
<details open>
<summary>🧪 Generate unit tests (beta)</summary>
</details>
</details>
<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->
---
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.
<details>
<summary>❤️ Share</summary>
</details>
<!-- poem_footer_start -->
<sub>A rabbit checks the chart with care <br>v1.4.1 hops through the air <br>The manifest and Helm now agree <br>CI guards the tag happily <br>No drifting images hide anywhere</sub>
<!-- poem_footer_end -->
<sub>Comment @coderabbitai help to get the list of available commands.</sub>
<!-- tips_end -->
/lgtm
Thanks for the fix. I tested a future release with the manifest image and appVersion set to v1.4.2, but chart version still at 0.1.1: both new checks pass. If 0.1.1 is already published, the release workflow skips the updated chart, so Helm users still get the old image.
Please also check that chart version increases when appVersion or the default image changes, and add a test for this case. This PR's version bump is correct; the extra check would prevent the issue from recurring.
DSFans2014
KR-Ravindra
What type of PR is this?
/kind bug
What this PR does / why we need it:
Tag
v1.4.1andmainare the same commit andprojecthami/ascend-device-plugin:v1.4.1is published, but both documented install paths still deployv1.4.0:ascend-device-plugin.yamlpins it, andChart.yamlhasappVersion: v1.4.0with an empty defaultimage.tag. Anyone following the docs silently misses thev1.4.1fixes, including #106.The manifest image and the chart
appVersionmove tov1.4.1, the chartversionto0.1.1so the release workflow publishes the new chart, and the chart README is regenerated withhelm-docs.Two CI guards so it cannot drift again:
helm-lint.yamlasserts the manifest image and the image rendered byhelm templatewith default values both equalprojecthami/ascend-device-plugin:<appVersion>.ascend-device-plugin.yamljoins the path filter so manifest-only PRs run the job.ci.ymlfails a release tag push, before the image is pushed, when the tag does not match the chartappVersionand the manifest tag. This keeps the bump-then-tag flow used forv1.4.0and would have caughtv1.4.1.Which issue(s) this PR fixes:
Fixes #133
Special notes for your reviewer:
No Go changes; nothing here touches device allocation. The tag-time guard compares against the literal
projecthami/ascend-device-pluginrather thanIMAGE_NAME, which can come from a secret. Open PRs #99 and #116 touchascend-device-plugin.yamland #81 touchesci.yml, so whichever merges second needs a small rebase.Yes, AI-assisted; reviewed by me.
Does this PR introduce a user-facing change?:
``
release-note
``The standalone manifest and the Helm chart (0.1.1) now deploy ascend-device-plugin v1.4.1 by default; CI fails when the manifest, chart appVersion and release tag disagree.