Skip to content

Commit cab900d

Browse files
authored
chore: enforce single cluster by default when merging to main (#61)
* chore: enforce single cluster by default when merging to main Signed-off-by: Chris Butler <chris.butler@redhat.com> * chore: add missing file Signed-off-by: Chris Butler <chris.butler@redhat.com> --------- Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent f8b6b25 commit cab900d

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Validate defaults apply
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
validate_defaults:
8+
name: Json Schema tests
9+
strategy:
10+
matrix:
11+
python-version: [3.11]
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
24+
- name: Install yq
25+
uses: chrisdickinson/setup-yq@latest
26+
with:
27+
yq-version: v4.30.7
28+
29+
- name: Validate clusterGroupName is simple
30+
run: |
31+
if [ "$(yq '.main.clusterGroupName' values-global.yaml)" != "simple" ]; then
32+
echo "main.clusterGroupName must be 'simple'"
33+
exit 1
34+
fi

values-global.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ main:
1818
# WARNING
1919
# This default configuration uses a single cluster on azure.
2020
# It fundamentally violates the separation of duties.
21-
clusterGroupName: trusted-hub
21+
clusterGroupName: simple
2222
multiSourceConfig:
2323
enabled: true
2424
clusterGroupChartVersion: 0.9.*

0 commit comments

Comments
 (0)