github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/internal/operator/boom/application/applications/kubemetricsexporter/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: "kube-state-metrics", 12 PrometheusScrape: true, 13 Image: &Image{ 14 Repository: image, 15 Tag: imageTags[image], 16 PullPolicy: "IfNotPresent", 17 }, 18 Replicas: 1, 19 Service: &Service{ 20 Port: 8080, 21 Type: "ClusterIP", 22 NodePort: 0, 23 LoadBalancerIP: "", 24 Annotations: map[string]string{}, 25 }, 26 CustomLabels: map[string]string{}, 27 HostNetwork: false, 28 Rbac: &Rbac{ 29 Create: true, 30 }, 31 ServiceAccount: &ServiceAccount{ 32 Create: true, 33 Name: "", 34 }, 35 Prometheus: &Prometheus{ 36 Monitor: &Monitor{ 37 Enabled: false, 38 }, 39 }, 40 PodSecurityPolicy: &PodSecurityPolicy{ 41 Enabled: false, 42 }, 43 SecurityContext: &SecurityContext{ 44 Enabled: true, 45 RunAsUser: 65534, 46 FsGroup: 65534, 47 }, 48 NodeSelector: map[string]string{}, 49 Affinity: nil, 50 Tolerations: nil, 51 PodAnnotations: map[string]string{}, 52 Collectors: &Collectors{ 53 Certificatesigningrequests: true, 54 Configmaps: true, 55 Cronjobs: true, 56 Daemonsets: true, 57 Deployments: true, 58 Endpoints: true, 59 Horizontalpodautoscalers: true, 60 Ingresses: true, 61 Jobs: true, 62 Limitranges: true, 63 Namespaces: true, 64 Nodes: true, 65 Persistentvolumeclaims: true, 66 Persistentvolumes: true, 67 Poddisruptionbudgets: true, 68 Pods: true, 69 Replicasets: true, 70 Replicationcontrollers: true, 71 Resourcequotas: true, 72 Secrets: true, 73 Services: true, 74 Statefulsets: true, 75 Storageclasses: true, 76 Verticalpodautoscalers: false, 77 }, 78 Resources: &k8s.Resources{ 79 Limits: corev1.ResourceList{ 80 corev1.ResourceCPU: resource.MustParse("100m"), 81 corev1.ResourceMemory: resource.MustParse("400Mi"), 82 }, 83 Requests: corev1.ResourceList{ 84 corev1.ResourceCPU: resource.MustParse("50m"), 85 corev1.ResourceMemory: resource.MustParse("200Mi"), 86 }, 87 }, 88 } 89 }