From 23bf859e50d546455a1f61b1f6752c1d3a8d1ea5 Mon Sep 17 00:00:00 2001 From: Dmitry Shmulevich Date: Tue, 7 Nov 2017 10:12:11 -0800 Subject: [PATCH] fix deployment name to contain allowed characters --- pkg/operations/kubernetesupgrade/upgradeagentnode.go | 2 +- pkg/operations/kubernetesupgrade/upgrademasternode.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/operations/kubernetesupgrade/upgradeagentnode.go b/pkg/operations/kubernetesupgrade/upgradeagentnode.go index fce178163e..a5f8a079cc 100644 --- a/pkg/operations/kubernetesupgrade/upgradeagentnode.go +++ b/pkg/operations/kubernetesupgrade/upgradeagentnode.go @@ -69,7 +69,7 @@ func (kan *UpgradeAgentNode) CreateNode(poolName string, agentNo int) error { random := rand.New(rand.NewSource(time.Now().UnixNano())) deploymentSuffix := random.Int31() - deploymentName := fmt.Sprintf("agent-%s-%d", time.Now().Format("06-01-02T15:04:05"), deploymentSuffix) + deploymentName := fmt.Sprintf("agent-%s-%d", time.Now().Format("06-01-02T15.04.05"), deploymentSuffix) _, err := kan.Client.DeployTemplate( kan.ResourceGroup, diff --git a/pkg/operations/kubernetesupgrade/upgrademasternode.go b/pkg/operations/kubernetesupgrade/upgrademasternode.go index 00d44bf175..ca4aca5036 100644 --- a/pkg/operations/kubernetesupgrade/upgrademasternode.go +++ b/pkg/operations/kubernetesupgrade/upgrademasternode.go @@ -54,7 +54,7 @@ func (kmn *UpgradeMasterNode) CreateNode(poolName string, masterNo int) error { random := rand.New(rand.NewSource(time.Now().UnixNano())) deploymentSuffix := random.Int31() - deploymentName := fmt.Sprintf("master-%s-%d", time.Now().Format("06-01-02T15:04:05"), deploymentSuffix) + deploymentName := fmt.Sprintf("master-%s-%d", time.Now().Format("06-01-02T15.04.05"), deploymentSuffix) _, err := kmn.Client.DeployTemplate( kmn.ResourceGroup,