Commit 7f96b2a
Only expose Service ports that are used for a PostgreSQL instance
The Service template would check for the presence of optional ports
(e.g. pgBadger, collect) and expose those. However, this check is
performed by seeing if the value of the pgBadger / collect port is
present. The pgcluster CRD sets these values by default and, as such,
would always expose the port regardless if pgBadger/collect were
enabled.
This adjusts the logic to only include the value of the collect/pgBadger
port in the Service template if collect/pgBadger are actually enabled
on the CR entry.
Issue: #16111 parent f7634df commit 7f96b2a
1 file changed
+26
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
64 | 82 | | |
65 | 83 | | |
66 | 84 | | |
| |||
0 commit comments