GetSeccompProfile return the proper SeccompProfile set in the cluster for Pods and Containers
()
| 1334 | |
| 1335 | // GetSeccompProfile return the proper SeccompProfile set in the cluster for Pods and Containers |
| 1336 | func (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 |
| 1347 | func (cluster *Cluster) GetCoredumpFilter() string { |
no outgoing calls
no test coverage detected