MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / GetSeccompProfile

Method GetSeccompProfile

api/v1/cluster_funcs.go:1336–1344  ·  view source on GitHub ↗

GetSeccompProfile return the proper SeccompProfile set in the cluster for Pods and Containers

()

Source from the content-addressed store, hash-verified

1334
1335// GetSeccompProfile return the proper SeccompProfile set in the cluster for Pods and Containers
1336func (cluster *Cluster) GetSeccompProfile() *corev1.SeccompProfile {
1337 if cluster.Spec.SeccompProfile != nil {
1338 return cluster.Spec.SeccompProfile
1339 }
1340
1341 return &corev1.SeccompProfile{
1342 Type: corev1.SeccompProfileTypeRuntimeDefault,
1343 }
1344}
1345
1346// GetCoredumpFilter get the coredump filter value from the cluster annotation
1347func (cluster *Cluster) GetCoredumpFilter() string {

Callers 4

GetPodSecurityContextFunction · 0.80
GetSecurityContextFunction · 0.80
DeploymentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected