Skip to content

Commit 3a57d27

Browse files
committed
[api] add Addresses field to ProxyStatus
Add a top-level Addresses []string field to ProxyStatus for externally-reachable IP addresses. This establishes Proxy as the canonical source of truth for anycast IPs, written by the backplane (shared mode) or apiserver (dedicated mode) from Global Accelerator. Precedent: v1alpha1 ProxyStatus had IPs []string. Additive and backward-compatible.
1 parent 5007d92 commit 3a57d27

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

api/core/v1alpha2/proxy_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ type ProxyReplicaStatus struct {
208208

209209
// ProxyStatus defines the observed state of Proxy.
210210
type ProxyStatus struct {
211+
// Addresses is the list of externally-reachable IP addresses for this Proxy.
212+
// Written by the backplane (shared mode) or apiserver (dedicated mode)
213+
// from Global Accelerator anycast IPs.
214+
// +optional
215+
Addresses []string `json:"addresses,omitempty"`
216+
211217
// Replicas are statuses of the individual proxy replicas.
212218
Replicas []*ProxyReplicaStatus `json:"replicas,omitempty"`
213219
}

api/core/v1alpha2/zz_generated.deepcopy.go

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

api/generated/zz_generated.openapi.go

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

0 commit comments

Comments
 (0)