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

Ensure AppRepo secret has owner references UID set. #1657

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

absoludity
Copy link
Contributor

Fixes #1655 . With commit d5b277c, while adding the app repo validation of #1534, we inadvertently caused an app repo secret to be created without the owner reference UID.

This was because, prior to that change, the secret was not instantiated until we had created the repo with its UID, wherease after the change, the secret and app repo are instantiated in memory together before the app repo is actually created, so the secret ends up not knowing the UID of the app repo.

This was not caught by our tests because the client-go test fake does not set UIDs when creating objects (by default, though apparently we could add a reactor to fake this).

@absoludity absoludity requested a review from andresmgot April 13, 2020 00:21
Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

Thanks for catching this up quickly, let's open an issue to properly disentangle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants