Skip to content

Flink restart support - trying out security check#4332

Closed
tub wants to merge 3 commits into
masterfrom
flink-restart-support
Closed

Flink restart support - trying out security check#4332
tub wants to merge 3 commits into
masterfrom
flink-restart-support

Conversation

@tub

@tub tub commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removes the "paasta restart is currently unsupported for Flink instances" error
  • Sends desired_state="restart" via the existing instance_set_state API
  • The flink-operator handles the full stop→start cycle atomically (no client polling needed)
  • Adds 'restart' desired state to paasta status output

Refactors the flink paasta status output to be less verbose:

  • Moves long URLs to hyperlinks
  • Removes redundant "flink" everywhere
  • Updates unit tests to be less brittle, checking for specific functionality rather than exact verbatim output
image

Depends on

  • Internal PR for flink operator-side restart support

Test plan

  • Existing unit tests pass (no behavior change for non-Flink instances)
  • Manual test: paasta restart -s <flink-service> -i <instance> -c <cluster> triggers operator restart

🤖 Generated with Claude Code

tub and others added 3 commits June 10, 2026 03:15
Instead of printing "unsupported" and telling users to manually
stop + start, send desired_state="restart" via the instance_set_state
API. The flink-operator handles the full stop→start cycle atomically.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Tests now verify that paasta restart calls instance_set_state("restart")
for Flink instances instead of asserting on the old "unsupported" message.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Replace heavy === separators with clean section headers (Links,
  Monitoring, Logs)
- Add OSC 8 terminal hyperlinks with y/ short-link labels as fallback
- Move metadata/links/monitoring to the end (state/pods/jobs first)
- Shorten pod hostnames by stripping cloud DNS suffixes
- Show desired_state when it differs from actual (e.g. "desired: restart")
- Add PaastaColors.terminal_link() utility for OSC 8 hyperlinks

Co-Authored-By: Claude <noreply@anthropic.com>
@tub tub requested a review from nemacysts June 11, 2026 16:00
@tub tub requested a review from a team as a code owner June 11, 2026 16:00
@nemacysts

Copy link
Copy Markdown
Member

as expected, nothing from the security review check :p

@nemacysts

Copy link
Copy Markdown
Member

(i'll also close this so that we can centralize reviews in the OG PR: #4330)

@nemacysts nemacysts closed this Jun 11, 2026
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.

3 participants