4 Commits
v0.4.4 ... main

Author SHA1 Message Date
f143a34954 Bump version to v0.4.6
All checks were successful
Release workflow / Check version (push) Successful in 5s
Release workflow / Publish Helm chart (push) Successful in 42s
Release workflow / Publish Docker image (push) Successful in 2m17s
2023-10-17 15:12:54 -04:00
4d78692298 Wrap TXT value in quotes 2023-10-17 15:12:35 -04:00
dfa2e7f205 Bump version to v0.4.5
All checks were successful
Release workflow / Check version (push) Successful in 5s
Release workflow / Publish Helm chart (push) Successful in 32s
Release workflow / Publish Docker image (push) Successful in 2m19s
2023-10-17 15:00:19 -04:00
89deb39e81 Fix build 2023-10-17 15:00:13 -04:00
2 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
apiVersion: v2
description: A Helm chart for cert-manager-webhook-gandi
name: cert-manager-webhook-gandi
version: v0.4.4
version: v0.4.6

View File

@@ -111,10 +111,11 @@ func (c *gandiDNSProviderSolver) Present(ch *v1alpha1.ChallengeRequest) error {
return fmt.Errorf("failed to get record: %w", err)
}
txtValues := []string{fmt.Sprintf(`"%s"`, ch.Key)}
if present {
_, err = client.UpdateDomainRecordByNameAndType(domain, entry, "TXT", GandiMinTtl, []string{ch.Key})
_, err = client.UpdateDomainRecordByNameAndType(domain, entry, "TXT", GandiMinTtl, txtValues)
} else {
_, err = client.CreateDomainRecord(domain, entry, "TXT", GandiMinTtl, []string{ch.Key})
_, err = client.CreateDomainRecord(domain, entry, "TXT", GandiMinTtl, txtValues)
}
if err != nil {
return fmt.Errorf("failed to set record: %w", err)
@@ -205,7 +206,7 @@ func (c *gandiDNSProviderSolver) newClient(ch *v1alpha1.ChallengeRequest) (*live
}
return gandi.NewLiveDNSClient(config.Config{
APIKey: apiKey,
Token: apiKey,
Timeout: time.Second * 30,
Debug: DebugHTTP != "",
}), nil