Skip to content

Commit

Permalink
fix: add flags to enable or disable various auxiliary resource deploy…
Browse files Browse the repository at this point in the history
…ments

Signed-off-by: Lenin Mehedy <lenin.mehedy@swirldslabs.com>
  • Loading branch information
leninmehedy committed Oct 4, 2023
1 parent 9f59a25 commit 0f3d319
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/hedera-network/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ kubeVersion: ">=1.25.0-0"
dependencies:
- name: hedera-explorer
version: 0.2.0
condition: cloud.minio.enable
condition: hedera-explorer.enable

- name: hedera-mirror
alias: hedera-mirror-node
version: 0.86.0
repository: https://hashgraph.github.io/hedera-mirror-node/charts
condition: cloud.minio.enable
condition: hedera-mirror-node.enable

- name: tenant
alias: minio-server
Expand Down
2 changes: 2 additions & 0 deletions charts/hedera-network/templates/rbac/pod-monitor.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if $.Values.tester.deployPodMonitor | eq "true" }}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand All @@ -17,3 +18,4 @@ roleRef:
kind: ClusterRole
name: {{ $.Values.tester.clusterRoleName }}
apiGroup: rbac.authorization.k8s.io
{{- end }}
11 changes: 8 additions & 3 deletions charts/hedera-network/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ global:

# cloud configuration
cloud:
minio:
enable: true
buckets:
streamBucket: "fst-streams"
backupBucket: "fst-backups"
s3:
enable: "true"
gcs:
enable: "true"
minio:
enable: true

# telemetry configurations
telemetry:
Expand All @@ -26,6 +26,7 @@ terminationGracePeriodSeconds: 10

# helm test container
tester:
deployPodMonitor: "true"
clusterRoleName: "pod-monitor-role" # this is a shared cluster role for all namespaces
image:
registry: "ghcr.io"
Expand Down Expand Up @@ -63,7 +64,6 @@ gatewayApi:
route:
hostname: "{{ .node.name }}.fst.local"


# default settings for a single node
# This default configurations can be overridden for each node in the hedera.nodes section.
defaults:
Expand Down Expand Up @@ -222,7 +222,9 @@ minio-server:
certificate:
requestAutoCert: false

# hedera mirror node configuration
hedera-mirror-node:
enable: true
global:
namespaceOverride: "{{ tpl (.Values.global.namespaceOverride | toString) }}"
# importer is a component of the hedera mirror node
Expand Down Expand Up @@ -250,7 +252,9 @@ hedera-mirror-node:
bucketName: "fst-streams"
# for s3 configuration of mirror node look at uploader-mirror-secrets.yaml

# hedera explorer configuration
hedera-explorer:
enable: true
global:
namespaceOverride: "{{ tpl (.Values.global.namespaceOverride | toString) }}"
# The hedera explorer UI /api url will proxy all request to mirror node
Expand All @@ -272,6 +276,7 @@ hedera-explorer:
}
]
# common deployment configuration
deployment:
podAnnotations: {}
podLabels: {}
Expand Down
2 changes: 1 addition & 1 deletion dev/scripts/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function install_chart() {
echo ""
echo "Installing helm chart... "
echo "SCRIPT_NAME: ${node_setup_script}"
echo "Values: -f ${CHART_DIR}/values.yaml --values ${CHART_VALUES_FILES}"
echo "Additional values: ${CHART_VALUES_FILES}"
echo "-----------------------------------------------------------------------------------------------------"
local count=$(helm list -q -n "${NAMESPACE}" | grep -c "${HELM_RELEASE_NAME}")
if [[ $count -eq 0 ]]; then
Expand Down

0 comments on commit 0f3d319

Please sign in to comment.