Skip to content

Admin partitions/list imported services#2120

Merged
LakshmiNarayananDesikan merged 2 commits intomainfrom
admin-partitions/list-imported-services
Jan 21, 2026
Merged

Admin partitions/list imported services#2120
LakshmiNarayananDesikan merged 2 commits intomainfrom
admin-partitions/list-imported-services

Conversation

@LakshmiNarayananDesikan
Copy link
Contributor

@LakshmiNarayananDesikan LakshmiNarayananDesikan commented Jan 20, 2026

Description:

Adds support for Consul's /v1/imported-services API endpoint, enabling consul-template to query and template services imported from other partitions in Consul Enterprise

Testing Setps:

  1. Create the setup with consul server agent, 2 partitions with consul client agen running on each partition, register services in each partition, then export services from one partition to another.
  2. imported-services.ctmpl
=== Imported Services for Downstream Partition ===

{{- range importedServices "downstream" }}
Service: {{ .Service }}
  Namespace: {{ .Namespace }}
  Source Partition: {{ .SourcePartition }}
{{- end }}
  1. consul-template -consul-addr="http://127.0.0.1:8500" -template="imported-result.txt" -once
  2. Result: imported-result.txt
=== Imported Services for Downstream Partition ===
Service: payments
  Namespace: default
  Source Partition: upstream

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@LakshmiNarayananDesikan LakshmiNarayananDesikan requested a review from a team as a code owner January 20, 2026 11:10
@LakshmiNarayananDesikan LakshmiNarayananDesikan merged commit 9d51cde into main Jan 21, 2026
52 of 60 checks passed
@LakshmiNarayananDesikan LakshmiNarayananDesikan deleted the admin-partitions/list-imported-services branch January 21, 2026 10:34
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.

2 participants