-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make the hostname assigned to tags configurable by Operators. #4292
Make the hostname assigned to tags configurable by Operators. #4292
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattmoor The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This adds a `tagTemplate` to the `config-network` ConfigMap so that (similar to `domainTemplate`) Operators may configure how hostnames are assigned to tags. This change just makes it configurable, a subsequent change will change the default value to `{{.Tag}}-{{.Name}}` to reduce the likelihood of naming collisions with BYO-revision-names Progress towards: knative#4206
04ad2d8
to
592e69f
Compare
The following is the coverage report on pkg/.
|
/lgtm Looks good! Thanks for doing some tidy-ing up as well in the tests. |
func checkTagTemplate(t *template.Template) error { | ||
// To a test run of applying the template, and see if we | ||
// produce a result without error. | ||
data := TagTemplateValues{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can probably live outside the function not to construct it each time.
This adds a
tagTemplate
to theconfig-network
ConfigMap so that (similar todomainTemplate
) Operators may configure how hostnames are assigned to tags.This change just makes it configurable, a subsequent change will change the default
value to
{{.Tag}}-{{.Name}}
to reduce the likelihood of naming collisions withBYO-revision-names
Progress towards: #4206