Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflow: removing trailing spaces in calico manifest #468

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 2 additions & 0 deletions .github/workflows/sync-calico-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ files=( $(git grep 'Source: https://raw\.githubusercontent\.com/projectcalico/ca
# - download the new manifest
new_link="https://raw.githubusercontent.com/projectcalico/calico/${calico_version}/manifests/custom-resources.yaml"
wget "${new_link}"
sed -i 's/[[:space:]]*$//' custom-resources.yaml
mv custom-resources.yaml throw-away/custom-resources-new.yaml
# - download the old version of manifest
old_link=$(git grep -nA1 -e 'cat << EOF > calico.yaml' -- kola/tests/kubeadm/templates.go | tail -n 1 | sed -e 's/^.*Source: //')
wget "${old_link}"
sed -i 's/[[:space:]]*$//' custom-resources.yaml
mv custom-resources.yaml throw-away/custom-resources-old.yaml
# - for each of the using files do
for file in "${files[@]}"; do
Expand Down