-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor to use gotemplates to render documentation, adds new e…
…xample charts Fixes #3
- Loading branch information
Showing
29 changed files
with
712 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
name: custom-template | ||
description: Basically the same as the nginx-ingress chart, but using a custom template to include some other content | ||
version: "18.0901-dev" | ||
home: "https://github.com/norwoodj/helm-docs/example-charts/custom-template" | ||
sources: ["https://github.com/norwoodj/helm-docs/example-charts/custom-template"] | ||
engine: gotpl | ||
maintainers: | ||
- email: norwood.john.m@gmail.com | ||
name: John Norwood |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
custom-template | ||
=============== | ||
Basically the same as the nginx-ingress chart, but using a custom template to include some other content | ||
|
||
Current chart version is `18.0901-dev` | ||
|
||
Source code can be found [here](https://github.com/norwoodj/helm-docs/example-charts/custom-template) | ||
|
||
## Additional Information | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore | ||
et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut | ||
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
culpa qui officia deserunt mollit anim id est laborum. | ||
|
||
## Chart Requirements | ||
|
||
| Repository | Name | Version | | ||
|------------|------|---------| | ||
| @stable | nginx-ingress | 0.22.1 | | ||
|
||
## Chart Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| controller.extraVolumes[0].configMap.name | string | "nginx-ingress-config" | Uses the name of the configmap created by this chart | | ||
| controller.extraVolumes[0].name | string | "config-volume" | | | ||
| controller.image.repository | string | "nginx-ingress-controller" | | | ||
| controller.image.tag | string | "18.0831" | | | ||
| controller.ingressClass | string | "nginx" | Name of the ingress class to route through this controller | | ||
| controller.name | string | "controller" | | | ||
| controller.persistentVolumeClaims | list | [] | List of persistent volume claims to create | | ||
| controller.podLabels | object | {} | The labels to be applied to instances of the controller pod | | ||
| controller.publishService.enabled | bool | false | Whether to expose the ingress controller to the public world | | ||
| controller.replicas | int | \<nil\> | Number of nginx-ingress pods to load balance between | | ||
| controller.service.annotations."external-dns.alpha.kubernetes.io/hostname" | string | "stupidchess.jmn23.com" | Hostname to be assigned to the ELB for the service | | ||
| controller.service.type | string | "LoadBalancer" | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.versionLine" . }} | ||
|
||
{{ template "chart.sourceLinkLine" . }} | ||
|
||
## Additional Information | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore | ||
et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut | ||
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
culpa qui officia deserunt mollit anim id est laborum. | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.valuesSection" . }} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
name: most-empty | ||
version: "18.0901-dev" | ||
engine: gotpl | ||
maintainers: | ||
- email: norwood.john.m@gmail.com | ||
name: John Norwood |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
most-empty | ||
========== | ||
|
||
|
||
Current chart version is `18.0901-dev` | ||
|
||
|
||
|
||
This is a good example of all the fields that don't appear when they aren't set in chart metadata. `description`, | ||
`requirements`, and `values` are all empty and don't appear here. | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.versionLine" . }} | ||
|
||
{{ template "chart.sourceLinkLine" . }} | ||
|
||
This is a good example of all the fields that don't appear when they aren't set in chart metadata. `description`, | ||
`requirements`, and `values` are all empty and don't appear here. | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.valuesSection" . }} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dependencies: | ||
- name: nginx-ingress | ||
version: "0.22.1" | ||
repository: "@stable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
controller: | ||
name: controller | ||
image: | ||
repository: nginx-ingress-controller | ||
tag: "18.0831" | ||
|
||
# controller.persistentVolumeClaims -- List of persistent volume claims to create | ||
persistentVolumeClaims: [] | ||
|
||
extraVolumes: | ||
- name: config-volume | ||
configMap: | ||
# controller.extraVolumes[0].configMap.name -- Uses the name of the configmap created by this chart | ||
name: nginx-ingress-config | ||
|
||
# controller.ingressClass -- Name of the ingress class to route through this controller | ||
ingressClass: nginx | ||
|
||
# controller.podLabels -- The labels to be applied to instances of the controller pod | ||
podLabels: {} | ||
|
||
publishService: | ||
# controller.publishService.enabled -- Whether to expose the ingress controller to the public world | ||
enabled: false | ||
|
||
# controller.replicas -- (int) Number of nginx-ingress pods to load balance between | ||
replicas: | ||
|
||
service: | ||
annotations: | ||
# controller.service.annotations."external-dns.alpha.kubernetes.io/hostname" -- Hostname to be assigned to the ELB for the service | ||
external-dns.alpha.kubernetes.io/hostname: stupidchess.jmn23.com | ||
|
||
type: LoadBalancer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
name: no-requirements | ||
description: A simple chart that installs, let's say PrometheusRules, that needs no sub-charts | ||
version: "18.0901-dev" | ||
home: "https://github.com/norwoodj/helm-docs/example-charts/no-requirements" | ||
sources: ["https://github.com/norwoodj/helm-docs/example-charts/no-requirements"] | ||
engine: gotpl | ||
maintainers: | ||
- email: norwood.john.m@gmail.com | ||
name: John Norwood |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
no-requirements | ||
=============== | ||
A simple chart that installs, let's say PrometheusRules, that needs no sub-charts | ||
|
||
Current chart version is `18.0901-dev` | ||
|
||
Source code can be found [here](https://github.com/norwoodj/helm-docs/example-charts/no-requirements) | ||
|
||
|
||
|
||
## Chart Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| rules.latency.percentiles.99.duration | string | "5m" | Duration for which the 99th percentile must be above the threshold to alert | | ||
| rules.latency.percentiles.99.threshold | float | 1.5 | Threshold in seconds for our 99th percentile latency above which the alert will fire | | ||
| rules.statusCodes.codes.5xx.duration | string | "5m" | Duration for which the percent of 5xx responses must be above the threshold to alert | | ||
| rules.statusCodes.codes.5xx.threshold | float | 1.5 | Threshold percentage of 5xx responses above which the alert will fire | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
rules: | ||
latency: | ||
percentiles: | ||
"99": | ||
# rules.latency.percentiles.99.threshold -- Threshold in seconds for our 99th percentile latency above which the alert will fire | ||
threshold: 1.5 | ||
# rules.latency.percentiles.99.duration -- Duration for which the 99th percentile must be above the threshold to alert | ||
duration: 5m | ||
|
||
statusCodes: | ||
codes: | ||
5xx: | ||
# rules.statusCodes.codes.5xx.threshold -- Threshold percentage of 5xx responses above which the alert will fire | ||
threshold: 1.5 | ||
# rules.statusCodes.codes.5xx.duration -- Duration for which the percent of 5xx responses must be above the threshold to alert | ||
duration: 5m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
name: no-values | ||
description: A very simple chart that doesn't even need any values for customization | ||
version: "18.0901-dev" | ||
home: "https://github.com/norwoodj/helm-docs/example-charts/no-values" | ||
sources: ["https://github.com/norwoodj/helm-docs/example-charts/no-values"] | ||
engine: gotpl | ||
maintainers: | ||
- email: norwood.john.m@gmail.com | ||
name: John Norwood |
Oops, something went wrong.