Skip to content

Commit 48d61bf

Browse files
committed
feat: add helm chart
Signed-off-by: emirot <emirot.nolan@gmail.com>
1 parent f6e2d69 commit 48d61bf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/chart-diff.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ jobs:
6060
kubebuilder edit --plugins=helm/v2-alpha --output-dir=new_charts
6161
ls -la new_charts/*
6262
63+
- name: Remove example blocks from generated CRDs
64+
run: |
65+
find gitops-promoter/new_charts -name "*.yaml" -type f | while read file; do
66+
perl -i -0777 -pe 's/\s*Example:\s*\n\s*\{\{ "\{\{- \$baseURL.*?urlQueryEscape \$labels\)\}" \}\}//gs' "$file"
67+
done
68+
6369
- name: Diff charts
6470
run: |
6571
echo "=== Diff between generated manifests and current Helm chart ==="

0 commit comments

Comments
 (0)