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

Improve message on stucking dnsentry deletion #155

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

MartinWeindel
Copy link
Member

How to categorize this PR?

/area control-plane
/kind enhancement

What this PR does / why we need it:
Improve error message for DNS entry failed deletion

Which issue(s) this PR fixes:
Fixes #154

Release note:

Improve error message for DNS entry failed deletion

@MartinWeindel MartinWeindel requested review from a team as code owners August 26, 2022 06:48
@gardener-robot gardener-robot added area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py) labels Aug 26, 2022
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Aug 26, 2022
@gardener-robot-ci-2 gardener-robot-ci-2 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Aug 26, 2022
mandelsoft
mandelsoft previously approved these changes Aug 29, 2022
Copy link
Member

@timuthy timuthy left a comment

Choose a reason for hiding this comment

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

Just one Nit. Looks good otherwise, thanks for the improvement 👍

status = append(status, "no suitable provider")
continue
}
parts := strings.Split(k, "/")
Copy link
Member

Choose a reason for hiding this comment

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

Nit

Suggested change
parts := strings.Split(k, "/")
parts := strings.Split(k, types.Separator)

Package: k8s.io/apimachinery/pkg/types

You could also use kutils.ParseObjectName (ref).

Copy link
Member Author

Choose a reason for hiding this comment

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

Using kutils.ParseObjectName

@MartinWeindel MartinWeindel force-pushed the improve-msg-on-stucking-dnse-deletion branch from 1d163c7 to 4d3a977 Compare August 30, 2022 06:47
@gardener-robot-ci-3 gardener-robot-ci-3 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Aug 30, 2022
Copy link
Member

@timuthy timuthy left a comment

Choose a reason for hiding this comment

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

Nice, thank you!
/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Aug 31, 2022
@MartinWeindel MartinWeindel merged commit 3250f0a into master Aug 31, 2022
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Aug 31, 2022
@MartinWeindel MartinWeindel deleted the improve-msg-on-stucking-dnse-deletion branch August 31, 2022 10:52
status = append(status, fmt.Sprintf("error on retrieving status of provider %s: %s", k, err))
continue
}
status = append(status, fmt.Sprintf("provider %s has status: %s", name, pointer.StringDeref(provider.Status.Message, "unknwon")))
Copy link
Member

Choose a reason for hiding this comment

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

boah, what is this.

Don'y want to use string variable, to get an address for a string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) reviewed/lgtm Has approval for merging size/s Size of pull request is small (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error message for DNS entry failed deletion
7 participants