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

Generate and commit schema.json file #472

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ api/**/zz_generated*go linguist-generated=true
helm/ngrok-operator/templates/crds/** linguist-generated=true
helm/ngrok-operator/templates/rbac/role.yaml linguist-generated=true
manifest-bundle.yaml linguist-generated=true

# Generated by the helm readme-generator
helm/ngrok-operator/values.schema.json linguist-generated=true
4 changes: 2 additions & 2 deletions .github/workflows/generate-chart-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Execute readme-generator-for-helm
working-directory: helm/ngrok-operator
run: |
readme-generator --values "values.yaml" --readme "README.md" --schema "/tmp/schema.json"
make update-readme
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update README.md with readme-generator-for-helm
commit_message: Update README.md and values.schema.json with readme-generator-for-helm
2 changes: 1 addition & 1 deletion helm/ngrok-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ update-snapshots: ## Update helm unittest snapshots

.PHONY: update-readme
update-readme: ## Updates the README.md file with the chart values
readme-generator --values "values.yaml" --readme "README.md" --schema "/tmp/schema.json"
readme-generator --values "values.yaml" --readme "README.md" --schema "values.schema.json"
12 changes: 6 additions & 6 deletions helm/ngrok-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ To uninstall the chart:
| `priorityClassName` | Priority class for pod scheduling | `""` |
| `lifecycle` | an object containing lifecycle configuration | `{}` |
| `podDisruptionBudget.create` | Enable a Pod Disruption Budget creation | `false` |
| `podDisruptionBudget.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable | `""` |
| `podDisruptionBudget.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` |
| `podDisruptionBudget.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable | `1` |
| `resources.limits` | The resources limits for the container | `{}` |
| `resources.requests` | The requested resources for the container | `{}` |
| `extraVolumes` | An array of extra volumes to add to the controller. | `[]` |
Expand All @@ -102,11 +102,11 @@ To uninstall the chart:

### Credentials configuration

| Name | Description | Value |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------- | ----- |
| `credentials.secret.name` | The name of the secret the credentials are in. If not provided, one will be generated using the helm release name. | `""` |
| `credentials.apiKey` | Your ngrok API key. If provided, it will be will be written to the secret and the authtoken must be provided as well. | `""` |
| `credentials.authtoken` | Your ngrok authtoken. If provided, it will be will be written to the secret and the apiKey must be provided as well. | `""` |
| Name | Description | Value |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------ | ----- |
| `credentials.secret.name` | The name of the secret the credentials are in. If not provided, one will be generated using the helm release name. | `""` |
| `credentials.apiKey` | Your ngrok API key. If provided, it will be written to the secret and the authtoken must be provided as well. | `""` |
| `credentials.authtoken` | Your ngrok authtoken. If provided, it will be written to the secret and the apiKey must be provided as well. | `""` |

### Kubernetes Ingress feature configuration

Expand Down
4 changes: 2 additions & 2 deletions helm/ngrok-operator/tests/controller-pdb_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ tests:
set:
podDisruptionBudget:
create: true
minAvailable: 1
maxUnavailable: ""
minAvailable: "1"
maxUnavailable: null
asserts:
- equal:
path: spec.minAvailable
Expand Down
Loading
Loading