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 changes #438

Merged
merged 4 commits into from
Mar 21, 2024
Merged

Chart changes #438

merged 4 commits into from
Mar 21, 2024

Conversation

niladrih
Copy link
Member

@niladrih niladrih commented Mar 15, 2024

  • add README.md helm-docs template for crds subchart
  • add values to toggle install of all CRDs
  • coreutils to nix-shells
  • add value option to toggle installation of snapshot CRDs
  • refactor generate-readme.sh script to work with CRDs subchart
  • add templates to crds chart to avoid installation if CRDs already exists, because otherwise install/upgrade fails because these template-style CRDs carry a release-name label.
  • remove CRD-install functionality during upgrade, as the above templating takes care of that at install/upgrade time.

chart/charts/crds/templates/_helpers.tpl Show resolved Hide resolved
shell.nix Show resolved Hide resolved
chart/Chart.yaml Outdated Show resolved Hide resolved
chart/Chart.yaml Outdated Show resolved Hide resolved
@niladrih
Copy link
Member Author

bors merge

bors-openebs-mayastor bot pushed a commit that referenced this pull request Mar 21, 2024
438: Chart changes r=niladrih a=niladrih

- add README.md helm-docs template for crds subchart
- add values to toggle install of all CRDs
- coreutils to nix-shells
- add value option to toggle installation of snapshot CRDs
- refactor generate-readme.sh script to work with CRDs subchart
- add templates to crds chart to avoid installation if CRDs already exists, because otherwise install/upgrade fails because these template-style CRDs carry a release-name label.
- remove CRD-install functionality during upgrade, as the above templating takes care of that at install/upgrade time.

Co-authored-by: Niladri Halder <niladri.halder26@gmail.com>
@niladrih
Copy link
Member Author

bors cancel

- add README.md helm-docs template for crds subchart
- add values to toggle install of all CRDs
- coreutils to nix-shells
- add value option to toggle installation of snapshot CRDs
- refactor generate-readme.sh script to work with CRDs subchart

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
The CRDs in the helm chart have been moved to a subchart. They live in
the subchart's 'templates' directory. They have templates which disables
their installation if a CRD with the exact same name is already present
in the kubernetes cluster. Thus, unless explicitly disabled, all templates
are installed during helm upgrade. This functionality is no longer required.

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
@niladrih
Copy link
Member Author

bors merge

@bors-openebs-mayastor
Copy link
Contributor

🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@bors-openebs-mayastor
Copy link
Contributor

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit 8c52f81 into develop Mar 21, 2024
5 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the crds-subchart-changes branch March 21, 2024 05:30
bors-openebs-mayastor bot pushed a commit that referenced this pull request Mar 21, 2024
450: Cherry-pick #438 and #439 r=niladrih a=niladrih

This PR cherry-picks the commits from the following PRs to release/2.6 branch:
- #438 
- #439 

Co-authored-by: cmontemuino <1761056+cmontemuino@users.noreply.github.com>
Co-authored-by: Niladri Halder <niladri.halder26@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants