Skip to content

Commit

Permalink
feat: add a template for test labels (#492)
Browse files Browse the repository at this point in the history
Signed-off-by: Quan Nguyen <[email protected]>
  • Loading branch information
qnswirlds authored Nov 8, 2023
1 parent 674b976 commit f32eaee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/fullstack-deployment/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{{- define "fullstack.testLabels" -}}
fullstack.hedera.com/testSuiteName: {{ $.Values.deployment.testMetadata.testSuiteName }}
fullstack.hedera.com/testName: {{ $.Values.deployment.testMetadata.testName }}
fullstack.hedera.com/testRunUID: {{ $.Values.deployment.testMetadata.testRunUID }}
fullstack.hedera.com/testCreationTimestamp: {{ $.Values.deployment.testMetadata.testCreationTimestamp }}
fullstack.hedera.com/testExpirationTimestamp: {{ $.Values.deployment.testMetadata.testExpirationTimestamp }}
fullstack.hedera.com/testRequester: {{ $.Values.deployment.testMetadata.testRequester }}
{{- end }}

{{- define "fullstack.hedera.security.context" -}}
runAsUser: 2000
runAsGroup: 2000
Expand Down
7 changes: 7 additions & 0 deletions charts/fullstack-deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,13 @@ deployment:
create: true
minAvailable: 1
maxUnavailable: ""
testMetadata:
testSuiteName: ""
testName: ""
testRunUID: ""
testCreationTimestamp: ""
testExpirationTimestamp: ""
testRequester: ""

# hedera node configuration
# Only the name of the node is required. The rest of the configuration will be inherited from `defaults` section
Expand Down

0 comments on commit f32eaee

Please sign in to comment.