Skip to content

Commit

Permalink
Generate and commit schema.json file (#472)
Browse files Browse the repository at this point in the history
Generate and commit values.schema.json file
  • Loading branch information
alex-bezek authored Oct 29, 2024
1 parent 703b6a3 commit 4e3428a
Show file tree
Hide file tree
Showing 7 changed files with 445 additions and 17 deletions.
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

0 comments on commit 4e3428a

Please sign in to comment.