mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-11-01 19:21:00 +01:00
Fix typo in scaleway provider
This commit is contained in:
parent
6811dc6115
commit
3826d236a6
@ -136,7 +136,7 @@ func (p *ScalewayProvider) Records(ctx context.Context) ([]*endpoint.Endpoint, e
|
|||||||
// In this case, we juste take the first one.
|
// In this case, we juste take the first one.
|
||||||
if existingEndpoint, ok := endpoints[record.Type.String()+"/"+fullRecordName]; ok {
|
if existingEndpoint, ok := endpoints[record.Type.String()+"/"+fullRecordName]; ok {
|
||||||
existingEndpoint.Targets = append(existingEndpoint.Targets, record.Data)
|
existingEndpoint.Targets = append(existingEndpoint.Targets, record.Data)
|
||||||
log.Infof("Appending target %s to record %s, using TTL and priotiry of target %s", record.Data, fullRecordName, existingEndpoint.Targets[0])
|
log.Infof("Appending target %s to record %s, using TTL and priority of target %s", record.Data, fullRecordName, existingEndpoint.Targets[0])
|
||||||
} else {
|
} else {
|
||||||
ep := endpoint.NewEndpointWithTTL(fullRecordName, record.Type.String(), endpoint.TTL(record.TTL), record.Data)
|
ep := endpoint.NewEndpointWithTTL(fullRecordName, record.Type.String(), endpoint.TTL(record.TTL), record.Data)
|
||||||
ep = ep.WithProviderSpecific(scalewayPriorityKey, fmt.Sprintf("%d", record.Priority))
|
ep = ep.WithProviderSpecific(scalewayPriorityKey, fmt.Sprintf("%d", record.Priority))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user