Skip to content

Conversation

@Prashansa-K
Copy link

@Prashansa-K Prashansa-K commented Jan 12, 2026

Summary

In this PR, we are adding get and list support for
system-account resources.
As the underlying API doesn't support labels yet,
we are just supporting read operations over these
resources.

Operations supported:

  • list, list by name
  • get (== list if no args are passed)
  • get by name, id

Issues resolved

For #258

Documentation

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Copilot AI review requested due to automatic review settings January 12, 2026 04:06
@CLAassistant
Copy link

CLAassistant commented Jan 12, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

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 pull request adds imperative get support for system accounts in the Konnect CLI, allowing users to retrieve and list system account information through direct commands.

Changes:

  • Added SystemAccountsAPI interface and implementation in the helpers package for SDK abstraction
  • Implemented get system_account command with support for listing all system accounts and fetching by ID or name
  • Integrated the new command into the root-level get verb for direct access

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
internal/konnect/helpers/system_accounts.go Defines the SystemAccountsAPI interface and implementation for listing and getting system accounts
internal/konnect/helpers/sdk_mock.go Adds mock factory support for SystemAccountsAPI testing
internal/konnect/helpers/sdk.go Registers the SystemAccountsAPI getter in the main SDK interface
internal/cmd/root/verbs/get/system_account.go Creates the direct system account command with Konnect-specific flag bindings
internal/cmd/root/verbs/get/get.go Integrates the system account command into the root get verb
internal/cmd/root/products/konnect/system_account/system_account.go Defines the system account command structure with metadata and aliases
internal/cmd/root/products/konnect/system_account/getSystemAccount.go Implements the core logic for listing and getting system accounts with pagination support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Prashansa-K Prashansa-K marked this pull request as ready for review January 18, 2026 08:24
@Prashansa-K Prashansa-K requested a review from rspurgeon January 18, 2026 08:24
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