Skip to content

Commit

Permalink
Fix debug_api (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Svetomir Smiljkovic authored Jul 2, 2020
1 parent c7a3b77 commit 636e336
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/bee/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
appVersion: latest
name: bee
version: 0.5.0
version: 0.5.1
description: Ethereum Swarm Bee Helm chart for Kubernetes
home: https://swarm.ethereum.org
icon: https://swarm-guide.readthedocs.io/en/latest/_images/swarm.png
Expand Down
2 changes: 1 addition & 1 deletion charts/bee/templates/ingress-debug.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.beeConfig.enable_debug_api .Values.ingressDebug.enabled -}}
{{- if and .Values.beeConfig.debug_api_enable .Values.ingressDebug.enabled -}}

{{- $root := . -}}
{{- $fullName := include "bee.fullname" $root -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/bee/templates/service-debug.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.beeConfig.enable_debug_api -}}
{{- if .Values.beeConfig.debug_api_enable -}}

{{- $root := . -}}

Expand Down
2 changes: 1 addition & 1 deletion charts/bee/templates/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
port: {{ int (split ":" .Values.beeConfig.p2p_addr )._1 }}
protocol: TCP
targetPort: p2p
{{- if .Values.beeConfig.enable_debug_api }}
{{- if .Values.beeConfig.debug_api_enable }}
- name: debug
port: {{ int (split ":" .Values.beeConfig.debug_api_addr )._1 }}
protocol: TCP
Expand Down
2 changes: 1 addition & 1 deletion charts/bee/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceMonitor.enabled .Values.beeConfig.enable_debug_api -}}
{{- if and .Values.serviceMonitor.enabled .Values.beeConfig.debug_api_enable -}}

---
apiVersion: monitoring.coreos.com/v1
Expand Down
2 changes: 1 addition & 1 deletion charts/bee/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ spec:
- containerPort: {{ int (split ":" .Values.beeConfig.p2p_addr )._1 }}
name: p2p
protocol: TCP
{{- if .Values.beeConfig.enable_debug_api }}
{{- if .Values.beeConfig.debug_api_enable }}
- containerPort: {{ int (split ":" .Values.beeConfig.debug_api_addr )._1 }}
name: debug
protocol: TCP
Expand Down
6 changes: 3 additions & 3 deletions charts/bee/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ ingress:
tlsSecret: ""
tls: false

## If enabled and beeConfig.enable_debug_api is enabled, creates ingress for debug api
## If enabled and beeConfig.debug_api_enable is enabled, creates ingress for debug api
## Creates one ingress per pod
## Total number of created ingress objects is: replicaCount
## Hostname for 'per pod ingresses' is: <chart fullname>-debug-<i>, or <chart fullname>-debug-<i>.<domain> if domain is specified
Expand Down Expand Up @@ -111,7 +111,7 @@ persistence:
# storageClass: "-"

## Enable this if you're using https://github.com/coreos/prometheus-operator
## and beeConfig.enable_debug_api is enabled
## and beeConfig.debug_api_enable is enabled
serviceMonitor:
enabled: false
additionalLabels: {}
Expand All @@ -135,7 +135,7 @@ serviceMonitor:

podAnnotations: {}
## Add this annotations if you're using https://github.com/prometheus/prometheus
## and beeConfig.enable_debug_api is enabled
## and beeConfig.debug_api_enable is enabled
# prometheus.io/scrape: "true"
# prometheus.io/port: "6060"

Expand Down

0 comments on commit 636e336

Please sign in to comment.