Update deployment of scope
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
75fb29d1e2
commit
bf63546a79
5 changed files with 15 additions and 27 deletions
|
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
curl -L0 https://cloud.weave.works/k8s/1.13.1/scope.yaml -o scope.yaml
|
||||
sed -e /^apiVersion/d -e /^kind/d -e /^items/d -e "s/^ //" -e '/^- / i---' -e 's/^[ -] //' -i scope.yaml
|
||||
kubernetes-split-yaml scope.yaml > generated.log
|
||||
mv generated/*.yaml files/scope/
|
||||
echo -e '---\nweave_scope_files:' > vars/scope-files.yaml
|
||||
cat generated.log | while read LIGNE; do if [ $(echo "${LIGNE}" | grep -c ^File) -eq 1 ]; then echo -n "${LIGNE} "; else echo "${LIGNE}"; fi; done | grep ^File | sort -V | sed 's|.*\(generated/\)\(.*\.yaml\)| - "scope/\2"|' >> vars/scope-files.yaml
|
||||
rm -fr generated{,.log} scope.yaml
|
||||
#curl -L0 https://cloud.weave.works/k8s/1.13.1/scope.yaml -o scope.yaml
|
||||
#sed -e /^apiVersion/d -e /^kind/d -e /^items/d -e "s/^ //" -e '/^- / i---' -e 's/^[ -] //' -i scope.yaml
|
||||
#kubernetes-split-yaml scope.yaml > generated.log
|
||||
#mv generated/*.yaml files/scope/
|
||||
#echo -e '---\nweave_scope_files:' > vars/scope-files.yaml
|
||||
#cat generated.log | while read LIGNE; do if [ $(echo "${LIGNE}" | grep -c ^File) -eq 1 ]; then echo -n "${LIGNE} "; else echo "${LIGNE}"; fi; done | grep ^File | sort -V | sed 's|.*\(generated/\)\(.*\.yaml\)| - "scope/\2"|' >> vars/scope-files.yaml
|
||||
#rm -fr generated{,.log} scope.yaml
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue