-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix(provider): aws-sd provider null pointer #5404
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
Conversation
4c844b6
to
f19bfa0
Compare
0a67905
to
bab1fe2
Compare
/retitle fix(provider): aws-sd provider null pointer |
/label tide/merge-method-squash |
bab1fe2
to
7fcd1cd
Compare
@redbaron Do you think you can do a first review on this PR ? |
@JyothsnaGuduri @restlesswind Can you confirm this PR fixes your issue ? To test from a PR: gh repo clone kubernetes-sigs/external-dns
cd external-dns
gh pr checkout 5404
kubectl config use-context <context>
go run main.go \
--kubeconfig=<kubeconfig_path> \
--xxx=yyy |
I can confirm this PR changes work fine, I used following command after cloning the repo and PR branch
find the logs below
Hope this helps |
Thanks 👍. |
Signed-off-by: ivan katliarchuk <[email protected]>
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mloiseleur 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 |
Description
Partially Fixes #5202
Relates #5167
^ In the issue is missing HOW to reproduce, so rely mainly on test fixtures
The issue fixes a case, when record exist, but not managed by current external-dns, aka missing label
aws-sd-description
. In that case we do a safe skip. Current behaviour - null pointer and crash.For update,create,delete etc, required labels managed here
external-dns/registry/aws_sd_registry.go
Lines 84 to 100 in 4ea5f9d
managed to capture null pointers with test fixtures.
Another potential case for
nil
pointer is hereexternal-dns/provider/awssd/aws_sd.go
Line 418 in 4ea5f9d
ep.Labels
could be null at this stage. Not changed, will see if there going to be a bug raised.Checklist