Skip to content

Commit 63b952e

Browse files
committed
Schema Version
1 parent 5dbb021 commit 63b952e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

provider/gitauth.go

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import (
1313
// gitAuthDataSource returns a schema for a Git authentication data source.
1414
func gitAuthDataSource() *schema.Resource {
1515
return &schema.Resource{
16+
SchemaVersion: 1,
17+
1618
DeprecationMessage: "Use the `coder_external_auth` data source instead.",
1719
Description: "Use this data source to require users to authenticate with a Git provider prior to workspace creation. This can be used to perform an authenticated `git clone` in startup scripts.",
1820
ReadContext: func(ctx context.Context, rd *schema.ResourceData, i interface{}) diag.Diagnostics {

provider/metadata.go

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import (
1111

1212
func metadataResource() *schema.Resource {
1313
return &schema.Resource{
14+
SchemaVersion: 1,
15+
1416
Description: "Use this resource to attach metadata to a resource. They will be " +
1517
"displayed in the Coder dashboard.",
1618
CreateContext: func(c context.Context, resourceData *schema.ResourceData, i interface{}) diag.Diagnostics {

0 commit comments

Comments
 (0)