make tfgen
This commit is contained in:
@@ -14,15 +14,15 @@
|
||||
"current": "incus:index/clusterGroup:ClusterGroup",
|
||||
"majorVersion": 1
|
||||
},
|
||||
"incus_cluster_group_assignment": {
|
||||
"current": "incus:index/clusterGroupAssignment:ClusterGroupAssignment",
|
||||
"incus_cluster_group_member": {
|
||||
"current": "incus:index/clusterGroupMember:ClusterGroupMember",
|
||||
"majorVersion": 1
|
||||
},
|
||||
"incus_image": {
|
||||
"current": "incus:index/image:Image",
|
||||
"majorVersion": 1,
|
||||
"fields": {
|
||||
"aliases": {
|
||||
"alias": {
|
||||
"maxItemsOne": false
|
||||
},
|
||||
"copied_aliases": {
|
||||
@@ -68,6 +68,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"incus_network_address_set": {
|
||||
"current": "incus:index/networkAddressSet:NetworkAddressSet",
|
||||
"majorVersion": 1,
|
||||
"fields": {
|
||||
"addresses": {
|
||||
"maxItemsOne": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"incus_network_forward": {
|
||||
"current": "incus:index/networkForward:NetworkForward",
|
||||
"majorVersion": 1,
|
||||
@@ -130,6 +139,10 @@
|
||||
"current": "incus:index/project:Project",
|
||||
"majorVersion": 1
|
||||
},
|
||||
"incus_server": {
|
||||
"current": "incus:index/server:Server",
|
||||
"majorVersion": 1
|
||||
},
|
||||
"incus_storage_bucket": {
|
||||
"current": "incus:index/storageBucket:StorageBucket",
|
||||
"majorVersion": 1
|
||||
@@ -148,6 +161,24 @@
|
||||
}
|
||||
},
|
||||
"datasources": {
|
||||
"incus_cluster": {
|
||||
"current": "incus:index/getCluster:getCluster",
|
||||
"majorVersion": 1,
|
||||
"fields": {
|
||||
"members": {
|
||||
"elem": {
|
||||
"fields": {
|
||||
"groups": {
|
||||
"maxItemsOne": false
|
||||
},
|
||||
"roles": {
|
||||
"maxItemsOne": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"incus_image": {
|
||||
"current": "incus:index/getImage:getImage",
|
||||
"majorVersion": 1,
|
||||
@@ -157,6 +188,88 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"incus_instance": {
|
||||
"current": "incus:index/getInstance:getInstance",
|
||||
"majorVersion": 1,
|
||||
"fields": {
|
||||
"device": {
|
||||
"maxItemsOne": false
|
||||
},
|
||||
"profiles": {
|
||||
"maxItemsOne": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"incus_network": {
|
||||
"current": "incus:index/getNetwork:getNetwork",
|
||||
"majorVersion": 1,
|
||||
"fields": {
|
||||
"locations": {
|
||||
"maxItemsOne": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"incus_network_acl": {
|
||||
"current": "incus:index/getNetworkAcl:getNetworkAcl",
|
||||
"majorVersion": 1,
|
||||
"fields": {
|
||||
"egress": {
|
||||
"maxItemsOne": false
|
||||
},
|
||||
"ingress": {
|
||||
"maxItemsOne": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"incus_network_address_set": {
|
||||
"current": "incus:index/getNetworkAddressSet:getNetworkAddressSet",
|
||||
"majorVersion": 1,
|
||||
"fields": {
|
||||
"addresses": {
|
||||
"maxItemsOne": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"incus_network_forward": {
|
||||
"current": "incus:index/getNetworkForward:getNetworkForward",
|
||||
"majorVersion": 1,
|
||||
"fields": {
|
||||
"ports": {
|
||||
"maxItemsOne": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"incus_network_integration": {
|
||||
"current": "incus:index/getNetworkIntegration:getNetworkIntegration",
|
||||
"majorVersion": 1
|
||||
},
|
||||
"incus_network_load_balancer": {
|
||||
"current": "incus:index/getNetworkLoadBalancer:getNetworkLoadBalancer",
|
||||
"majorVersion": 1,
|
||||
"fields": {
|
||||
"backends": {
|
||||
"maxItemsOne": false
|
||||
},
|
||||
"ports": {
|
||||
"maxItemsOne": false,
|
||||
"elem": {
|
||||
"fields": {
|
||||
"target_backend": {
|
||||
"maxItemsOne": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"incus_network_peer": {
|
||||
"current": "incus:index/getNetworkPeer:getNetworkPeer",
|
||||
"majorVersion": 1
|
||||
},
|
||||
"incus_network_zone": {
|
||||
"current": "incus:index/getNetworkZone:getNetworkZone",
|
||||
"majorVersion": 1
|
||||
},
|
||||
"incus_profile": {
|
||||
"current": "incus:index/getProfile:getProfile",
|
||||
"majorVersion": 1,
|
||||
@@ -169,6 +282,18 @@
|
||||
"incus_project": {
|
||||
"current": "incus:index/getProject:getProject",
|
||||
"majorVersion": 1
|
||||
},
|
||||
"incus_storage_bucket": {
|
||||
"current": "incus:index/getStorageBucket:getStorageBucket",
|
||||
"majorVersion": 1
|
||||
},
|
||||
"incus_storage_pool": {
|
||||
"current": "incus:index/getStoragePool:getStoragePool",
|
||||
"majorVersion": 1
|
||||
},
|
||||
"incus_storage_volume": {
|
||||
"current": "incus:index/getStorageVolume:getStorageVolume",
|
||||
"majorVersion": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -2,7 +2,9 @@ module git.kalinow.ski/kiterun/pulumi-incus/provider
|
||||
|
||||
go 1.25.5
|
||||
|
||||
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20250221232320-8d4cfd37a3cd
|
||||
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20250923233607-7f1981c8674a
|
||||
|
||||
replace github.com/olekukonko/tablewriter => github.com/olekukonko/tablewriter v0.0.5
|
||||
|
||||
replace github.com/lxc/terraform-provider-incus/shim => ./shim
|
||||
|
||||
@@ -172,9 +174,6 @@ require (
|
||||
github.com/muhlemmer/gu v0.3.1 // indirect
|
||||
github.com/natefinch/atomic v1.0.1 // indirect
|
||||
github.com/oklog/run v1.2.0 // indirect
|
||||
github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 // indirect
|
||||
github.com/olekukonko/errors v1.1.0 // indirect
|
||||
github.com/olekukonko/ll v0.1.3 // indirect
|
||||
github.com/olekukonko/tablewriter v1.1.2 // indirect
|
||||
github.com/opencontainers/go-digest v1.0.0 // indirect
|
||||
github.com/opencontainers/image-spec v1.1.1 // indirect
|
||||
|
||||
@@ -345,8 +345,8 @@ github.com/hashicorp/hil v0.0.0-20251118110004-e173edf37c03 h1:R1KihLKh/GA72MlYh
|
||||
github.com/hashicorp/hil v0.0.0-20251118110004-e173edf37c03/go.mod h1:jkKktDcciKCJmE5Gtm1PU5G1ASrY7OXMngvkV9GXZMI=
|
||||
github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y=
|
||||
github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
|
||||
github.com/hashicorp/terraform-exec v0.23.1 h1:diK5NSSDXDKqHEOIQefBMu9ny+FhzwlwV0xgUTB7VTo=
|
||||
github.com/hashicorp/terraform-exec v0.23.1/go.mod h1:e4ZEg9BJDRaSalGm2z8vvrPONt0XWG0/tXpmzYTf+dM=
|
||||
github.com/hashicorp/terraform-exec v0.24.0 h1:mL0xlk9H5g2bn0pPF6JQZk5YlByqSqrO5VoaNtAf8OE=
|
||||
github.com/hashicorp/terraform-exec v0.24.0/go.mod h1:lluc/rDYfAhYdslLJQg3J0oDqo88oGQAdHR+wDqFvo4=
|
||||
github.com/hashicorp/terraform-json v0.27.1 h1:zWhEracxJW6lcjt/JvximOYyc12pS/gaKSy/wzzE7nY=
|
||||
github.com/hashicorp/terraform-json v0.27.1/go.mod h1:GzPLJ1PLdUG5xL6xn1OXWIjteQRT2CNT9o/6A9mi9hE=
|
||||
github.com/hashicorp/terraform-plugin-framework v1.17.0 h1:JdX50CFrYcYFY31gkmitAEAzLKoBgsK+iaJjDC8OexY=
|
||||
@@ -448,6 +448,7 @@ github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D
|
||||
github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4=
|
||||
github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
|
||||
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
|
||||
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
|
||||
github.com/mattn/go-runewidth v0.0.19 h1:v++JhqYnZuu5jSKrk9RbgF5v4CGUjqRfBm05byFGLdw=
|
||||
github.com/mattn/go-runewidth v0.0.19/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs=
|
||||
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
|
||||
@@ -498,14 +499,8 @@ github.com/nightlyone/lockfile v1.0.0 h1:RHep2cFKK4PonZJDdEl4GmkabuhbsRMgk/k3uAm
|
||||
github.com/nightlyone/lockfile v1.0.0/go.mod h1:rywoIealpdNse2r832aiD9jRk8ErCatROs6LzC841CI=
|
||||
github.com/oklog/run v1.2.0 h1:O8x3yXwah4A73hJdlrwo/2X6J62gE5qTMusH0dvz60E=
|
||||
github.com/oklog/run v1.2.0/go.mod h1:mgDbKRSwPhJfesJ4PntqFUbKQRZ50NgmZTSPlFA0YFk=
|
||||
github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 h1:zrbMGy9YXpIeTnGj4EljqMiZsIcE09mmF8XsD5AYOJc=
|
||||
github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6/go.mod h1:rEKTHC9roVVicUIfZK7DYrdIoM0EOr8mK1Hj5s3JjH0=
|
||||
github.com/olekukonko/errors v1.1.0 h1:RNuGIh15QdDenh+hNvKrJkmxxjV4hcS50Db478Ou5sM=
|
||||
github.com/olekukonko/errors v1.1.0/go.mod h1:ppzxA5jBKcO1vIpCXQ9ZqgDh8iwODz6OXIGKU8r5m4Y=
|
||||
github.com/olekukonko/ll v0.1.3 h1:sV2jrhQGq5B3W0nENUISCR6azIPf7UBUpVq0x/y70Fg=
|
||||
github.com/olekukonko/ll v0.1.3/go.mod h1:b52bVQRRPObe+yyBl0TxNfhesL0nedD4Cht0/zx55Ew=
|
||||
github.com/olekukonko/tablewriter v1.1.2 h1:L2kI1Y5tZBct/O/TyZK1zIE9GlBj/TVs+AY5tZDCDSc=
|
||||
github.com/olekukonko/tablewriter v1.1.2/go.mod h1:z7SYPugVqGVavWoA2sGsFIoOVNmEHxUAAMrhXONtfkg=
|
||||
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
|
||||
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
|
||||
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
||||
github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
||||
github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k=
|
||||
@@ -574,8 +569,8 @@ github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQK
|
||||
github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k=
|
||||
github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI=
|
||||
github.com/pulumi/terraform-diff-reader v0.0.2/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
|
||||
github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20250221232320-8d4cfd37a3cd h1:+mioF0kwyl84ufR21U7OThZy001IpzJY9w5dNaxrR5A=
|
||||
github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20250221232320-8d4cfd37a3cd/go.mod h1:P6o64QS97plG44iFzSM6rAn6VJIC/Sy9a9IkEtl79K4=
|
||||
github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20250923233607-7f1981c8674a h1:bTwou+tt2fyfuuCp9+VQOlgEJk/xKEaYeoX2HCtp2es=
|
||||
github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20250923233607-7f1981c8674a/go.mod h1:rpW/bFN645nI+o0jth9hyIs/eWi3GP3B1J39fWZKC0Y=
|
||||
github.com/rhysd/go-fakeio v1.0.0 h1:+TjiKCOs32dONY7DaoVz/VPOdvRkPfBkEyUDIpM8FQY=
|
||||
github.com/rhysd/go-fakeio v1.0.0/go.mod h1:joYxF906trVwp2JLrE4jlN7A0z6wrz8O6o1UjarbFzE=
|
||||
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
|
||||
|
||||
@@ -227,6 +227,11 @@ func Provider() tfbridge.ProviderInfo {
|
||||
ComputeID: tfbridge.DelegateIDField("name", prov.Name, prov.Repository),
|
||||
}
|
||||
|
||||
prov.Resources["incus_cluster_group_member"] = &tfbridge.ResourceInfo{
|
||||
Tok: tfbridge.MakeResource(mainPkg, mainMod, "ClusterGroupMember"),
|
||||
ComputeID: tfbridge.DelegateIDField("cluster_group", prov.Name, prov.Repository),
|
||||
}
|
||||
|
||||
prov.Resources["incus_image"] = &tfbridge.ResourceInfo{
|
||||
Tok: tfbridge.MakeResource(mainPkg, mainMod, "Image"),
|
||||
// Does this work if source image is used?
|
||||
@@ -308,6 +313,12 @@ func Provider() tfbridge.ProviderInfo {
|
||||
ComputeID: tfbridge.DelegateIDField("name", prov.Name, prov.Repository),
|
||||
}
|
||||
|
||||
prov.Resources["incus_server"] = &tfbridge.ResourceInfo{
|
||||
Tok: tfbridge.MakeResource(mainPkg, mainMod, "Server"),
|
||||
// It seems there is no id for this
|
||||
// ComputeID: tfbridge.DelegateIDField("name", prov.Name, prov.Repository),
|
||||
}
|
||||
|
||||
prov.Resources["incus_storage_bucket"] = &tfbridge.ResourceInfo{
|
||||
Tok: tfbridge.MakeResource(mainPkg, mainMod, "StorageBucket"),
|
||||
ComputeID: delegateIDFields([]resource.PropertyKey{"project", "pool", "name"}, prov.Name, prov.Repository),
|
||||
@@ -333,7 +344,8 @@ func Provider() tfbridge.ProviderInfo {
|
||||
}
|
||||
|
||||
prov.MustApplyAutoAliases()
|
||||
prov.SetAutonaming(255, "-")
|
||||
// SetAutonaming doesn't work with plugin-framework providers
|
||||
// prov.SetAutonaming(255, "-")
|
||||
|
||||
return prov
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user