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

feat: adding schema.json file to alpha version #2537

Merged
merged 41 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
3baac5e
feat: adding schema.json file to alpha version
hamza-m-masood Nov 7, 2024
7ba1649
chore: Update golden files
distro-ci[bot] Nov 7, 2024
ce9e681
sensible defaults
hamza-m-masood Nov 7, 2024
9eb0e0c
chore: Update golden files
distro-ci[bot] Nov 7, 2024
34a28f4
changing webmodeler if statement so it doesn't create false positive …
hamza-m-masood Nov 7, 2024
1272448
chore: Update golden files
distro-ci[bot] Nov 7, 2024
65cc25c
chore: Update golden files
distro-ci[bot] Dec 12, 2024
a48e541
chore: Update golden files
distro-ci[bot] Dec 13, 2024
d1b98bf
setting to null values
hamza-m-masood Dec 13, 2024
19731f1
adding more null
hamza-m-masood Dec 13, 2024
14a524b
removing formatting
hamza-m-masood Dec 13, 2024
bd0978c
making empty strings to null values and adding schema to ci
hamza-m-masood Dec 13, 2024
9bb5344
removed null
hamza-m-masood Dec 14, 2024
4a5b303
adding strings
hamza-m-masood Dec 14, 2024
13c3841
adding null values to numbers
hamza-m-masood Dec 14, 2024
206a526
changing back the webmodeler helper function
hamza-m-masood Dec 14, 2024
c8a07fb
update name of workflow
hamza-m-masood Dec 14, 2024
9769ce6
fix path
hamza-m-masood Dec 14, 2024
8778d30
put schema in different step
hamza-m-masood Dec 14, 2024
8b30f18
fix typo
hamza-m-masood Dec 14, 2024
0d90e8f
fix typo
hamza-m-masood Dec 14, 2024
70b1ece
adding conditions to only run on versions above 8.6
hamza-m-masood Dec 14, 2024
3d6b192
chore: Update golden files
distro-ci[bot] Dec 17, 2024
ccf4a4c
changed name to values.schema.json
hamza-m-masood Dec 17, 2024
2acd135
renamed workflow
hamza-m-masood Dec 17, 2024
d629853
rename
hamza-m-masood Dec 17, 2024
cbbd00d
removing repetitive lines
hamza-m-masood Dec 17, 2024
1e7ecb3
convering all empty fields back to empty strings
hamza-m-masood Dec 17, 2024
70701a1
more empty strings
hamza-m-masood Dec 17, 2024
fcf65cd
adding default for postgres port
hamza-m-masood Dec 17, 2024
e00d20a
set minAvailable to 0
hamza-m-masood Dec 18, 2024
3c7a6ac
chore: Update golden files
distro-ci[bot] Dec 18, 2024
c04811a
udpating commit message
hamza-m-masood Dec 18, 2024
f55b745
add extra condition to helper function
hamza-m-masood Dec 19, 2024
8402fd0
chore: chart chores
distro-ci[bot] Dec 19, 2024
c8d8a98
removing unneeded modifiers
hamza-m-masood Dec 20, 2024
2750c14
remove modifier
hamza-m-masood Dec 20, 2024
f7095c9
test commit to see if schema automation works
hamza-m-masood Dec 20, 2024
1258c13
update name of chart chores
hamza-m-masood Dec 20, 2024
013419a
change back test commit
hamza-m-masood Dec 20, 2024
b2f5160
chore: chart chores
distro-ci[bot] Dec 20, 2024
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
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: "Chart - Update Golden Files and README"
name: "Chart - Chores"

on:
pull_request:
branches:
- main
paths:
- ".github/workflows/chart-update-readme-and-golden-files.yaml"
- ".github/workflows/chart-chores.yaml"
- "charts/**"

permissions:
Expand Down Expand Up @@ -34,11 +34,10 @@ jobs:
echo "should-run=${SHOULD_RUN}" | tee -a ${GITHUB_OUTPUT}
outputs:
should-run: ${{ steps.conditions.outputs.should-run }}

chores:
needs: [init]
if: needs.init.outputs.should-run == 'true'
name: Update README And Golden Files
name: Chart chores
runs-on: ubuntu-latest
steps:
#
Expand Down Expand Up @@ -91,10 +90,14 @@ jobs:
run: |
chartPath="${CHANGED_CHARTS}" \
make helm.readme-update
- name: Update Schema
run: |
chartPath="${CHANGED_CHARTS}" \
make helm.schema-update
- name: Git pull
run: git pull --rebase --autostash .
- uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
with:
author_name: "distro-ci[bot]"
author_email: "122795778+distro-ci[bot]@users.noreply.github.com"
message: "chore: Update golden files"
message: "chore: chart chores"
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ helm.readme-update:
--readme "$${chart_dir}/README.md";\
done

# helm.schema-update: generate schema from values file
.PHONY: helm.schema-update
helm.schema-update:
for chart_dir in $(chartPath); do \
if echo "$${chart_dir}" | grep -qE "camunda-platform-8\.(2|3|4|5|6)$$"; then \
continue; \
fi; \
echo "\n[$@] Chart dir: $${chart_dir}"; \
readme-generator \
--values "$${chart_dir}/values.yaml" \
--schema "$${chart_dir}/values.schema.json";\
done

#########################################################
######### Release
#########################################################
Expand Down
Loading
Loading