-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add options labelFilter
and managedRecordTypes
in Helm Chart
#4849
Add options labelFilter
and managedRecordTypes
in Helm Chart
#4849
Conversation
Hi @abaguas. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
…lm Chart By promoting this options to dedicated values they no longer have to be configured via `extraArgs` In the [K8GB project](https://github.com/k8gb-io/k8gb), a DNS based load balancer, we use external-dns as a chart dependency. We would like to configure all values specific to the controller in the default values of our Chart, and leave to the users the provider configuration. This provider configuration usually includes `extraArgs`. Since `extraArgs` is a list that would be overwritten we would like to keep it empty, otherwise users will have to copy paste our base configuration.
40ee980
to
0eab887
Compare
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.
Thanks for the PR @abaguas, this make sense given the fact that the args are generic.
Could you please run helm-docs
locally to update the README for the new values.
Could you also update charts/external-dns/ci/ci-values.yaml to use the new values you've added. Records could just be setting the implicit defaults explicitly and the selector could be a wildcard.
Signed-off-by: Andre Aguas <[email protected]>
Thank you for the review. Done, but I have a couple of doubts. What is the role of the What is a wildcard selector? The selector is a string of the form The README was already updated. Running |
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.
What is the role of the charts/external-dns/ci/ci-values.yaml file? It was last updated 1 year ago and I didn't find any code references to it? https://github.com/kubernetes-sigs/external-dns/commits/master/charts/external-dns/ci
Helm chart testing uses this to set the chart values.
What is a wildcard selector? The selector is a string of the form =. A * would be taken literally which is not what we want. What am I missing?
You're right. I think for testing purposes it just needs to be a valid selector.
The README was already updated. Running helm-docs resulted in no changes.
The syntax is incorrect which is why the README descriptions aren't being populated. I've suggested the fixes including the existing ones which look to be what you copied.
charts/external-dns/values.yaml
Outdated
@@ -229,6 +229,12 @@ domainFilters: [] | |||
## -- Intentionally exclude domains from being managed. | |||
excludeDomains: [] | |||
|
|||
## -- (string) Filter resources queried for endpoints by label selector |
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.
## -- (string) Filter resources queried for endpoints by label selector | |
# -- (string) Filter resources queried for endpoints by label selector |
Could you also fix the 2 values above to use a # --
prefix.
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.
I see where the mistake came from, thanks. I fix mine and the ones above. The descriptions are now generated
Signed-off-by: Andre Aguas <[email protected]>
Thank you for the feedback. I added a valid selector for helm testing and fixed the helm comments 👍 |
/ok-to-test |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stevehipwell 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 |
I was thinking I was using |
Description
By promoting this options to dedicated values they no longer have to be configured via
extraArgs
.Motivation
In the K8GB project, a DNS based load balancer, we use external-dns as a chart dependency. We would like to configure all values specific to the controller in the default values of our Chart, and leave to the users the provider configuration. This provider configuration usually includes
extraArgs
. SinceextraArgs
is a list that would be overwritten we would like to keep it empty, otherwise users will have to copy paste our base configuration.Checklist