GoogleCloudPlatform / GoogleCloudPlatform/pubsec-declarative-toolkit
Fix kpt partial solution deployment issue
- Dominant language
- Shell
- Stars
- 36
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When deploy kcc solutions by kpt, sometimes, for some unknown reason, there is a chance that some resources from the solution failed to be deployed to kcc cluster and we end up with a partial solution deployment.
**To Reproduce**
Step1: Follow the below document to bootstrap kcc config cluster and deploy core landing zone v2 solution.
https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/tree/main/docs/landing-zone-v2
Step2: Run the below command to deploy core landing zone after kcc bootstrapping.
```
kpt live apply core-landing-zone --reconcile-timeout=2m --output=table
```
Step3: Found some resources were missed during the first deployment by kpt.
After the initial kpt deployment by the above command, only some resources are created as shown below by the command below.
```
kubectl get gcp -n projects
```
Run the above kpt deployment command again and then all missed resources are created as shown below by the same above command.
We can make a conclusion that some resources were not created sometimes during the initial deployment based on the above test results.
**Expected behavior**
All resources of a kcc solution must be deployed by kpt to kcc cluster completely.
Contributor guide
Assessment
This issue has not been assessed yet.