Skip to content

Commit

Permalink
Merge branch 'main' into fix-config-reset-using-argv
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromy-cannon authored Feb 12, 2024
2 parents 1248e20 + e1d1c61 commit 0b7f24f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
51 changes: 26 additions & 25 deletions charts/fullstack-deployment/templates/network-node-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,19 @@ spec:
{{- end }}
terminationGracePeriodSeconds: {{ $.Values.terminationGracePeriodSeconds }}
volumes:
- name: hgcapp-storage # change me
- name: hgcapp-account-balances
emptyDir: {}
- name: hgcapp-record-streams
emptyDir: {}
- name: hgcapp-event-streams
emptyDir: {}
- name: hgcapp-services-hedera
emptyDir: {}
{{- if $otelCollector.enabled }}
- name: otel-collector-volume
configMap:
name: otel-collector-cm
{{- end }}
initContainers:
# Init Container: {{ $node.name }}-init-container
- name: init-container
image: {{ include "fullstack.container.image" (dict "image" $root.image "Chart" $.Chart "defaults" $root) }}
imagePullPolicy: {{ include "fullstack.images.pullPolicy" (dict "image" $root.image "defaults" $root) }}
command: [ "/bin/sh", "-c", "mkdir -p /opt/hgcapp/hedera-backups /opt/hgcapp/accountBalances /opt/hgcapp/events /opt/hgcapp/recordStreams /opt/hgcapp/sidecar /opt/hgcapp/recordStreams/uploader-stats/" ]
securityContext:
{{- include "fullstack.hedera.security.context" . | nindent 10 }}
volumeMounts:
- name: hgcapp-storage
mountPath: /opt/hgcapp/
containers:
# Root Container: {{ $node.name }}-root-container
- name: {{ $root.nameOverride | default "root-container" }}
Expand All @@ -86,8 +81,14 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
volumeMounts:
- name: hgcapp-storage
mountPath: /opt/hgcapp/
- name: hgcapp-account-balances
mountPath: /opt/hgcapp/accountBalances
- name: hgcapp-record-streams
mountPath: /opt/hgcapp/recordStreams
- name: hgcapp-event-streams
mountPath: /opt/hgcapp/eventsStreams
- name: hgcapp-services-hedera
mountPath: opt/hgcapp/services-hedera
env:
{{- include "fullstack.defaultEnvVars" . | nindent 10 }}
{{- if $balanceUploader.enabled }}
Expand All @@ -107,9 +108,9 @@ spec:
- --s3-endpoint
- "http://{{ $minioserver.tenant.name }}-hl:9000"
volumeMounts:
- name: hgcapp-storage
- name: hgcapp-account-balances
mountPath: /opt/hgcapp/accountBalances
subPath: accountBalances/balance{{ $node.accountId }}
subPath: balance{{ $node.accountId }}
env:
- name: DEBUG
value: {{ default $defaults.sidecars.accountBalanceUploader.config.debug ($balanceUploader.config).debug | quote }}
Expand Down Expand Up @@ -168,9 +169,9 @@ spec:
- --s3-endpoint
- http://{{ $minioserver.tenant.name }}-hl:9000
volumeMounts:
- name: hgcapp-storage
- name: hgcapp-record-streams
mountPath: /opt/hgcapp/recordStreams
subPath: recordStreams/record{{ $node.accountId }}
subPath: record{{ $node.accountId }}
env:
- name: DEBUG
value: {{ default $defaults.sidecars.recordStreamUploader.config.debug ($recordStream.config).debug | quote }}
Expand Down Expand Up @@ -227,14 +228,14 @@ spec:
- /usr/local/bin/mirror.py
- --linux
- --watch-directory
- /opt/hgcapp/events
- /opt/hgcapp/eventStreams
- --debug
- --s3-endpoint
- http://{{ $minioserver.tenant.name }}-hl:9000
volumeMounts:
- name: hgcapp-storage
mountPath: /opt/hgcapp/events
subPath: events/balance{{ $node.accountId }}
- name: hgcapp-event-streams
mountPath: /opt/hgcapp/eventStreams
subPath: balance{{ $node.accountId }}
env:
- name: DEBUG
value: {{ default $defaults.sidecars.eventStreamUploader.config.debug ($eventStream.config).debug | quote}}
Expand Down Expand Up @@ -282,9 +283,9 @@ spec:
securityContext:
{{- include "fullstack.hedera.security.context" . | nindent 10 }}
volumeMounts:
- name: hgcapp-storage
mountPath: /opt/hgcapp/
readOnly: true
- name: hgcapp-services-hedera
mountPath: opt/hgcapp/services-hedera
subPath: data
env:
- name: BACKUP_UPLOADER_BUCKET_1
value: {{ default $defaults.sidecars.backupUploader.config.backupBucket ($backupUploader.config).backupBucket | quote }}
Expand Down
4 changes: 2 additions & 2 deletions solo/src/core/platform_installer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class PlatformInstaller {

try {
// reset HAPI_PATH
await this.k8.execContainer(podName, containerName, `rm -rf ${constants.HEDERA_SERVICES_PATH}`)
await this.k8.execContainer(podName, containerName, `rm -rf ${constants.HEDERA_SERVICES_PATH}/HapiApp2.0`)

const paths = [
`${constants.HEDERA_HAPI_PATH}/data/keys`,
Expand All @@ -55,7 +55,7 @@ export class PlatformInstaller {

return true
} catch (e) {
throw new FullstackTestingError(`failed to setup directories in pod '${podName}' at ${constants.HAPI_PATH}`, e)
throw new FullstackTestingError(`failed to setup directories in pod '${podName}': ${e.message}`, e)
}
}

Expand Down

0 comments on commit 0b7f24f

Please sign in to comment.