-
Notifications
You must be signed in to change notification settings - Fork 186
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
Add option for ignoring values #141
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v2 | ||
name: ignored-values-example | ||
description: Based on best-values-example | ||
version: "0.1.0" | ||
home: "https://github.com/norwoodj/helm-docs/tree/master/example-charts/ignored-values-example" | ||
sources: ["https://github.com/norwoodj/helm-docs/tree/master/example-charts/ignored-values-example"] | ||
engine: gotpl | ||
type: application | ||
maintainers: | ||
- email: [email protected] | ||
name: Jakub Buczak |
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,35 @@ | ||
# ignored-values-example | ||
|
||
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) | ||
|
||
Based on best-values-example | ||
|
||
**Homepage:** <https://github.com/norwoodj/helm-docs/tree/master/example-charts/ignored-values-example> | ||
|
||
## Maintainers | ||
|
||
| Name | Email | Url | | ||
| ---- | ------ | --- | | ||
| Jakub Buczak | <[email protected]> | | | ||
|
||
## Source Code | ||
|
||
* <https://github.com/norwoodj/helm-docs/tree/master/example-charts/ignored-values-example> | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| config.databasesToCreate[0] | string | `"postgresql"` | default database for storage of database metadata | | ||
| config.databasesToCreate[1] | string | `"hashbash"` | database for the [hashbash](https://github.com/norwoodj/hashbash) project | | ||
| config.usersToCreate[0] | object | `{"admin":true,"name":"root"}` | admin user | | ||
| config.usersToCreate[1] | object | `{"name":"hashbash","readwriteDatabases":["hashbash"]}` | user with access to the database with the same name | | ||
| configWithAllValuesIgnored | object | `{}` | | | ||
| statefulset.extraVolumes | list | `[{"emptyDir":{},"name":"data"}]` | Additional volumes to be mounted into the database container | | ||
| statefulset.image.repository | string | `"jnorwood/postgresq"` | Image to use for deploying, must support an entrypoint which creates users/databases from appropriate config files | | ||
| statefulset.image.tag | string | `"11"` | | | ||
| statefulset.livenessProbe | object | `{"enabled":false}` | Configure the healthcheck for the database | | ||
| statefulset.podLabels | object | `{}` | The labels to be applied to instances of the database | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.9.1](https://github.com/norwoodj/helm-docs/releases/v1.9.1) |
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,51 @@ | ||
statefulset: | ||
image: | ||
# -- Image to use for deploying, must support an entrypoint | ||
# which creates users/databases from appropriate config files | ||
repository: jnorwood/postgresq | ||
tag: "11" | ||
|
||
# -- Additional volumes to be mounted into the database container | ||
extraVolumes: | ||
- name: data | ||
emptyDir: {} | ||
|
||
# -- Configure the healthcheck for the database | ||
livenessProbe: | ||
enabled: false | ||
|
||
# -- The labels to be applied to instances of the database | ||
podLabels: {} | ||
|
||
config: | ||
databasesToCreate: | ||
# -- default database for storage of database metadata | ||
- postgresql | ||
|
||
# -- database for the [hashbash](https://github.com/norwoodj/hashbash) project | ||
- hashbash | ||
|
||
usersToCreate: | ||
# -- admin user | ||
- {name: root, admin: true} | ||
|
||
# -- user with access to the database with the same name | ||
- {name: hashbash, readwriteDatabases: [hashbash]} | ||
|
||
# @ignore test | ||
- {name: test, readDatabases: [test]} | ||
|
||
# @ignore | ||
internalConfig: | ||
rpcPort: 8080 | ||
# -- this should also be ignored | ||
generateData: true | ||
|
||
# @ignore | ||
ignoredConfig: 6 | ||
|
||
configWithAllValuesIgnored: | ||
# @ignore | ||
ignoredOne: true | ||
# @ignore | ||
ignoredTwo: "?" |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on your comment below, it seems this should be a separate
if
block and not part of the prior if?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be reworded to:
if HeadComment contains
@ignore
don't include it in newContent. If root node isMappingNode
don't include the next node as wellThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh! I see what you're saying...