Skip to content

Commit

Permalink
Update kubernetes_cluster_resource_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
hqhqhqhqhqhqhqhqhqhqhq committed Dec 2, 2024
1 parent ac5136a commit 21c5107
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -954,13 +954,13 @@ resource "azurerm_kubernetes_cluster" "test" {
}

func (KubernetesClusterResource) upgradeOverrideSetting(data acceptance.TestData, isUpgradeOverrideSettingEnabled bool) string {

upgradeOverrideSetting := ""
if isUpgradeOverrideSettingEnabled {
upgradeOverrideSetting = `
upgradeOverrideSetting = fmt.Sprintf(`
upgrade_override {
effective_until = "2024-01-01T00:00:00Z"
}`
effective_until = "%s"
}`, time.Now().Add(8*time.Minute).Format(time.RFC3339))

}

Check failure on line 964 in internal/services/containers/kubernetes_cluster_resource_test.go

View workflow job for this annotation

GitHub Actions / golint

unnecessary trailing newline (whitespace)

return fmt.Sprintf(`
Expand Down Expand Up @@ -996,5 +996,4 @@ resource "azurerm_kubernetes_cluster" "test" {
}
`, data.RandomString, data.Locations.Primary, upgradeOverrideSetting)

}

0 comments on commit 21c5107

Please sign in to comment.