From f7088a89babdc418689766a9216a8f295634d7f8 Mon Sep 17 00:00:00 2001 From: jayson wang Date: Fri, 2 Feb 2024 11:46:23 +0800 Subject: [PATCH] fix typo --- alidns.go | 4 ++-- config.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alidns.go b/alidns.go index 706697c..2b55486 100644 --- a/alidns.go +++ b/alidns.go @@ -160,10 +160,10 @@ func (s *AliSolver) loadSecretData(selector cmmeta.SecretKeySelector, ns string) func (s *AliSolver) validSecretData(data []byte) bool { for _, b := range data { if b <= ' ' || b == 0x7f || b == '\t' { - return true + return false } } - return false + return true } // AliDNS is a client for manipulating Aliyun-DNS diff --git a/config.go b/config.go index 410b911..d53fc09 100644 --- a/config.go +++ b/config.go @@ -27,7 +27,7 @@ import ( // resource and fetch these credentials using a Kubernetes clientset. type Config struct { Region string `json:"region"` // optional - AccessKeyIdRef cmmeta.SecretKeySelector `json:"testAccessKeyIdRef"` + AccessKeyIdRef cmmeta.SecretKeySelector `json:"accessKeyIdRef"` // AccessKeySecretRef will serve as the alias name for SecretAccessKeyRef AccessKeySecretRef cmmeta.SecretKeySelector `json:"accessKeySecretRef"` SecretAccessKeyRef cmmeta.SecretKeySelector `json:"secretAccessKeyRef"`