forked from elastic/cloud-on-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autodetect option to security context configuration (elastic#5150)
* Add auto-detect option to setting security context Update helm values with more documentation around setting default security context * Refactor because of linter issues * return invalid security context errors. Co-authored-by: Michael Morello <michael.morello@gmail.com> * simplify logic when detecting openshift Co-authored-by: Michael Morello <michael.morello@gmail.com> * Move openshift detection logic into it's own function remove erroneous logging line * Update to only allow 3 options for setting security context: true, false, auto-detect. * catch api error "not found", and assume not on openshift cluster. * Add unit tests around checking how we set the default security context in/out of openshift. * Update comments per PR review * review changes * Move resources required for test to be directly after the test that uses them. Co-authored-by: Michael Morello <michael.morello@gmail.com>
- Loading branch information
Showing
3 changed files
with
214 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters