Skip to content

Commit 989a1ab

Browse files
committed
Fix provider check for Hetzner in cluster extra vars
Replaced duplicate DIGITAL_OCEAN provider checks with DIGITAL_OCEAN and HETZNER to correctly apply extra vars for Hetzner clusters.
1 parent 9474c8e commit 989a1ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

console/ui/src/shared/lib/clusterValuesTransformFunctions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ export const getBaseClusterExtraVars = (values: ClusterFormValues) => {
424424
},
425425
}
426426
: {}),
427-
...([PROVIDERS.DIGITAL_OCEAN, PROVIDERS.DIGITAL_OCEAN].includes(
427+
...([PROVIDERS.DIGITAL_OCEAN, PROVIDERS.HETZNER].includes(
428428
values?.[CLUSTER_FORM_FIELD_NAMES.PROVIDER]?.code,
429429
)
430430
? {
@@ -442,7 +442,7 @@ export const getBaseClusterExtraVars = (values: ClusterFormValues) => {
442442
wal_g_json: convertModalParametersToArray(values?.[BACKUPS_BLOCK_FIELD_NAMES.CONFIG]),
443443
}
444444
: {}),
445-
...([PROVIDERS.DIGITAL_OCEAN, PROVIDERS.DIGITAL_OCEAN].includes(
445+
...([PROVIDERS.DIGITAL_OCEAN, PROVIDERS.HETZNER].includes(
446446
values?.[CLUSTER_FORM_FIELD_NAMES.PROVIDER]?.code,
447447
)
448448
? {

0 commit comments

Comments
 (0)