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

fix: policy controller chart schema #904

Merged
merged 5 commits into from
Feb 13, 2025
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
40 changes: 40 additions & 0 deletions .github/workflows/check-schema-policy-controller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Check Helm Schema (policy-controller only)

on:
pull_request:
paths:
- "charts/policy-controller/**"

jobs:
schema:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: setup go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0

- name: install helm-schema
run: go install github.com/dadav/helm-schema/cmd/helm-schema@latest

- name: test helm-schema
run: helm-schema --version

- name: Run Helm Schema and check the outcome
run: |
cd charts/policy-controller && helm-schema -k additionalProperties,required
exit_code=$(git diff --exit-code)
exit ${exit_code}

- name: Print a comment in case of failure
run: |
echo "The policy controller values.schema.json is not up to date or has not been produced correctly

Please, install https://github.com/dadav/helm-schema
And run with flag -k additionalProperties,required before pushing
exit 1
if: |
failure() && github.event.pull_request.head.repo.full_name == github.repository
2 changes: 1 addition & 1 deletion charts/policy-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sources:
type: application

name: policy-controller
version: 0.9.0
version: 0.9.1
appVersion: 0.12.0

maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/policy-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- This README.md is generated. Please edit README.md.gotmpl -->

![Version: 0.9.0](https://img.shields.io/badge/Version-0.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.12.0](https://img.shields.io/badge/AppVersion-0.12.0-informational?style=flat-square)
![Version: 0.9.1](https://img.shields.io/badge/Version-0.9.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.12.0](https://img.shields.io/badge/AppVersion-0.12.0-informational?style=flat-square)

The Helm chart for Policy Controller

Expand Down
Loading
Loading