github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/internal/operator/boom/application/applications/logcollection/helm/default.go (about) 1 package helm 2 3 import ( 4 "github.com/caos/orbos/pkg/kubernetes/k8s" 5 corev1 "k8s.io/api/core/v1" 6 "k8s.io/apimachinery/pkg/api/resource" 7 ) 8 9 func DefaultValues(imageTags map[string]string, image string) *Values { 10 return &Values{ 11 FullnameOverride: "logging-operator", 12 ReplicaCount: 1, 13 Image: Image{ 14 Repository: image, 15 Tag: imageTags[image], 16 PullPolicy: "IfNotPresent", 17 }, 18 HTTP: HTTP{ 19 Port: 8080, 20 Service: Service{ 21 Type: "ClusterIP", 22 }, 23 }, 24 RBAC: RBAC{ 25 Enabled: true, 26 PSP: PSP{ 27 Enabled: true, 28 }, 29 }, 30 NodeSelector: map[string]string{}, 31 Resources: &k8s.Resources{ 32 Limits: corev1.ResourceList{ 33 corev1.ResourceCPU: resource.MustParse("200m"), 34 corev1.ResourceMemory: resource.MustParse("400Mi"), 35 }, 36 Requests: corev1.ResourceList{ 37 corev1.ResourceCPU: resource.MustParse("100m"), 38 corev1.ResourceMemory: resource.MustParse("200Mi"), 39 }, 40 }, 41 } 42 }