Skip to content

Commit

Permalink
updated dnsrecord config (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: Jha <[email protected]>
  • Loading branch information
harshcommits and Jha authored Nov 28, 2022
1 parent 6979625 commit c7a0e1d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions example/30-dnsrecord.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ apiVersion: v1
kind: Secret
metadata:
name: dnsrecord-external
namespace: shoot--foobar--gcp
namespace: shoot--foobar--infoblox
type: Opaque
data:
view: default
# username: base64(username)
# password: base64(password)
# host: base64(host)
username: base64(username)
password: base64(password)
host: base64(host)
---
apiVersion: extensions.gardener.cloud/v1alpha1
kind: Cluster
metadata:
name: shoot--foobar--gcp
name: shoot--foobar--infoblox
spec:
cloudProfile:
apiVersion: core.gardener.cloud/v1alpha1
Expand All @@ -37,14 +37,14 @@ apiVersion: extensions.gardener.cloud/v1alpha1
kind: DNSRecord
metadata:
name: dnsrecord-external
namespace: shoot--foobar--gcp
namespace: shoot--foobar--infoblox
spec:
type: infoblox-dns
secretRef:
name: dnsrecord-external
namespace: shoot--foobar--gcp
namespace: shoot--foobar--infoblox
# zone: dnstest/example.com
name: api.gcp.foobar.shoot.example.com
name: api.infoblox.foobar.shoot.example.com
recordType: A # Use A, CNAME, or TXT
values: # list of IP addresses for A records, a single hostname for CNAME records, or a list of texts for TXT records.
- 1.2.3.4
Expand Down
4 changes: 2 additions & 2 deletions pkg/dnsclient/dnsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ func NewDNSClient(ctx context.Context, username string, password string, host st
Password: password,
}

// verify := "true"
verify := "false"
verify := "true"
// verify := "false"
if infobloxConfig.SSLVerify != nil {
verify = strconv.FormatBool(*infobloxConfig.SSLVerify)
}
Expand Down

0 comments on commit c7a0e1d

Please sign in to comment.