GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-proxy-operator

Having two AuthProxyWorkload with same selector and same connection string makes the operator fail creation

オープン
#789 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
120
フォーク
18
PR マージ指標
30日以内にマージされた PR はありません

説明

**Information**:
Having 2 `AuthProxyWorkload` with same selector and same connection string makes the operator fail. This should still work, as there is no conflicting information and allows a smooth rollover.

The question is, how would one handle 2 conflicting ones, but I think this one should not fail, if it's not conflicting information. But I guess this a design choice? Looking forward to your thoughts!

**Version where the error occured**:
1.7.8

**Reproduced on latest version**:
Yes

**Logs / Further Info**:
```
Name: open-webui-pgbouncer-78dd849f95.18c83568c85e5cc4
Namespace: open-webui
Labels:
Annotations:
API Version: events.k8s.io/v1
Deprecated Count: 8
Deprecated First Timestamp: 2026-08-03T05:46:16Z
Deprecated Last Timestamp: 2026-08-03T05:46:21Z
Deprecated Source:
Component: replicaset-controller
Event Time:
Kind: Event
Metadata:
Creation Timestamp: 2026-08-03T05:46:16Z
Resource Version: 1785735981523231007
UID: 68fb8469-a62e-43b2-b1b8-4b340decc481
Note: Error creating: admission webhook "pods.proxy.cloudsql.google.com" denied the request: there is an AuthProxyWorkloadConfiguration error reconciling this workload found 1 configuration errors on workload /v1, Kind=Pod open-webui/: [{PortConflict proxy port 5432 for instance REDACTED:europe-west3:shared-postgres is already in use open-webui-pgbouncer-double open-webui /v1, Kind=Pod open-webui}]
Reason: FailedCreate
Regarding:
API Version: apps/v1
Kind: ReplicaSet
Name: open-webui-pgbouncer-78dd849f95
Namespace: open-webui
Resource Version: 1785735959118047010
UID: 08199b78-c069-4b24-98c1-3c421656f9b5
Reporting Controller: replicaset-controller
Type: Warning
Events:

```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

admission webhook の AuthProxyWorkload 設定の調整処理から着手し、proxy port 5432 に対して報告された PortConflict を確認してください。同じ selector と connection string を使用する 2 つの AuthProxyWorkload リソースでケースを再現し、同一の構成と競合する構成に対する想定される処理を判断したうえで、合意した動作の回帰テストを追加してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go, google-cloud, kubernetes
領域
cloud, infrastructure
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。