-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
(WIP - TODO Address change agreed on review)✨ (helm/v1alpha): add samples manifests #4314
base: master
Are you sure you want to change the base?
(WIP - TODO Address change agreed on review)✨ (helm/v1alpha): add samples manifests #4314
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi, @[monteiro-renato. @mhkarimi1383, @algo7 Could you please help on this review? |
Hi Using helm chart tests is better than this one I think Using that you can test both helm chart and the operator |
Add samples to the helm chart so that consumers and developers can decide if should provide good samples configurations and enable them for the chart be installed within
a0c8dd4
to
6ae680f
Compare
Thank you for your input! However, I believe providing samples is beneficial, especially with this feature that encapsulates an Operator into a Helm chart. Adding sample CRs is considered good practice since it allows authors to include default configurations and helpful examples for customization. Many projects include CR samples during installation so users don’t have to create configurations from scratch. These samples not only simplify onboarding but also serve as a guide for users who may want to customize their CRs. Without the CRD samples, the Operator won’t perform any actions, so including them ensures that the installation is immediately functional and users have a reference for testing and customization. So, I am totally in favor of we move forward here. |
Nice but I think the better location for examples are in chart NOTES.txt |
I think that we must not force the developerd to have the BUT, I think that it is a very good idea to implement this feature for the reasons you said.
So, my proposal is to keep this feature and add a section in the documentation (that does not exists yet from what I know but maybe in the future) that explains how to remove this section from the scaffold so it will not be added each time we execute |
Hi @damsien, I think you might have brought a good idea.
We can raise an issue after this one gets merged and work on it as a follow-up. WDYT? Regards:
It must be added each time that we run the command because the samples are like the CRDs |
Samples are CR. |
Yes we can raise an issue to implement the And concerning this sentence:
It is in the case where the developer wants to remove the Can I raise the issue? |
Hi @damsien
I see. But it is an alpha version and add the flags is not a lot of work |
Yes sure |
I think as a user who installs the operator chart, NOTES will show me after installing the operator, So I will notice samples and any recommendations and so on |
Hi @mhkarimi1383,
For it be possible you need move with this PR An option here is NOT add the samples on the values.yaml. |
As users I mean the person who installs the operator to use, not the creator of operator If I got you correct |
I see your point. |
Add samples to the helm chart so that consumers and developers can decide if should provide good samples configurations and enable them for the chart be installed within
motivation
The inclusion of sample CRs in Helm charts is motivated by the need to improve user experience and ease of use. By providing default configurations and ready-to-use examples, we reduce the setup time for users, guide them in customizing their CRs, and ensure the Operator is functional right after installation. This approach not only simplifies onboarding but also allows users to quickly verify the Operator’s deployment, making the setup process more intuitive and productive.