From 5a572831365de0dd949743929f8f186455253e16 Mon Sep 17 00:00:00 2001 From: Mike Larah Date: Fri, 17 Jan 2020 16:39:07 +0000 Subject: [PATCH] Default file share name to bundle name in advanced template --- pkg/generator/testdata/azuredeploy.json | 2 +- pkg/template/cnab-arm-driver-template.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/generator/testdata/azuredeploy.json b/pkg/generator/testdata/azuredeploy.json index a612f9d..d8aa6b1 100644 --- a/pkg/generator/testdata/azuredeploy.json +++ b/pkg/generator/testdata/azuredeploy.json @@ -98,7 +98,7 @@ }, "cnab_azure_state_fileshare": { "type": "string", - "defaultValue": "", + "defaultValue": "hello-world", "metadata": { "description": "The file share name in the storage account for the CNAB state to be stored in" } diff --git a/pkg/template/cnab-arm-driver-template.go b/pkg/template/cnab-arm-driver-template.go index eb2429c..810e2c5 100644 --- a/pkg/template/cnab-arm-driver-template.go +++ b/pkg/template/cnab-arm-driver-template.go @@ -271,7 +271,7 @@ func NewCnabArmDriverTemplate(bundleName string, bundleTag string, containerImag Metadata: &Metadata{ Description: "The file share name in the storage account for the CNAB state to be stored in", }, - DefaultValue: "", + DefaultValue: bundleName, } }