Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of Exported services CLI and docs into release/1.17.x #20492

Conversation

hc-github-team-consul-core
Copy link
Collaborator

Backport

This PR is auto-generated from #20331 to be assessed for backporting due to the inclusion of the label backport/1.17.

🚨

Warning automatic cherry-pick of commits failed. If the first commit failed,
you will see a blank no-op commit below. If at least one commit succeeded, you
will see the cherry-picked commits up to, not including, the commit where
the merge conflict occurred.

The person who merged in the original PR is:
@tauhid621
This person should manually cherry-pick the original PR into a new backport PR,
and close this one when the manual backport PR is merged in.

merge conflict error: unable to process merge commit: "33154cde48155396bf74f38d6a935b547f42c568", automatic backport requires rebase workflow

The below text is copied from the body of the original PR.


Description

This PR adds a new cli command to list exported services

command: consul services exported-services

The PR also adds the API docs for the exported services API.

CLI output
CE

$ ./bin/consul services exported-services                          
Service   Consumer Peers
backend   east, west
db        west
frontend  east, east-eu
web       east

Enterprise

$ ./bin/consul services exported-services                          
Service   Partition  Namespace  Consumer Peers  Consumer Partitions
backend   default    default    east, west      
db        default    default    west            partition-west
frontend  default    default    east, east-eu   
frontend  default    ns         east, east-eu   
web       default    default    east 

CLI output json

$ ./bin/consul services exported-services -format=json
[
    {
        "Service": "backend",
        "Consumers": {
            "Peers": [
                "east",
                "west"
            ]
        }
    },
    {
        "Service": "db",
        "Consumers": {
            "Peers": [
                "west"
            ]
        }
    },
    {
        "Service": "frontend",
        "Consumers": {
            "Peers": [
                "east",
                "east-eu"
            ]
        }
    },
    {
        "Service": "web",
        "Consumers": {
            "Peers": [
                "east"
            ]
        }
    }
]

Testing & Reproduction steps

  • Tests added
  • Manual testing

Links

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

Overview of commits

Ganeshrockz and others added 30 commits November 14, 2023 23:55
notify on failures in go-tests on main and release branches.
Add tenancy to explicit destinations controller
Removed resourcetest func
…rollers/sidecarproxy (#19646)

* Add tenancy tests for folder - internal/mesh/internal/controllers/sidecarproxy

* removed rej files

* added missed out file
* NET-6550 generate stubs

* gatewayclassconfig

* fix minor spacing issue

* fix minor spacing issue

* convert to snake case

* add ports

* snakecase
* Update routetimeoutfilter.mdx

* Update website/content/docs/connect/gateways/api-gateway/configuration/routetimeoutfilter.mdx

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>

* Update website/content/docs/connect/gateways/api-gateway/configuration/routetimeoutfilter.mdx

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>

* Update website/content/docs/connect/gateways/api-gateway/configuration/routetimeoutfilter.mdx

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>

---------

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
…se branches. (#19628)

Skip tests with p95 greater than 30 seconds.
* Integ test (test/deployer): upgrade test with service mesh

* license
* Add mesh_configuration.proto

* Run make proto

* Add cluster scope to MeshConfiguration

* Run make proto
* integ test: add deployer upgrade test to 1.17.x nightly integ test

* checkout 1.17.x branch
* integ-test: fix upgrade test for CE
* add controller docs

* add v2 service mesh docs
feat: add bind type of policy

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/tauhid621_exported_services_docs_and_cli/normally-positive-lionfish branch from 6954efb to c3decd1 Compare February 6, 2024 03:31
Copy link
Collaborator

Choose a reason for hiding this comment

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

Auto approved Consul Bot automated PR

@github-actions github-actions bot added type/docs Documentation needs to be created/updated/clarified theme/api Relating to the HTTP API interface theme/acls ACL and token generation theme/cli Flags and documentation for the CLI interface theme/config Relating to Consul Agent configuration, including reloading theme/ui Anything related to the UI theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies theme/tls Using TLS (Transport Layer Security) or mTLS (mutual TLS) to secure communication type/ci Relating to continuous integration (CI) tooling for testing or releases pr/dependencies PR specifically updates dependencies of project theme/envoy/xds Related to Envoy support theme/contributing Additions and enhancements to community contributing materials theme/certificates Related to creating, distributing, and rotating certificates in Consul labels Feb 6, 2024
@tauhid621
Copy link
Contributor

Manual backport: #20494

@tauhid621 tauhid621 closed this Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/dependencies PR specifically updates dependencies of project theme/acls ACL and token generation theme/api Relating to the HTTP API interface theme/certificates Related to creating, distributing, and rotating certificates in Consul theme/cli Flags and documentation for the CLI interface theme/config Relating to Consul Agent configuration, including reloading theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies theme/contributing Additions and enhancements to community contributing materials theme/envoy/xds Related to Envoy support theme/tls Using TLS (Transport Layer Security) or mTLS (mutual TLS) to secure communication theme/ui Anything related to the UI type/ci Relating to continuous integration (CI) tooling for testing or releases type/docs Documentation needs to be created/updated/clarified
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet