Skip to content

Commit f2f3ebb

Browse files
committed
use settle time on appropriate plugins
1 parent fa35ac0 commit f2f3ebb

File tree

5 files changed

+36
-5
lines changed

5 files changed

+36
-5
lines changed

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/KubernetesPfSenseController/Plugin/DNSIngresses.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ public function postReadWatches()
6868
{
6969
}
7070

71+
/**
72+
* How long to wait for watches to settle
73+
*
74+
* @return int
75+
*/
76+
public function getSettleTime()
77+
{
78+
return 10;
79+
}
80+
7181
/**
7282
* Build a set of hosts that should have IP Address
7383
*

src/KubernetesPfSenseController/Plugin/DNSServices.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ public function postReadWatches()
7272
{
7373
}
7474

75+
/**
76+
* How long to wait for watches to settle
77+
*
78+
* @return int
79+
*/
80+
public function getSettleTime()
81+
{
82+
return 10;
83+
}
84+
7585
/**
7686
* Build a set of hosts that should have IP Address
7787
*

src/KubernetesPfSenseController/Plugin/HAProxyIngressProxy.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ public function postReadWatches()
9393
{
9494
}
9595

96+
/**
97+
* How long to wait for watches to settle
98+
*
99+
* @return int
100+
*/
101+
public function getSettleTime()
102+
{
103+
return 10;
104+
}
105+
96106
/**
97107
* Update pfSense state
98108
*

src/KubernetesPfSenseController/Plugin/KubernetesUtils.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ public static function findListItem($list, $name, $namespace = null)
162162
* @param $list
163163
* @param $item
164164
*/
165-
public static function putListItem(&$list, $item) {
165+
public static function putListItem(&$list, $item)
166+
{
166167
$result = self::findListItem($list, $item['metadata']['name'], $item['metadata']['namespace']);
167168
$itemKey = $result['key'];
168169

0 commit comments

Comments
 (0)