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

Set empty workload kind/name on unknown owner #1074

Merged
merged 6 commits into from
Aug 22, 2022

Conversation

chrismuellner
Copy link
Collaborator

Description

In case of owner that is not well-known, the kind would be set to Pod, while the name couldn't be set because .metadata.name is empty at this point. The empty kind/name is correct in this case and should not block the init container.

How can this be tested?

Inject into a pod that has owner reference set to something of unknown kind, i.e. not Deployment, ReplicaSet, ..., but a separate API.

Checklist

  • Unit tests have been updated/added
  • PR is labeled accordingly
  • I have read and understood the contribution guidelines

@chrismuellner chrismuellner added the bug Something isn't working label Aug 22, 2022
@chrismuellner chrismuellner requested a review from a team as a code owner August 22, 2022 08:47
@chrismuellner chrismuellner enabled auto-merge (squash) August 22, 2022 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants