(chore) move resource(limits) to an include for easier maintenance (#1034)

This commit is contained in:
Kjeld Schouten-Lebbing
2021-09-26 20:44:02 +02:00
committed by GitHub
parent 4c1861933f
commit 68a5032dad
97 changed files with 140 additions and 3800 deletions
+5
View File
@@ -166,6 +166,11 @@ include_questions(){
/# Include{deviceList}/ { for (i=0;i<n;++i) print a[i]; next }
1' templates/questions/deviceList.yaml ${target}/questions.yaml > tmp && mv tmp ${target}/questions.yaml
# Replace # Include{resources} with the standard deviceList codesnippet
awk 'NR==FNR { a[n++]=$0; next }
/# Include{resources}/ { for (i=0;i<n;++i) print a[i]; next }
1' templates/questions/resources.yaml ${target}/questions.yaml > tmp && mv tmp ${target}/questions.yaml
}
clean_catalog() {