Expose ClusterMaintenenceConfig options to terraform#886
Conversation
c38bd24 to
4c079b4
Compare
r0mant
left a comment
There was a problem hiding this comment.
Generally looks good to me but would be good to get @marcoandredinis's review as well.
There was a problem hiding this comment.
Shouldn't the reference documentation have been updated to include the new resource as well? @marcoandredinis
There was a problem hiding this comment.
New resources must be added to terraform/gen/main.go
// Create Docs Markdown
var (
mapResourceSchema = map[string]func(context.Context) (tfsdk.Schema, diag.Diagnostics){
"cluster_maintenance_config": tfschema.GenSchemaClusterMaintenanceConfigV1,
// ...
tcsc
left a comment
There was a problem hiding this comment.
This doesn't build cleanly for me:
❯ make build
rm -rf example/terraform.tfstate
rm -rf example/terraform.tfstate.backup
rm -rf example/.terraform
rm -rf example/.terraform.lock.hcl
rm -rf ~/.terraform.d/plugins/terraform.releases.teleport.dev/gravitational/teleport/13.3.1/darwin_arm64/*
rm -rf build/*
rm -rf terraform-provider-teleport-v13.3.1-darwin-arm64-bin.tar.gz
go clean
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o build/terraform-provider-teleport -ldflags '-w -s'
# github.com/gravitational/teleport-plugins/terraform/tfschema
tfschema/types_terraform.go:16444:24: obj.Verbs undefined (type *"github.com/gravitational/teleport/api/types".KubernetesResource has no field or method Verbs)
tfschema/types_terraform.go:16455:27: obj.Verbs undefined (type *"github.com/gravitational/teleport/api/types".KubernetesResource has no field or method Verbs)
tfschema/types_terraform.go:18089:24: obj.Verbs undefined (type *"github.com/gravitational/teleport/api/types".KubernetesResource has no field or method Verbs)
tfschema/types_terraform.go:18100:27: obj.Verbs undefined (type *"github.com/gravitational/teleport/api/types".KubernetesResource has no field or method Verbs)
tfschema/types_terraform.go:21881:106: obj.Verbs undefined (type "github.com/gravitational/teleport/api/types".KubernetesResource has no field or method Verbs)
tfschema/types_terraform.go:21886:106: obj.Verbs undefined (type "github.com/gravitational/teleport/api/types".KubernetesResource has no field or method Verbs)
tfschema/types_terraform.go:21889:26: obj.Verbs undefined (type "github.com/gravitational/teleport/api/types".KubernetesResource has no field or method Verbs)
tfschema/types_terraform.go:21891:31: obj.Verbs undefined (type "github.com/gravitational/teleport/api/types".KubernetesResource has no field or method Verbs)
tfschema/types_terraform.go:21892:106: obj.Verbs undefined (type "github.com/gravitational/teleport/api/types".KubernetesResource has no field or method Verbs)
tfschema/types_terraform.go:21894:42: obj.Verbs undefined (type "github.com/gravitational/teleport/api/types".KubernetesResource has no field or method Verbs)
tfschema/types_terraform.go:21894:42: too many errors
make: *** [build] Error 1
I encountered this issue at some point also, I can't remember how I resolved it, but I think it might be to do with the teleport commit in the go.mod and makefile where it |
|
This looks mostly good 👍
Not only merged, but also backported to v13 (teleport-plugins follows only the latest major teleport version) |
tcsc
left a comment
There was a problem hiding this comment.
Looks good to me once gravitational/teleport#30214 and the subsequent v13 backport are merged.
c2b67fd to
3de4015
Compare
3de4015 to
7b8e08e
Compare
|
Let me know if I should do another pass. |
7b8e08e to
ffdbefb
Compare
2ec9398 to
1569b96
Compare
1569b96 to
6f7c23f
Compare
Implements: gravitational/teleport#26066