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

Validate that there is only one controller owner reference #218

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

marshtompsxd
Copy link
Collaborator

@marshtompsxd marshtompsxd commented Aug 22, 2023

Add the specification for checking whether the controller has multiple controller owner references, and if so, reject the creation/update requests. The corresponding validation implementation in Kubernetes can be found at https://github.com/kubernetes/kubernetes/blob/v1.26.3/staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta.go#L92-L108.

@marshtompsxd marshtompsxd marked this pull request as ready for review August 22, 2023 04:15
@marshtompsxd marshtompsxd changed the title Validate owner references Validate that there is only one controller owner reference Aug 22, 2023
@marshtompsxd marshtompsxd merged commit 01f152e into main Aug 22, 2023
1 check passed
@marshtompsxd marshtompsxd deleted the validate-controller-owner-ref-num branch August 22, 2023 20:22
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

Successfully merging this pull request may close these issues.

2 participants