File tree Expand file tree Collapse file tree
crates/stackable-operator/src/builder/pod Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,18 +169,10 @@ impl PodSecurityContextBuilder {
169169 /// * `runAsNonRoot: true`
170170 pub fn with_stackable_defaults ( ) -> Self {
171171 Self {
172- pod_security_context : Self :: stackable_default_pod_security_context ( ) ,
173- }
174- }
175-
176- /// The Stackable's defaults for a [`PodSecurityContext`].
177- ///
178- /// It is recommended to use the [`PodSecurityContextBuilder::with_stackable_defaults`] instead
179- /// (if possible). Have a look at it's documentation for details.
180- pub fn stackable_default_pod_security_context ( ) -> PodSecurityContext {
181- PodSecurityContext {
182- run_as_non_root : Some ( true ) ,
183- ..Default :: default ( )
172+ pod_security_context : PodSecurityContext {
173+ run_as_non_root : Some ( true ) ,
174+ ..Default :: default ( )
175+ } ,
184176 }
185177 }
186178
You can’t perform that action at this time.
0 commit comments