github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/internal/operator/boom/application/applications/metricsserver/helm/default.go (about)

     1  package helm
     2  
     3  func DefaultValues(imageTags map[string]string, image string) *Values {
     4  	return &Values{
     5  		Rbac: &Rbac{
     6  			Create:     true,
     7  			PspEnabled: false,
     8  		},
     9  		ServiceAccount: &ServiceAccount{
    10  			Create: true,
    11  			Name:   "",
    12  		},
    13  		APIService:  &APIService{Create: true},
    14  		HostNetwork: &HostNetwork{Enabled: false},
    15  		Image: &Image{
    16  			Repository: image,
    17  			Tag:        imageTags[image],
    18  			PullPolicy: "IfNotPresent",
    19  		},
    20  		ImagePullSecrets: nil,
    21  		Args: []string{
    22  			"--kubelet-insecure-tls",
    23  			"--kubelet-preferred-address-types=InternalIP,Hostname,InternalDNS,ExternalDNS,ExternalIP",
    24  		},
    25  		Resources:         nil,
    26  		NodeSelector:      map[string]string{},
    27  		Tolerations:       nil,
    28  		Affinity:          struct{}{},
    29  		Replicas:          1,
    30  		ExtraContainers:   nil,
    31  		PodLabels:         map[string]string{},
    32  		PodAnnotations:    map[string]string{},
    33  		ExtraVolumeMounts: nil,
    34  		ExtraVolumes:      nil,
    35  		LivenessProbe: &LivenessProbe{
    36  			HTTPGet: &HTTPGet{
    37  				Path:   "/healthz",
    38  				Port:   "https",
    39  				Scheme: "HTTPS",
    40  			},
    41  			InitialDelaySeconds: 20,
    42  		},
    43  		ReadinessProbe: &ReadinessProbe{
    44  			HTTPGet: &HTTPGet{
    45  				Path:   "/healthz",
    46  				Port:   "https",
    47  				Scheme: "HTTPS",
    48  			},
    49  			InitialDelaySeconds: 20,
    50  		},
    51  		SecurityContext: &SecurityContext{
    52  			AllowPrivilegeEscalation: false,
    53  			Capabilities:             &Capabilities{Drop: []string{"all"}},
    54  			ReadOnlyRootFilesystem:   true,
    55  			RunAsGroup:               10001,
    56  			RunAsNonRoot:             true,
    57  			RunAsUser:                10001,
    58  		},
    59  		Service: &Service{
    60  			Annotations: map[string]string{},
    61  			Labels:      map[string]string{},
    62  			Port:        443,
    63  			Type:        "ClusterIP",
    64  		},
    65  		PodDisruptionBudget: &PodDisruptionBudget{
    66  			Enabled:        false,
    67  			MinAvailable:   nil,
    68  			MaxUnavailable: nil,
    69  		},
    70  	}
    71  }