-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dependencies
: updating to v0.20240326.1143657 of github.com/hashicorp/go-azure-sdk
#25416
Changes from 4 commits
eee86e7
0b9601a
b0c99d5
a03a44d
c9f3026
e197cbd
fdd5ea2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ package containers | |
|
||
import ( | ||
"github.com/hashicorp/terraform-provider-azurerm/helpers/validate" | ||
"github.com/hashicorp/terraform-provider-azurerm/internal/features" | ||
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" | ||
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" | ||
) | ||
|
||
func SchemaContainerGroupProbe() *pluginsdk.Schema { | ||
//lintignore:XS003 | ||
return &pluginsdk.Schema{ | ||
schema := &pluginsdk.Schema{ | ||
Type: pluginsdk.TypeList, | ||
Optional: true, | ||
ForceNew: true, | ||
|
@@ -100,4 +100,13 @@ func SchemaContainerGroupProbe() *pluginsdk.Schema { | |
}, | ||
}, | ||
} | ||
if features.FourPointOh() { | ||
httpGetSchema := schema.Elem.(*pluginsdk.Resource).Schema["http_get"] | ||
httpGetSchema.Elem.(*pluginsdk.Resource).Schema["scheme"].ValidateFunc = validation.StringInSlice([]string{ | ||
"http", | ||
"https", | ||
}, false) | ||
schema.Elem.(*pluginsdk.Resource).Schema["http_get"] = httpGetSchema | ||
} | ||
return schema | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rather than doing this, can we update the Validate func to use the Constant values - and then use ignore the casing on those until 4.0? |
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than doing this, can we leave
schema
as it is and update the Schema instead?