Skip to content

Commit 9d7ab0f

Browse files
committed
cluster model
1 parent 6961cbe commit 9d7ab0f

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

docs/resources/deployment.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ resource "astronomer_deployment" "hybrid" {
9797
- `environment_variables` (Attributes List) Deployment environment variables (see [below for nested schema](#nestedatt--environment_variables))
9898
- `executor` (String) Deployment executor
9999
- `is_cicd_enforced` (Boolean) Deployment CI/CD enforced
100-
- `is_dag_deploy_enabled` (Boolean) Deployment DAG deploy enabled
100+
- `is_dag_deploy_enabled` (Boolean) Deployment DAG deploy enabled - TODO https://docs.astronomer.io/astro/deploy-dags#enable-or-disable-dag-only-deploys-on-a-deployment
101101
- `name` (String) Deployment name
102102
- `type` (String) Deployment type - if changing this value, the deployment will be recreated with the new type
103-
- `workspace_id` (String) Deployment workspace identifier
103+
- `workspace_id` (String) Deployment workspace identifier - if changing this value, the deployment will be recreated in the new workspace
104104

105105
### Optional
106106

internal/provider/models/cluster.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -107,23 +107,23 @@ func ClusterTagTypesObject(
107107

108108
func NodePoolTypesObject(
109109
ctx context.Context,
110-
workerQueue platform.NodePool,
110+
nodePool platform.NodePool,
111111
) (types.Object, diag.Diagnostics) {
112-
supportedAstroMachines, diags := utils.StringList(workerQueue.SupportedAstroMachines)
112+
supportedAstroMachines, diags := utils.StringList(nodePool.SupportedAstroMachines)
113113
if diags.HasError() {
114114
return types.ObjectNull(schemas.NodePoolAttributeTypes()), diags
115115
}
116116
obj := NodePool{
117-
Id: types.StringValue(workerQueue.Id),
118-
Name: types.StringValue(workerQueue.Name),
119-
ClusterId: types.StringValue(workerQueue.ClusterId),
120-
CloudProvider: types.StringValue(string(workerQueue.CloudProvider)),
121-
MaxNodeCount: types.Int64Value(int64(workerQueue.MaxNodeCount)),
122-
NodeInstanceType: types.StringValue(workerQueue.NodeInstanceType),
123-
IsDefault: types.BoolValue(workerQueue.IsDefault),
117+
Id: types.StringValue(nodePool.Id),
118+
Name: types.StringValue(nodePool.Name),
119+
ClusterId: types.StringValue(nodePool.ClusterId),
120+
CloudProvider: types.StringValue(string(nodePool.CloudProvider)),
121+
MaxNodeCount: types.Int64Value(int64(nodePool.MaxNodeCount)),
122+
NodeInstanceType: types.StringValue(nodePool.NodeInstanceType),
123+
IsDefault: types.BoolValue(nodePool.IsDefault),
124124
SupportedAstroMachines: supportedAstroMachines,
125-
CreatedAt: types.StringValue(workerQueue.CreatedAt.String()),
126-
UpdatedAt: types.StringValue(workerQueue.UpdatedAt.String()),
125+
CreatedAt: types.StringValue(nodePool.CreatedAt.String()),
126+
UpdatedAt: types.StringValue(nodePool.UpdatedAt.String()),
127127
}
128128

129129
return types.ObjectValueFrom(ctx, schemas.NodePoolAttributeTypes(), obj)

0 commit comments

Comments
 (0)