Skip to content

Commit

Permalink
fix: move k8s to own package
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiGuranIonos committed Dec 5, 2024
1 parent 6d13715 commit 7df5277
Show file tree
Hide file tree
Showing 5 changed files with 928 additions and 31 deletions.
9 changes: 8 additions & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const (
mainMod = "index" // the ionoscloud module
computeModule = "compute" // the ionoscloud module
dbaasModule = "dbaas" // the ionoscloud module
k8sModule = "k8s" // the ionoscloud module
)

//go:embed cmd/pulumi-resource-ionoscloud/bridge-metadata.json
Expand Down Expand Up @@ -143,7 +144,7 @@ func Provider() tfbridge.ProviderInfo {
// match the TF provider module's require directive, not any replace directives.
GitHubOrg: "ionos-cloud",
MetadataInfo: tfbridge.NewProviderMetadata(metadata),
Config: map[string]*tfbridge.SchemaInfo{
Config: map[string]*tfbridge.SchemaInfo{
// Add any required configuration here, or remove the example below if
// no additional points are required.
// "region": {
Expand Down Expand Up @@ -239,6 +240,12 @@ func Provider() tfbridge.ProviderInfo {
"ionoscloud_inmemorydb_replicaset": {
Tok: tfbridge.MakeResource(mainPkg, dbaasModule, "InMemoryDBReplicaSet"),
},
"ionoscloud_k8s_cluster": {
Tok: tfbridge.MakeResource(mainPkg, k8sModule, "K8sCluster"),
},
"ionoscloud_k8s_node_pool": {
Tok: tfbridge.MakeResource(mainPkg, k8sModule, "K8sNodePool"),
},
},
}

Expand Down
51 changes: 51 additions & 0 deletions sdk/go/ionoscloud/k8s/init.go

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.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7df5277

Please sign in to comment.