databricks-cli/libs/template
Pieter Noordhuis f1b068cefe
Use normalized short name for tag value in development mode (#821)
## Changes

The jobs backend propagates job tags to the underlying cloud provider's
resources. As such, they need to match the constraints a cloud provider
places on tag values. The display name can contain anything. With this
change, we modify the tag value to equal the short name as used in the
name prefix.

Additionally, we leverage tag normalization as introduced in #819 to
make sure characters that aren't accepted are removed before using the
value as a tag value.

This is a new stab at #810 and should completely eliminate this class of
problems.

## Tests

Tests pass.
2023-10-02 06:58:51 +00:00
..
templates/default-python Make the default `databricks bundle init` template more self-explanatory (#796) 2023-09-26 09:12:34 +00:00
testdata Add schema and config validation to jsonschema package (#740) 2023-09-07 14:36:06 +00:00
config.go Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
config_test.go Add enum support for bundle templates (#668) 2023-09-08 12:07:22 +00:00
file.go Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
file_test.go Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
helpers.go databricks bundle init template v2: optional stubs, DLT support (#700) 2023-09-06 09:52:31 +00:00
helpers_test.go Add a foundation for built-in templates (#685) 2023-08-25 09:03:42 +00:00
materialize.go Cleanup after "Add a foundation for built-in templates" (#707) 2023-08-30 14:01:08 +00:00
renderer.go Error when unknown keys are encounters during template execution (#766) 2023-09-14 15:53:20 +00:00
renderer_test.go Use normalized short name for tag value in development mode (#821) 2023-10-02 06:58:51 +00:00