Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

fix deployment name to contain allowed characters #1720

Merged
merged 1 commit into from
Nov 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/operations/kubernetesupgrade/upgradeagentnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pkg/operations/kubernetesupgrade/upgrademasternode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down