diff --git a/.github/workflows/validate-defaults.yaml b/.github/workflows/validate-defaults.yaml new file mode 100644 index 00000000..e4fa7477 --- /dev/null +++ b/.github/workflows/validate-defaults.yaml @@ -0,0 +1,34 @@ +--- +name: Validate defaults apply + +on: [push, pull_request] + +jobs: + validate_defaults: + name: Json Schema tests + strategy: + matrix: + python-version: [3.11] + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + + - name: Install yq + uses: chrisdickinson/setup-yq@latest + with: + yq-version: v4.30.7 + + - name: Validate clusterGroupName is simple + run: | + if [ "$(yq '.main.clusterGroupName' values-global.yaml)" != "simple" ]; then + echo "main.clusterGroupName must be 'simple'" + exit 1 + fi diff --git a/values-global.yaml b/values-global.yaml index bb72a33c..e91c7f0c 100644 --- a/values-global.yaml +++ b/values-global.yaml @@ -18,7 +18,7 @@ main: # WARNING # This default configuration uses a single cluster on azure. # It fundamentally violates the separation of duties. - clusterGroupName: trusted-hub + clusterGroupName: simple multiSourceConfig: enabled: true clusterGroupChartVersion: 0.9.*