-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a trait to set default Pod security context or let the user customize Closes #5287
- Loading branch information
Showing
26 changed files
with
1,194 additions
and
168 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
= Security Context Trait | ||
|
||
// Start of autogenerated code - DO NOT EDIT! (badges) | ||
// End of autogenerated code - DO NOT EDIT! (badges) | ||
// Start of autogenerated code - DO NOT EDIT! (description) | ||
The Security Context trait can be used to configure the security setting of the Pod running the application. | ||
|
||
|
||
This trait is available in the following profiles: **Kubernetes, Knative, OpenShift**. | ||
|
||
NOTE: The security-context trait is a *platform trait* and cannot be disabled by the user. | ||
|
||
// End of autogenerated code - DO NOT EDIT! (description) | ||
// Start of autogenerated code - DO NOT EDIT! (configuration) | ||
== Configuration | ||
|
||
Trait properties can be specified when running any integration with the CLI: | ||
[source,console] | ||
---- | ||
$ kamel run --trait security-context.[key]=[value] --trait security-context.[key2]=[value2] integration.groovy | ||
---- | ||
The following configuration options are available: | ||
|
||
[cols="2m,1m,5a"] | ||
|=== | ||
|Property | Type | Description | ||
|
||
| security-context.enabled | ||
| bool | ||
| Deprecated: no longer in use. | ||
|
||
| security-context.run-as-user | ||
| int64 | ||
| Security Context RunAsUser configuration (default none): this value is automatically retrieved in Openshift clusters when not explicitly set. | ||
|
||
| security-context.run-as-non-root | ||
| bool | ||
| Security Context RunAsNonRoot configuration (default false). | ||
|
||
| security-context.seccomp-profile-type | ||
| SeccompProfileType | ||
| Security Context SeccompProfileType configuration (default RuntimeDefault). | ||
|
||
|=== | ||
|
||
// End of autogenerated code - DO NOT EDIT! (configuration) |
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
Oops, something went wrong.