Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Network dns refactory #1365

Draft
wants to merge 46 commits into
base: main
Choose a base branch
from

Conversation

renato-rudnicki
Copy link
Contributor

This PR implement a DNS hub for single forwarding between multiple hubs, enabling DNS communication between on-prem and a single GCP hub.

@renato-rudnicki renato-rudnicki marked this pull request as draft January 15, 2025 15:24
@renato-rudnicki renato-rudnicki changed the title fix!: Network dns refactory Draft: Network dns refactory Jan 15, 2025
restricted_subnet_secondary_ranges = local.restricted_subnet_secondary_ranges
restricted_private_service_connect_ip = "10.17.0.8"
restricted_private_service_connect_ip = "10.17.0.7"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this changed?

@@ -245,6 +246,10 @@ type NetSharedTfvars struct {
TargetNameServerAddresses []ServerAddress `hcl:"target_name_server_addresses"`
}

type NetProductionTfvars struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a required field, not an optional field, what happens when you use the helper to deploy the hub and spoke alternative?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a new deploy setting hub and spoke and everything works as exected. No errors. The NetProductionTfvars is being used on
https://github.com/renato-rudnicki/terraform-example-foundation/blob/5077d753bae1d283bc8904dfbba26d31f6a95a81/helpers/foundation-deployer/stages/apply.go#L298

// production
	productionTfvars := NetProductionTfvars{
		TargetNameServerAddresses: tfvars.TargetNameServerAddresses,
	}
	err = utils.WriteTfvars(filepath.Join(c.FoundationPath, step, "production.auto.tfvars"), productionTfvars)
	if err != nil {
		return err
	}

It only create the production.auto.tfvars file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants