Skip to content
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
1 change: 1 addition & 0 deletions catalog/ansible-edge-gitops/pattern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ extra_features:
external_requirements: null
org: validatedpatterns
spoke: null
clustergroupname: hub
2 changes: 1 addition & 1 deletion catalog/catalog.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
generated_at: "2026-04-16T09:03:31Z"
generated_at: "2026-04-16T11:34:50Z"
generator_version: "1.0"
catalog_description: '(Tech-Preview) Additional patterns can be found here: <a href="https://validatedpatterns.io">validatedpatterns.io</a>'
patterns:
Expand Down
1 change: 1 addition & 0 deletions catalog/hypershift/pattern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ external_requirements:
s3_bucket: true
org: validatedpatterns-sandbox
spoke: null
clustergroupname: prod
1 change: 1 addition & 0 deletions catalog/layered-zero-trust/pattern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ extra_features:
external_requirements: null
org: validatedpatterns
spoke: null
clustergroupname: hub
1 change: 1 addition & 0 deletions catalog/mlops-fraud-detection/pattern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ extra_features:
external_requirements: null
org: validatedpatterns
spoke: null
clustergroupname: prod
1 change: 1 addition & 0 deletions catalog/multicloud-gitops/pattern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ extra_features:
external_requirements: null
org: validatedpatterns
spoke: null
clustergroupname: hub
1 change: 1 addition & 0 deletions catalog/rag-llm-gitops/pattern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ external_requirements:
This pattern will require nodes with GPUs which are only supported in certain regions. You can create them before deploying the pattern via the special `make create-gpu-machineset` command, after the initial cluster has been created.
org: validatedpatterns
spoke: null
clustergroupname: hub
1 change: 1 addition & 0 deletions catalog/travelops/pattern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ extra_features:
external_requirements: null
org: validatedpatterns
spoke: null
clustergroupname: hub
15 changes: 15 additions & 0 deletions generate-catalog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,21 @@ for org in "${ORGS[@]}"; do
continue
fi

# Fetch values-global.yaml and extract clusterGroupName
global_response=$(gh api "repos/${full_slug}/contents/values-global.yaml" 2>/dev/null)
if [ $? -eq 0 ]; then
global_yaml=$(echo "${global_response}" | jq -r '.content' | base64 -d)
if [ $? -eq 0 ]; then
cluster_group_name=$(echo "${global_yaml}" | yq -r '.main.clusterGroupName // ""')
if [ -n "${cluster_group_name}" ]; then
echo " Found clusterGroupName: ${cluster_group_name}" >&2
pattern_json=$(echo "${pattern_json}" | jq --arg cgn "${cluster_group_name}" '.clustergroupname = $cgn')
fi
else
echo " Failed to decode values-global.yaml, skipping clusterGroupName." >&2
fi
fi

# Write per-pattern YAML
mkdir -p "${CATALOG_DIR}/${repo_name}"
echo "${pattern_json}" | yq -P '.' > "${CATALOG_DIR}/${repo_name}/pattern.yaml"
Expand Down
4 changes: 4 additions & 0 deletions pattern.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@
"spoke": {
"description": "Spoke configuration (reserved for future use)",
"type": "null"
},
"clustergroupname": {
"type": "string",
"description": "Default clusterGroupName to use"
}
},
"$defs": {
Expand Down