From bcc8ddb947225e38051059941675f015ecfc5343 Mon Sep 17 00:00:00 2001 From: David Grove Date: Thu, 12 Sep 2024 10:43:49 -0400 Subject: [PATCH] fix typos in customLabels error messages --- .../chart/templates/appwrapper.yaml | 12 ++++++------ tools/pytorchjob-generator/chart/values.yaml | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/pytorchjob-generator/chart/templates/appwrapper.yaml b/tools/pytorchjob-generator/chart/templates/appwrapper.yaml index b449bff..4281014 100644 --- a/tools/pytorchjob-generator/chart/templates/appwrapper.yaml +++ b/tools/pytorchjob-generator/chart/templates/appwrapper.yaml @@ -23,27 +23,27 @@ {{- end -}} {{- $customLabelKey := split "/" $customLabel.key -}} {{- if gt ( len $customLabelKey._0 ) 63 -}} -{{ required "The name of the 'customLables.key' must be less than 64 characters" "" }} +{{ required "The name of the 'customLabels.key' must be less than 64 characters" "" }} {{- end -}} {{- if eq ( regexMatch "^[a-z]([-a-z0-9._]*[a-z0-9])?$" $customLabelKey._0 ) false -}} -{{ required "The name of the 'customLables.key' provided is NOT correct. Some possible causes are: it begins with a number or a special character (including '-._'), has one or more capital letters somewhere in the key, has one or more special characters other than '-._', it ends with a special character (including '-._')" "" }} +{{ required "The name of the 'customLabels.key' provided is NOT correct. Some possible causes are: it begins with a number or a special character (including '-._'), has one or more capital letters somewhere in the key, has one or more special characters other than '-._', it ends with a special character (including '-._')" "" }} {{- end -}} {{- if $customLabelKey._1 }} {{- if gt ( len $customLabelKey._1 ) 254 -}} -{{ required "The prefix of the 'customLables.key' must be less than 254 characters" "" }} +{{ required "The prefix of the 'customLabels.key' must be less than 254 characters" "" }} {{- end -}} {{- if eq ( regexMatch "^[a-z]([-a-z0-9.]*[a-z0-9])?$" $customLabelKey._1 ) false -}} -{{ required "The prefix of the 'customLables.key' provided is NOT correct. Some possible causes are: it begins with a number or a special character (including '-.'), has one or more capital letters somewhere in the key, has one or more special characters other than '-.', it ends with a special character (including '-.')" "" }} +{{ required "The prefix of the 'customLabels.key' provided is NOT correct. Some possible causes are: it begins with a number or a special character (including '-.'), has one or more capital letters somewhere in the key, has one or more special characters other than '-.', it ends with a special character (including '-.')" "" }} {{- end -}} {{- end -}} {{- if not $customLabel.value -}} {{ required "Missing 'value' in 'customLabels' list element" $customLabel.value }} {{- end -}} {{- if gt ( len $customLabel.value ) 63 -}} -{{ required "The length of the 'customLables.value' must be less than 64 characters" "" }} +{{ required "The length of the 'customLabels.value' must be less than 64 characters" "" }} {{- end -}} {{- if eq ( regexMatch "^[a-z]([-a-z0-9._]*[a-z0-9])?$" $customLabel.value ) false -}} -{{ required "The 'customLables.value' provided is NOT correct. Some possible causes are: it begins with a number or a special character (including '-._'), has one or more capital letters somewhere in the name, has one or more special characters other than '-._', it ends with a special character (including '-._')" "" }} +{{ required "The 'customLabels.value' provided is NOT correct. Some possible causes are: it begins with a number or a special character (including '-._'), has one or more capital letters somewhere in the name, has one or more special characters other than '-._', it ends with a special character (including '-._')" "" }} {{- end -}} {{- end -}} {{- end -}} diff --git a/tools/pytorchjob-generator/chart/values.yaml b/tools/pytorchjob-generator/chart/values.yaml index 1a8d276..22e1694 100644 --- a/tools/pytorchjob-generator/chart/values.yaml +++ b/tools/pytorchjob-generator/chart/values.yaml @@ -263,4 +263,3 @@ restartPolicy: "Never" # @default -- Kubernetes's default value is used # @section -- Fault Tolerance terminationGracePeriodSeconds: -