Skip to content

Commit 8893945

Browse files
authored
fix: update configure hook to add a newline before adding watchlist flag (#4946)
1 parent 0869c98 commit 8893945

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

snap/hooks/configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ if ! grep -e "WatchList" ${SNAP_DATA}/args/kube-apiserver
390390
then
391391
if ! grep -e "--feature-gates=" ${SNAP_DATA}/args/kube-apiserver
392392
then
393+
echo "" >> ${SNAP_DATA}/args/kube-apiserver
393394
echo '--feature-gates=WatchList=false' >> ${SNAP_DATA}/args/kube-apiserver
394395
else
395396
# Find the line starting with --feature-gates= and append ,WatchList=false

0 commit comments

Comments
 (0)