Skip to content

Commit f624899

Browse files
Merge pull request #7846 from sadasu/CORS-2376
CORS-2315: GCP: Skip populating Private/Public Zones within DNS manifest
2 parents 611e16a + 680c85c commit f624899

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/asset/manifests/dns.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ func (d *DNS) Generate(dependencies asset.Parents) error {
148148
}
149149
}
150150
case gcptypes.Name:
151+
// We donot want to configure cloud DNS when `UserProvisionedDNS` is enabled.
152+
// So, do not set PrivateZone and PublicZone fields in the DNS manifest.
153+
if installConfig.Config.GCP.UserProvisionedDNS == gcptypes.UserProvisionedDNSEnabled {
154+
config.Spec.PublicZone = &configv1.DNSZone{ID: ""}
155+
config.Spec.PrivateZone = &configv1.DNSZone{ID: ""}
156+
break
157+
}
151158
client, err := icgcp.NewClient(context.Background())
152159
if err != nil {
153160
return err

0 commit comments

Comments
 (0)