Skip to content

Commit

Permalink
feat(cor-1138) Make Karpenter qovery node pools & requirements mandat…
Browse files Browse the repository at this point in the history
…ory (#445)

* feat(cor-1138) Make Karpenter qovery node pools mandatory

* fixup! feat(cor-1138) Make Karpenter qovery node pools mandatory
  • Loading branch information
mzottola authored Jan 10, 2025
1 parent 3fdc956 commit cd1b886
Show file tree
Hide file tree
Showing 5 changed files with 212 additions and 211 deletions.
5 changes: 1 addition & 4 deletions docs/data-sources/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,8 @@ Required:

- `default_service_architecture` (String) The default architecture of service
- `disk_size_in_gib` (Number)
- `spot_enabled` (Boolean) Enable spot instances

Optional:

- `qovery_node_pools` (Attributes) Karpenter node pool configuration (see [below for nested schema](#nestedatt--features--karpenter--qovery_node_pools))
- `spot_enabled` (Boolean) Enable spot instances

<a id="nestedatt--features--karpenter--qovery_node_pools"></a>
### Nested Schema for `features.karpenter.qovery_node_pools`
Expand Down
5 changes: 1 addition & 4 deletions docs/resources/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,8 @@ Required:

- `default_service_architecture` (String) The default architecture of service
- `disk_size_in_gib` (Number)
- `spot_enabled` (Boolean) Enable spot instances

Optional:

- `qovery_node_pools` (Attributes) Karpenter node pool configuration (see [below for nested schema](#nestedatt--features--karpenter--qovery_node_pools))
- `spot_enabled` (Boolean) Enable spot instances

<a id="nestedatt--features--karpenter--qovery_node_pools"></a>
### Nested Schema for `features.karpenter.qovery_node_pools`
Expand Down
2 changes: 1 addition & 1 deletion qovery/data_source_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func (r clusterDataSource) Schema(_ context.Context, _ datasource.SchemaRequest,
},
"qovery_node_pools": schema.SingleNestedAttribute{
Description: "Karpenter node pool configuration",
Optional: true,
Required: true,
Computed: false,
Attributes: map[string]schema.Attribute{
"requirements": schema.ListNestedAttribute{
Expand Down
2 changes: 1 addition & 1 deletion qovery/resource_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (r clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, res
},
"qovery_node_pools": schema.SingleNestedAttribute{
Description: "Karpenter node pool configuration",
Optional: true,
Required: true,
Computed: false,
Attributes: map[string]schema.Attribute{
"requirements": schema.ListNestedAttribute{
Expand Down
Loading

0 comments on commit cd1b886

Please sign in to comment.