Skip to content

Improving integration mode to become more resilient to upstream outages#425

Open
bennyyang11 wants to merge 15 commits into
mainfrom
bennyyang/sc-136332/sdk-local-development-workflow-friction
Open

Improving integration mode to become more resilient to upstream outages#425
bennyyang11 wants to merge 15 commits into
mainfrom
bennyyang/sc-136332/sdk-local-development-workflow-friction

Conversation

@bennyyang11
Copy link
Copy Markdown

What does this PR do?

Shortcut 136332

Makes the SDK pod survive brief replicated.app outages.

  • Bootstrap is split: the listener comes up on local-only work; upstream sync runs in the background and no longer blocks /healthz.
  • Integration mode caches the license to a replicated-license-cache Secret and serves from cache when upstream is down (sets X-Replicated-License-Cache: stale).
  • Opt-out via requireUpstreamOnStartup: true in chart values.

Does this PR introduce a user-facing change?

SDK readiness no longer blocks on replicated.app. Integration mode caches the license locally and falls back to cache when upstream is unreachable. Opt out with `requireUpstreamOnStartup: true`.

Comment thread chart/templates/replicated-role.yaml Outdated
Comment thread pkg/apiserver/bootstrap.go
Comment thread pkg/apiserver/bootstrap.go
Comment thread pkg/apiserver/server.go Outdated
Comment thread pkg/apiserver/server.go
Comment thread pkg/apiserver/bootstrap.go
Comment thread pkg/store/memory_store.go
Comment thread pkg/store/memory_store.go
Comment thread pkg/apiserver/server.go
Comment thread pkg/apiserver/server.go Outdated
Comment thread pkg/handlers/app.go Outdated
Comment thread pkg/license/cache/cache.go Outdated
Comment thread pkg/store/store_interface.go Outdated
Comment thread pkg/apiserver/server.go Outdated
Comment thread pkg/heartbeat/heartbeat.go Outdated
@bennyyang11
Copy link
Copy Markdown
Author

bugbot run

Comment thread pkg/apiserver/bootstrap.go Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 53c18b9. Configure here.

Comment thread pkg/apiserver/server.go Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant