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

Link OrganizationMembers to Organization with an owner reference #29

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

glrf
Copy link
Contributor

@glrf glrf commented Feb 2, 2022

Summary

By linking them with an ownerRef, a controller can easily reconcile on both without jumping through some hoops.

Checklist

  • PR contains a single logical change (to build a better changelog).
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.

@glrf glrf added the enhancement New feature or request label Feb 2, 2022
@glrf glrf self-assigned this Feb 2, 2022
@@ -131,3 +131,7 @@ func (o *Organization) ToNamespace() *corev1.Namespace {
ns.Annotations[DisplayNameKey] = o.Spec.DisplayName
return ns
}

func init() {
SchemeBuilder.Register(&Organization{}, &OrganizationList{})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In hindsight, I will probably move this in it's own PR. This was a bug.

@glrf glrf requested a review from bastjan February 2, 2022 10:06
Copy link
Contributor

@bastjan bastjan left a comment

Choose a reason for hiding this comment

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

LGTM

@glrf glrf merged commit 60643fa into master Feb 3, 2022
@glrf glrf deleted the feat/owner-ref branch February 3, 2022 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants