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

avoid warnings around finalizers #1248

Open
kranurag7 opened this issue Apr 4, 2024 · 4 comments
Open

avoid warnings around finalizers #1248

kranurag7 opened this issue Apr 4, 2024 · 4 comments

Comments

@kranurag7
Copy link
Contributor

/kind feature

Describe the solution you'd like
[A clear and concise description of what you want to happen.]

We get the following warnings in the logs. This issue tracks fixing the same and removing this warning.

{"level":"INFO","time":"2024-04-04T18:35:42.381Z","logger":"KubeAPIWarningLogger","file":"log/warning_handler.go:65","message":"metadata.finalizers: \"hetznerba
remetalhost.infrastructure.cluster.x-k8s.io\": prefer a domain-qualified finalizer name to avoid accidental conflicts with other finalizer writers"}

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • cluster-api-provider-hetzner version: v1.0.0-beta.33
  • Kubernetes version: (use kubectl version) 1.29.3
  • OS (e.g. from /etc/os-release): Ubuntu
@janiskemper
Copy link
Contributor

can you take care of this one @kranurag7 ?

@kranurag7 kranurag7 self-assigned this Apr 5, 2024
@guettli
Copy link
Collaborator

guettli commented Aug 15, 2024

I agree, this message is still there.

but why is this not valid: "hetznerbaremetalhost.infrastructure.cluster.x-k8s.io" ?

These are 52 chars. Afaik 63 are allowed. Why does this message appear? ....

I found the answer.

it should be foo.example.com/bar. The /bar part is missing. Docs

We used the naming pattern which was used by CAPI. There is an open issue:

kubernetes-sigs/cluster-api#10914

This is a lot of effort with little benefit.

Changing this does not feel productive. My opinion (posted on upstream issue here)

This is a lot of effort and only a little benefit. Maybe we could update the upstream code which generates the error message? I don't think the current name (without a slash) is a real problem.

@kranurag7
Copy link
Contributor Author

closing this reading the linked issue above.

@guettli
Copy link
Collaborator

guettli commented Aug 16, 2024

capi maintainers replied to my message.

CAPI will do the change, and then we will do it, too.

@guettli guettli reopened this Aug 16, 2024
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

No branches or pull requests

3 participants