-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wait_till option : normal #4139
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does "normal" mean? And I guess docs need to be updated for this change too
"All worker nodes in a cluster are up and running. You can access the cluster and deploy apps to the cluster. This state is considered healthy and does not require an action from you." https://cloud.ibm.com/docs/containers?topic=containers-cluster-states-reference#cluster-state-normal yes, this needs to be added to the tf docs too. |
So what is going to be the difference between "Normal" and "IngressReady"?
Is it simply that the "Normal" will not wait until the Ingress subdomain is fully set up? |
yes, that is my understanding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably be consistent with naming here. The current values all use CamelCase (e.g. IngressReady) and looks like you are introducing a lower case value "normal". Should it be uppercase "Normal" ?
it is seen in the test, but the value were already existing for cluster, it is converted to lowercase too. in the docs it is written in as Normal, and it is okay to use it this way. |
ibm/service/kubernetes/resource_ibm_container_vpc_cluster_test.go
Outdated
Show resolved
Hide resolved
@@ -241,7 +241,7 @@ Review the argument references that you can specify for your resource. | |||
- `version` - (Optional, String) The Kubernetes version that you want to update your worker nodes to. | |||
- `worker_num`- (Optional, Integer) The number of worker nodes in your cluster. This attribute creates a worker node that is not associated with a worker pool. **Note**: Conflicts with `workers`. | |||
- `wait_for_worker_update` - (Optional, Bool) Set to **true** to wait and update the Kubernetes version of worker nodes. **NOTE** Setting wait_for_worker_update to **false** is not recommended. Setting **false** results in upgrading all the worker nodes in the cluster at the same time causing the cluster downtime. | |||
- `wait_till` - (Optional, String) The cluster creation happens in multi-stages. To avoid the longer wait times for resource execution.This argument in the resource will wait for the specified stage and complete the execution. The default stage value is `IngressReady`. The supported stages are `MasterNodeReady` Resource waits till the master node is ready. `OneWorkerNodeReady` Resource waits till one worker node is in to ready state. `IngressReady` Resource waits till the ingress-host and ingress-secret are available. | |||
- `wait_till` - (Optional, String) The cluster creation happens in multi-stages. To avoid the longer wait times for resource execution.This argument in the resource will wait for the specified stage and complete the execution. The default stage value is `IngressReady`. The supported stages are `MasterNodeReady` Resource waits till the master node is ready. `OneWorkerNodeReady` Resource waits till one worker node is in to ready state. `Normal` Terraform marks the creation of your cluster complete when the cluster is in a [Normal](https://cloud.ibm.com/docs/containers?topic=containers-cluster-states-reference#cluster-state-normal) state. If you plan to do reading on the cluster from a datasource, use `Normal`. `IngressReady` Resource waits till the ingress-host and ingress-secret are available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing a space -> "execution.This"
Community Note
Relates OR Closes #0000
Output from acceptance testing: