-
Notifications
You must be signed in to change notification settings - Fork 620
Open
Description
We have the same function public in cmd/broker:
Lines 30 to 38 in e804605
| func GetLoggingConfig(ctx context.Context, namespace, loggingConfigMapName string) (*logging.Config, error) { | |
| loggingConfigMap, err := kubeclient.Get(ctx).CoreV1().ConfigMaps(namespace).Get(ctx, loggingConfigMapName, metav1.GetOptions{}) | |
| if apierrors.IsNotFound(err) { | |
| return logging.NewConfigFromMap(nil) | |
| } else if err != nil { | |
| return nil, err | |
| } | |
| return logging.NewConfigFromConfigMap(loggingConfigMap) | |
| } |
Originally posted by @creydr in #8699 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog