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

Provide config option to ignore child objects #10

Closed
cmacrae opened this issue Dec 26, 2020 · 0 comments
Closed

Provide config option to ignore child objects #10

cmacrae opened this issue Dec 26, 2020 · 0 comments
Labels
enhancement New feature or request
Projects

Comments

@cmacrae
Copy link
Owner

cmacrae commented Dec 26, 2020

If child objects are created in the API by a user controlled manifest (such as a ReplicaSet that's created by a user defined Deployment) it's possible that a violation will be observed, in addition to the parent (depending on the policy, of course).

This may not be desirable in some cases, so it'd be nice to have something like a ignore_children: true option.

This can be checked for in the metadata.ownerReferences field of the manifest. For example:

	"ownerReferences": [
	    {
		"apiVersion": "apps/v1",
		"blockOwnerDeletion": true,
		"controller": true,
		"kind": "Deployment",
		"name": "violation-deployment",
		"uid": "32715671-2d99-4a0d-8fde-800207ef4532"
	    }
	]
@cmacrae cmacrae added the enhancement New feature or request label Dec 26, 2020
@cmacrae cmacrae added this to To do in Tasks via automation Dec 26, 2020
@cmacrae cmacrae moved this from To do to In progress in Tasks Dec 27, 2020
@cmacrae cmacrae closed this as completed Dec 27, 2020
Tasks automation moved this from In progress to Done Dec 27, 2020
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
Tasks
Done
Development

No branches or pull requests

1 participant