mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 06:08:23 +08:00
When modifying the `types.WatchKind` of `ForRemoteProxy` a series of steps need to be performed to prevent bricking remote cluster caches. First, the `cfg.Watches` of `ForOldRemoteProxy` must be replaced with the current `cfg.Watches` of `ForRemoteProxy`. Next, the version used by `lib/reversetunnel/srv.go` to determine whether to use `ForRemoteProxy` or `ForOldRemoteProxy` must be updated to be the release in which the new resource(s) will exist in. Once both of these are done, `ForRemoteProxy` may be updated. Comments are added to `ForRemoteProxy`, `ForOldRemoteProxy`, and `createRemoteAccessPoint` to help prevent backward incompatible changes like https://github.com/gravitational/teleport/issues/17211 and https://github.com/gravitational/teleport/issues/19907 from occurring again in future releases.