From f32eaee2a81861b3b9d6e5eec4f573f7c7e279e2 Mon Sep 17 00:00:00 2001 From: Quan Nguyen Date: Wed, 8 Nov 2023 07:08:50 -0600 Subject: [PATCH] feat: add a template for test labels (#492) Signed-off-by: Quan Nguyen --- charts/fullstack-deployment/templates/_helpers.tpl | 9 +++++++++ charts/fullstack-deployment/values.yaml | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/charts/fullstack-deployment/templates/_helpers.tpl b/charts/fullstack-deployment/templates/_helpers.tpl index 95494f175..c1764ce43 100644 --- a/charts/fullstack-deployment/templates/_helpers.tpl +++ b/charts/fullstack-deployment/templates/_helpers.tpl @@ -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 diff --git a/charts/fullstack-deployment/values.yaml b/charts/fullstack-deployment/values.yaml index b46f3ca97..cde269acc 100644 --- a/charts/fullstack-deployment/values.yaml +++ b/charts/fullstack-deployment/values.yaml @@ -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