commit dc1c99ad3fc0768fdbc75a8aa083801b0f34fdb5
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2022-03-13T00:11:16Z |
| subject | to be squashed |
commit dc1c99ad3fc0768fdbc75a8aa083801b0f34fdb5
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2022-03-13T00:11:16Z
to be squashed
---
main.go | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/main.go b/main.go
index da78d24..52d8bf1 100644
--- a/main.go
+++ b/main.go
@@ -68,7 +68,7 @@ type customDNSProviderConfig struct {
//Email string `json:"email"`
SecretRef string `json:"secretName"`
- Domain string `json:"domain"`
+ Domain string `json:"domain"`
//APIKeySecretRef v1.SecretKeySelector `json:"apiKeySecretRef"`
}
@@ -101,8 +101,11 @@ func (c *customDNSProviderSolver) Present(ch *v1alpha1.ChallengeRequest) error {
if err != nil {
return fmt.Errorf("Unable to get secret `%s/%s`; %v", secretName, ch.ResourceNamespace, err)
}
- fmt.Printf( "%v", secretObj )
+ username := string(secretObj.Data["username"])
+ password := string(secretObj.Data["password"])
+
+ fmt.Printf("Domain: %s, Auth: %s %s", cfg.Domain, username, password)
// TODO: add code that sets a record in the DNS provider's console
return nil