Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chart: move CRD into directory crds #3420

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

zhangzujian
Copy link
Member

@zhangzujian zhangzujian commented Nov 15, 2023

Pull Request

What type of this PR

Examples of user facing changes:

  • Features
  • Bug fixes
  • Docs
  • Tests

Which issue(s) this PR fixes

https://helm.sh/docs/chart_best_practices/custom_resource_definitions/

With the arrival of Helm 3, we removed the old crd-install hooks for a more simple methodology. There is now a special directory called crds that you can create in your chart to hold your CRDs.

WHAT

🤖 Generated by Copilot at cc0c7de

Move CRD definition to a separate directory and update references. This improves the chart structure and compatibility with Helm 3.

🤖 Generated by Copilot at cc0c7de

is_valid checks
refactored for clarity
autumn leaves falling

HOW

🤖 Generated by Copilot at cc0c7de

  • Rename charts/templates/kube-ovn-crd.yaml to charts/crds/crd.yaml to follow the Helm 3 convention for custom resource definitions (link)

@zhangzujian zhangzujian added the chart Helm Chart label Nov 15, 2023
@zhangzujian zhangzujian marked this pull request as ready for review November 15, 2023 10:12
@zhangzujian zhangzujian merged commit 62b0e21 into kubeovn:master Nov 15, 2023
60 checks passed
@zhangzujian zhangzujian deleted the fix-chart-crd branch November 15, 2023 10:59
bobz965 pushed a commit that referenced this pull request Nov 17, 2023
zhangzujian added a commit to zhangzujian/kube-ovn that referenced this pull request Jan 9, 2024
zhangzujian added a commit to zhangzujian/kube-ovn that referenced this pull request Jan 9, 2024
zhangzujian added a commit to zhangzujian/kube-ovn that referenced this pull request Jan 9, 2024
zhangzujian added a commit that referenced this pull request Jan 11, 2024
* Revert "chart: move CRD into directory crds (#3420)"

This reverts commit 62b0e21.

Signed-off-by: zhangzujian <[email protected]>

* chart: fix ovs-ovn upgrade

Signed-off-by: zhangzujian <[email protected]>

---------

Signed-off-by: zhangzujian <[email protected]>
bobz965 pushed a commit that referenced this pull request Jan 11, 2024
* Revert "chart: move CRD into directory crds (#3420)"

This reverts commit 62b0e21.

Signed-off-by: zhangzujian <[email protected]>

* chart: fix ovs-ovn upgrade

Signed-off-by: zhangzujian <[email protected]>

---------

Signed-off-by: zhangzujian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chart Helm Chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants