mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-05 17:16:59 +02:00
feat(ambassador): add support for provider specific annotations
This commit is contained in:
parent
f71a82212e
commit
6cec5dd7df
@ -166,13 +166,10 @@ func (sc *ambassadorHostSource) Endpoints(ctx context.Context) ([]*endpoint.Endp
|
||||
// endpointsFromHost extracts the endpoints from a Host object
|
||||
func (sc *ambassadorHostSource) endpointsFromHost(ctx context.Context, host *ambassador.Host, targets endpoint.Targets) ([]*endpoint.Endpoint, error) {
|
||||
var endpoints []*endpoint.Endpoint
|
||||
|
||||
providerSpecific := endpoint.ProviderSpecific{}
|
||||
setIdentifier := ""
|
||||
annotations := host.Annotations
|
||||
|
||||
resource := fmt.Sprintf("host/%s/%s", host.Namespace, host.Name)
|
||||
|
||||
annotations := host.Annotations
|
||||
providerSpecific, setIdentifier := getProviderSpecificAnnotations(annotations)
|
||||
ttl := getTTLFromAnnotations(annotations, resource)
|
||||
|
||||
if host.Spec != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user