Skip to content

Commit abbc85c

Browse files
committed
Remove stackable_default_pod_security_context fn
1 parent a193ef1 commit abbc85c

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

crates/stackable-operator/src/builder/pod/security.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)