addManagerLoggingOptions propagate the logging configuration to the manager inside the generated pod.
(cluster apiv1.Cluster, container *corev1.Container)
| 54 | // addManagerLoggingOptions propagate the logging configuration |
| 55 | // to the manager inside the generated pod. |
| 56 | func addManagerLoggingOptions(cluster apiv1.Cluster, container *corev1.Container) { |
| 57 | if cluster.Spec.LogLevel != "" { |
| 58 | container.Command = append(container.Command, fmt.Sprintf("--log-level=%s", cluster.Spec.LogLevel)) |
| 59 | } |
| 60 | container.Command = append(container.Command, log.GetFieldsRemapFlags()...) |
| 61 | } |
| 62 | |
| 63 | // GetSecurityContext return the proper SecurityContext in the cluster for Containers in Pods |
| 64 | func GetSecurityContext(cluster *apiv1.Cluster) *corev1.SecurityContext { |
no outgoing calls
no test coverage detected