-
Notifications
You must be signed in to change notification settings - Fork 67
Expand contents of SecurityContextConstraints #1229
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
Conversation
|
Report bugs in Issues The following are automatically added:
Available user actions:
Supported labels
|
| Security Context Constraints object. API reference: | ||
| https://docs.openshift.com/container-platform/4.13/rest_api/security_apis/securitycontextconstraints-security-openshift-io-v1.html | ||
| Args: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- should be under init
- do not repeat the api docs
- defaults by the api should not appear here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| super().to_dict() | ||
| if not self.yaml_file: | ||
| self.res.update() | ||
| manifest_spec = self.res |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to save
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
for more information, see https://pre-commit.ci
|
Kudos, SonarCloud Quality Gate passed! |
| https://docs.openshift.com/container-platform/4.13/rest_api/security_apis/securitycontextconstraints-security-openshift-io-v1.html | ||
| Args: | ||
| allow_host_dir_volume_plugin (bool): Determines if the policy allow containers to use the HostDir volume |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add defaults, e.g allow_host_dir_volume_plugin (bool, default: False)
| if self.groups: | ||
| self.res["groups"] = self.groups | ||
|
|
||
| if self.priority: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
priority default is 0
is 0 a valid option?if so, the code below will not be reached








Support extra parameters of SecurityContextConstraints resource.