Skip to content

Commit d03c0ff

Browse files
authored
Merge pull request #445 from butler54/lint-fixes
fix: ensure all values files are validated
2 parents c239915 + 14bb8c8 commit d03c0ff

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

.ansible-lint

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Vim filetype=yaml
22
---
33
offline: false
4-
#requirements: ansible/execution_environment/requirements.yml
54

65
exclude_paths:
76
- .cache/

.github/workflows/ansible-lint.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,4 @@ jobs:
1111
- uses: actions/checkout@v4
1212

1313
- name: Lint Ansible Playbook
14-
uses: ansible/ansible-lint-action@v6
15-
# Let's point it to the path
16-
with:
17-
path: "ansible/"
14+
uses: ansible/ansible-lint@06f616d6e86e9ce4c74393318d1cbb2d016af413

.github/workflows/jsonschema.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
3939
- name: Verify ClusterGroup values.schema.json against values-*yaml files
4040
run: |
41-
set -e; for i in values-hub.yaml values-group-one.yaml; do
41+
set -e
42+
find . -maxdepth 1 -type f -name "values-*.yaml" ! -name "values-global.yaml" -print0 | while IFS= read -r -d '' i;
43+
do
4244
echo "$i"
4345
# disable shellcheck of single quotes in yq
4446
# shellcheck disable=2016
File renamed without changes.
File renamed without changes.

values-group-one.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
global:
22
options:
3-
useCSV: False
3+
useCSV: false
44
syncPolicy: Automatic
55
installPlanApproval: Automatic
66
clusterGroup:

values-hub.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ clusterGroup:
1212
name: advanced-cluster-management
1313
namespace: open-cluster-management
1414
channel: release-2.11
15-
#csv: advanced-cluster-management.v2.6.1
15+
# csv: advanced-cluster-management.v2.6.1
1616
projects:
1717
- hub
1818
- config-demo
@@ -21,6 +21,7 @@ clusterGroup:
2121
# We can use self-referential variables because the chart calls the tpl function with these variables defined
2222
sharedValueFiles:
2323
- '/overrides/values-{{ $.Values.global.clusterPlatform }}.yaml'
24+
- '/overrides/values-{{ $.Values.global.clusterVersion }}-{{ $.Values.clusterGroup.name }}.yaml'
2425
# sharedValueFiles is a flexible mechanism that will add the listed valuefiles to every app defined in the
2526
# applications section. We intend this to supplement and possibly even replace previous "magic" mechanisms, though
2627
# we do not at present have a target date for removal.
@@ -98,7 +99,7 @@ clusterGroup:
9899
# credentials and OCP pull secrets are defined in Vault.
99100
# See values-secret.yaml.template
100101
#
101-
#clusterPools:
102+
# clusterPools:
102103
# exampleAWSPool:
103104
# name: aws-ap
104105
# openshiftVersion: 4.10.18

0 commit comments

Comments
 (0)