generate readme Parameters from values.yaml #323
No reviewers
Labels
No Label
has
backport
in progress
invalid
kind
breaking
kind
bug
kind
build
kind
dependency
kind
deployment
kind
docs
kind
enhancement
kind
feature
kind
lint
kind
proposal
kind
question
kind
refactor
kind
security
kind
testing
kind
translation
kind
ui
need
backport
priority
critical
priority
low
priority
maybe
priority
medium
reviewed
duplicate
reviewed
invalid
reviewed
wontfix
skip-changelog
status
blocked
status
needs-feedback
status
needs-reviews
status
wip
upstream
gitea
upstream
other
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Depends on
#322 add global values support
gitea/helm-chart
Reference: gitea/helm-chart#323
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "cnfatal/helm-chart:feature-readme-gen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Appreciate your already invested time.
@ -845,4 +768,1 @@
| Parameter | Description | Default |
| ------------------------------------------ | -------------------------------------------------------------------- | ------- |
| `gitea.startupProbe.initialDelaySeconds` | Delay before probe start | `60` |
TBH, I'm not sure whether to drop this part or use the
@extra
property to define it as disabled by default. What do you think?added a field
enabled
as the bitnami template does.@ -799,4 +755,0 @@
| `service.ssh.loadBalancerSourceRanges` | Source range filter for ssh loadbalancer | `[]` |
| `service.ssh.annotations` | ssh service annotations | |
For dual-stack parameters see official kubernetes [dual-stack concept documentation](https://kubernetes.io/docs/concepts/services-networking/dual-stack/).
Currently, this would be dropped completely without any replacement. I think it should remain at least in the
values.yaml
along with the dual-stack related parameters for bothservice.http
andservice.ssh
.added comments in
values.yaml
@ -5,0 +4,4 @@
## @section Global
#
## @param global.imageRegistry global image registry override
## @param global.imagePullSecrets global image pull secrets override
Based on the current implementation it will not override the
.Values.imagePullSecrets
but extend it. I think this is worth being pointed out.ca8d5886a1/bitnami/common/templates/_images.tpl (L49-L75)
It's to keep the same behavior with bitnami.
@cnfatal I agree with the behavior of Bitnami. It seems to be not correctly documented. Maybe something like that to avoid misinterpretation?
@ -16,2 +38,4 @@
## @param imagePullSecrets Secret to use for pulling the image
imagePullSecrets: []
# @section Security
This section annotation currently does not applies.
@ -88,6 +148,9 @@ ingress:
# If helm doesn't correctly detect your ingress API version you can set it here.
# apiVersion: networking.k8s.io/v1
I guess
@extra
annotation fits best for this parameter. Right now it wouldn't be documented in the README.done.
@ -254,1 +372,4 @@
## @section Memcached
#
## @param memcached.enabled Enable memcached
As the generator does not support section description (yet), I suggest adding comments regarding cross references like
Memcached is loaded as a dependency from [Bitnami](https://github.com/bitnami/charts/tree/master/bitnami/memcached) if enabled in the values. Complete Configuration can be taken from their website.
as plain comments along with specifying the@param
annotations. That way these information is not lost with this PR.@ -765,0 +730,4 @@
| ---------------------------- | ----------------------------------------------------------------------------------------- | ------------- |
| `image.registry` | image registry, e.g. gcr.io,docker.io | `""` |
| `image.repository` | Image to start for this pod | `gitea/gitea` |
| `image.tag` | (<https://hub.docker.com/r/gitea/gitea/tags?page=1&ordering=last_updated>) | `""` |
Just realized something is odd with that markdown flavored link.
Previously
[Image tag](https://hub.docker.com/r/gitea/gitea/tags?page=1&ordering=last_updated)
.Now
(<https://hub.docker.com/r/gitea/gitea/tags?page=1&ordering=last_updated>)
.It seems to be related to the
modifier
feature (see reference). I guess it's a bug in the generator as it does not distinguish between markdown links and the modifier itself.just add some prefix (like
Visit:
orRef:
) to avoid this bug.@ -0,0 +7,4 @@
@{ \
set -e ;\
echo 'installing readme-generator-for-helm' ;\
npm install -g readme-generator-for-helm ;\
Just to be mentioned. The package on npmjs.com is not the official one from Bitnami.
They have an open issue for it and having conversation with the publisher (https://github.com/bitnami-labs/readme-generator-for-helm/issues/36). I don't think that it will stop us from using the NPM package as it is just not up-to-date.
should i remove this or keep it ? preferd remove in Makefile and install by hand now.
0064268f2d
to2b9484dfdc
@ -0,0 +1,3 @@
readme:
Once this PR is merged, we will work on an integration of this tool in our Drone build and add contribution notes regarding this. So works for me right now. :)
done
2b9484dfdc
toae2d939d35
@cnfatal Not sure if you've seen this comment. It might be easy to overlook as it is within an outdated review part. Anything else LGTM now.
#323 (comment) (comment)
ae2d939d35
to3b9fab27cf
my fault, i overlooked it.
Do you mind regenerating the readme one last time to match the current values.yaml state?
3b9fab27cf
to966d13cd23
I also squashed the two commits by the way
LGTM. Thanks for your PR :)
@cnfatal Please resolve the conflict so we can merge it.
I'll resolve the confilct as soon as posible
966d13cd23
to6585513667
Awesome. Thanks for taking the initiative to make all these manual changes. ?