Skip to content

dns fixup in build args #776

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

Merged
merged 10 commits into from
Oct 24, 2024
Merged

dns fixup in build args #776

merged 10 commits into from
Oct 24, 2024

Conversation

nullfunc
Copy link
Contributor

fixes #394

Extract out service name replacement into it's own struct and function
Use same service name replacement for build arguments

@nullfunc nullfunc requested a review from lionello October 23, 2024 22:46
@lionello lionello changed the title dns in build args dns fixup in build args Oct 24, 2024
@nullfunc nullfunc requested a review from lionello October 24, 2024 19:35
return val
}

func (s *ServiceNameReplacer) hasServiceName(name string) bool {
Copy link
Member

Choose a reason for hiding this comment

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

little weird to have a exported struct but then using a private method.

}
}

func (s *ServiceNameReplacer) replaceServiceNameWithDNS(serviceName string, key, value string, replacementMode ReplacementMode) string {
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@lionello lionello merged commit ca61626 into main Oct 24, 2024
11 checks passed
@lionello lionello deleted the eric-dns-in-build-args branch October 24, 2024 20:57
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.

DNS replacement in build args
2 participants