@@ -84,7 +84,7 @@ Create the name of the controller service account to use
8484 { {- if .Values.serviceAccount.create -} }
8585 { {- default (include " opencost.fullname" .) .Values.serviceAccount.name } }
8686 { {- else -} }
87- { {- default " default " .Values.serviceAccount.name } }
87+ { {- default " opencost " .Values.serviceAccount.name } }
8888 { {- end -} }
8989{ {- end -} }
9090
@@ -102,8 +102,9 @@ Create the name of the controller service account to use
102102 { {- $host := tpl .Values.opencost.prometheus.internal.serviceName . } }
103103 { {- $ns := tpl .Values.opencost.prometheus.internal.namespaceName . } }
104104 { {- $clusterName := .Values.clusterName } }
105+ { {- $scheme := .Values.opencost.prometheus.internal.scheme | default " http" } }
105106 { {- $port := .Values.opencost.prometheus.internal.port | int } }
106- { {- printf " http ://%s.%s.svc.%s:%d" $host $ns $clusterName $port -} }
107+ { {- printf " %s ://%s.%s.svc.%s:%d" $ scheme $host $ns $clusterName $port -} }
107108 { {- end -} }
108109{ {- end -} }
109110
@@ -118,7 +119,8 @@ Check that either thanos external or internal is defined
118119 { {- $ns := .Values.opencost.prometheus.thanos.internal.namespaceName } }
119120 { {- $clusterName := .Values.clusterName } }
120121 { {- $port := .Values.opencost.prometheus.thanos.internal.port | int } }
121- { {- printf " http://%s.%s.svc.%s:%d" $host $ns $clusterName $port -} }
122+ { {- $scheme := .Values.opencost.prometheus.thanos.internal.scheme | default " http" } }
123+ { {- printf " %s://%s.%s.svc.%s:%d" $scheme $host $ns $clusterName $port -} }
122124 { {- end -} }
123125{ {- end -} }
124126
@@ -192,6 +194,11 @@ apiVersion: networking.k8s.io/v1beta1
192194{ {- end -} }
193195{ {- end -} }
194196
197+
198+ { {- define " opencost.sccName" -} }
199+ { {include " opencost.fullname" .} }-scc
200+ { {- end -} }
201+
195202{ {- /*
196203 Compute a checksum based on the rendered content of specific ConfigMaps and Secrets.
197204*/ -} }
@@ -209,3 +216,4 @@ apiVersion: networking.k8s.io/v1beta1
209216{ {- end -} }
210217{ {- $checksum | sha256sum -} }
211218{ {- end -} }
219+
0 commit comments