Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
packet: fix formatting management CIDRs values for host protection
Browse files Browse the repository at this point in the history
If there is no management_cidrs specified, the template produces empty
line after 'managementCIDRs:' line, which shouldn't be there.

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
  • Loading branch information
invidian committed May 25, 2020
1 parent a54099b commit c1f7ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ clusterCIDRs:
- ${cidr}
%{ endfor ~}
managementCIDRs:
%{ for cidr in management_cidrs ~}
%{~ for cidr in management_cidrs }
- ${cidr}
%{~ endfor }
hostEndpoints:
Expand Down
2 changes: 1 addition & 1 deletion pkg/assets/generated_assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c1f7ea9

Please sign in to comment.