Skip to content

Commit 8534672

Browse files
Merge pull request #294 from charleshu-8/skipTLSValue
Add `insecureSkipVerify` to `prometheus.external`
2 parents 0ad3e66 + a3090a0 commit 8534672

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

charts/opencost/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords:
99
- finops
1010
- monitoring
1111
- opencost
12-
version: 2.2.0
12+
version: 2.2.1
1313
maintainers:
1414
- name: jessegoodier
1515
- name: toscott

charts/opencost/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ $ helm install opencost opencost/opencost
144144
| opencost.prometheus.existingSecretName | string | `nil` | Existing secret name that contains credentials for Prometheus |
145145
| opencost.prometheus.external.enabled | bool | `false` | Use external Prometheus (eg. Grafana Cloud) |
146146
| opencost.prometheus.external.url | string | `"https://prometheus.example.com/prometheus"` | External Prometheus url |
147+
| opencost.prometheus.insecureSkipVerify | bool | `false` | Whether to disable SSL certificate verification |
147148
| opencost.prometheus.internal.enabled | bool | `true` | Use in-cluster Prometheus |
148149
| opencost.prometheus.internal.namespaceName | string | `"prometheus-system"` | Namespace of in-cluster Prometheus |
149150
| opencost.prometheus.internal.port | int | `80` | Service port of in-cluster Prometheus |

charts/opencost/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ spec:
164164
{{- end }}
165165
- name: PROMETHEUS_SERVER_ENDPOINT
166166
value: {{ include "opencost.prometheusServerEndpoint" . | quote }}
167+
- name: INSECURE_SKIP_VERIFY
168+
value: {{ .Values.opencost.prometheus.insecureSkipVerify | quote }}
167169
{{- if .Values.opencost.exporter.cloudProviderApiKey }}
168170
- name: CLOUD_PROVIDER_API_KEY
169171
valueFrom:

charts/opencost/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ opencost:
394394
bearer_token_key: DB_BEARER_TOKEN
395395
# -- If true, opencost will use kube-rbac-proxy to authenticate with in cluster Prometheus for openshift
396396
kubeRBACProxy: false
397+
# -- Whether to disable SSL certificate verification
398+
insecureSkipVerify: false
397399
external:
398400
# -- Use external Prometheus (eg. Grafana Cloud)
399401
enabled: false

0 commit comments

Comments
 (0)