Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/operator/internal/manifests/openshift/service_ca.go

26 lines
739 B

package openshift
import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// BuildServiceCAConfigMap returns a k8s configmap for the LokiStack
// serviceCA configmap. This configmap is used to configure
// the gateway and components to verify TLS certificates.
func BuildServiceCAConfigMap(opts Options) *corev1.ConfigMap {
return &corev1.ConfigMap{
TypeMeta: metav1.TypeMeta{
Kind: "ConfigMap",
APIVersion: corev1.SchemeGroupVersion.String(),
},
ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{
InjectCABundleKey: "true",
},
Labels: opts.BuildOpts.Labels,
Name: serviceCABundleName(opts),
Namespace: opts.BuildOpts.LokiStackNamespace,
},
}
}