GoogleCloudPlatform / GoogleCloudPlatform/pubsec-declarative-toolkit

Fix kpt partial solution deployment issue

Open
#755 0 comments 0 reactions 0 assignees View on GitHub
bug deploy Landing Zone
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
```
Screenshot 2023-12-05 at 11 23 53 AM
Run the above kpt deployment command again and then all missed resources are created as shown below by the same above command.
Screenshot 2023-12-05 at 3 04 42 PM
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.