forked from wildfly/wildfly-operator
-
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.
[wildfly#266] Updated Pod security standards
* Add a default Security Context if the user does not specify one from the WildFlyServerSpec. * In the CSV, updates the operator's own deployment to comply with the security standards. This fixes wildfly#266 Signed-off-by: Jeff Mesnil <[email protected]>
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,8 @@ type WildFlyServerSpec struct { | |
// More info: https://pkg.go.dev/k8s.io/[email protected]/core/v1#ResourceRequirements | ||
Resources *corev1.ResourceRequirements `json:"resources,omitempty"` | ||
// SecurityContext | ||
// If omitted, a default security context is created to deploy the application in non-root user without priviledges | ||
// escalation and all security capabilities dropped. | ||
SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"` | ||
} | ||
|
||
|
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