chore(questions): split serviceSelector (#3751)
* chore(questions): split serviceSelector * replace questions with the new templates
This commit is contained in:
@@ -116,10 +116,30 @@ include_questions(){
|
||||
/# Include{serviceRoot}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/service/serviceRoot.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
|
||||
# Replace # Include{serviceSelector} with the standard serviceSelector codesnippet
|
||||
# Replace # Include{serviceSelectorExtras} with the standard serviceSelectorExtras codesnippet
|
||||
awk 'NR==FNR { a[n++]=$0; next }
|
||||
/# Include{serviceSelector}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/service/serviceSelector.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
/# Include{serviceSelectorExtras}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/service/serviceSelectorExtras.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
|
||||
# Replace # Include{serviceSelectorSimple} with the standard serviceSelectorSimple codesnippet
|
||||
awk 'NR==FNR { a[n++]=$0; next }
|
||||
/# Include{serviceSelectorSimple}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/service/serviceSelectorSimple.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
|
||||
# Replace # Include{serviceSelectorClusterIP} with the standard serviceSelectorClusterIP codesnippet
|
||||
awk 'NR==FNR { a[n++]=$0; next }
|
||||
/# Include{serviceSelectorClusterIP}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/service/serviceSelectorClusterIP.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
|
||||
# Replace # Include{serviceSelectorLoadBalancer} with the standard serviceSelectorLoadBalancer codesnippet
|
||||
awk 'NR==FNR { a[n++]=$0; next }
|
||||
/# Include{serviceSelectorLoadBalancer}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/service/serviceSelectorLoadBalancer.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
|
||||
# Replace # Include{serviceSelectorNodePort} with the standard serviceSelectorNodePort codesnippet
|
||||
awk 'NR==FNR { a[n++]=$0; next }
|
||||
/# Include{serviceSelectorNodePort}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/service/serviceSelectorNodePort.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
|
||||
# Replace # Include{advancedPortHTTP} with the standard advancedPortHTTP codesnippet
|
||||
awk 'NR==FNR { a[n++]=$0; next }
|
||||
|
||||
Reference in New Issue
Block a user