Skip to content

Conversation

@tmalikconfluent
Copy link
Contributor

@tmalikconfluent tmalikconfluent commented Oct 7, 2025

Release Notes

Breaking Changes

  • PLACEHOLDER

New Features

  • Add support for flink default compute pool

Bug Fixes

  • PLACEHOLDER

Checklist

  • I have successfully built and used a custom CLI binary, without linter issues from this PR.
  • I have clearly specified in the What section below whether this PR applies to Confluent Cloud, Confluent Platform, or both.
  • I have verified this PR in Confluent Cloud pre-prod or production environment, if applicable.
  • I have verified this PR in Confluent Platform on-premises environment, if applicable.
  • I have attached manual CLI verification results or screenshots in the Test & Review section below.
  • I have added appropriate CLI integration or unit tests for any new or updated commands and functionality.
  • I confirm that this PR introduces no breaking changes or backward compatibility issues.
  • I have indicated the potential customer impact if something goes wrong in the Blast Radius section below.
  • I have put checkmarks below confirming that the feature associated with this PR is enabled in:
    • Confluent Cloud prod
    • Confluent Cloud stag
    • Confluent Platform
    • Check this box if the feature is enabled for certain organizations only

What

This will allow user to submit statement without an explicitly specified compute pool (CP). Instead, backend will provision a “default” compute pool (DCP) that is created and managed on the user’s behalf.

Blast Radius

Flink statement create and flink compute pool commands could be affected for existing as well as new behaviour.

References

https://confluentinc.atlassian.net/browse/APIE-571

Test & Review

Added extensive integration tests

Manual Testing:

Statement create without compute pool:

image image image

Starting flink shell without compute pool:
image

Without this change:
image

CLI Flag --default-pool

image image image

Default Compute Pool and Default Max CFU:

image

@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@sonarqube-confluent
Copy link

Passed

Analysis Details

3 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 3 Code Smells

Coverage and Duplications

  • Coverage 85.10% Coverage (78.20% Estimated after merge)
  • Duplications No duplication information (0.00% Estimated after merge)

Project ID: cli

View in SonarQube

@tmalikconfluent tmalikconfluent marked this pull request as ready for review October 21, 2025 16:12
@tmalikconfluent tmalikconfluent requested a review from a team as a code owner October 21, 2025 16:12
Copilot AI review requested due to automatic review settings October 21, 2025 16:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for Flink default compute pools, allowing users to submit statements without explicitly specifying a compute pool. The backend will provision a "default" compute pool managed on the user's behalf.

Key Changes:

  • Added --default-pool flag to compute pool create/update commands
  • Added new compute-pool-config command group for managing default pool settings
  • Modified statement creation and shell commands to accept --cloud and --region flags as alternatives to --compute-pool

Reviewed Changes

Copilot reviewed 39 out of 41 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/flink/command.go Added compute-pool-config command registration and extraneous comment
internal/flink/command_compute_pool.go Added DefaultPool field to computePoolOut struct
internal/flink/command_compute_pool_*.go Updated create/update/describe/list commands to handle default pool flag
internal/flink/command_compute_pool_config*.go New files implementing compute pool config describe/update commands
internal/flink/command_statement*.go Modified to support creating statements without compute pool using cloud/region
internal/flink/command_shell.go Updated shell command to support default compute pool workflow
pkg/ccloudv2/flink.go Added API methods for compute pool config operations
test/test-server/*.go Updated test handlers to support default pool and compute pool config
test/flink_test.go Added integration tests for default pool functionality
test/fixtures/output/flink/** Updated golden files to include Default Pool column/field
go.mod Updated SDK dependencies to support new API features

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

return cmd
}

// here
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

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

Remove the extraneous comment '// here' which appears to be leftover debugging or placeholder text.

Suggested change
// here

Copilot uses AI. Check for mistakes.
Copy link
Member

@cqin-confluent cqin-confluent left a comment

Choose a reason for hiding this comment

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

Looks great overall! Left a few comments

return err
}
} else {
client, err = c.GetFlinkGatewayClient(false)
Copy link
Member

Choose a reason for hiding this comment

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

Same here. Did we verify the updated logic is working as expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes this is well tested.

@sonarqube-confluent
Copy link

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