gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
17.69k stars 1.77k forks source link

Discover EKS: allow custom labels for Kube Server #49420

Open marcoandredinis opened 4 days ago

marcoandredinis commented 4 days ago

This PR allows the UI to send extra labels for setting up the EKS cluster.

Related https://github.com/gravitational/teleport/issues/46976

Demo

$ curl 'https://lenix.marcoandredinis.com/v1/webapi/sites/lenix.marcoandredinis.com/integrations/aws-oidc/teleportdev/enrolleksclusters' \
--data-raw '{"region":"eu-west-2","enableAppDiscovery":true,"clusterNames":["MarcoEKSCustomLabels01"], "extraLabels":[{"name":"marco-label-key", "value":"marco-label-value"}]}'
image