GoogleCloudPlatform / GoogleCloudPlatform/pubsec-declarative-toolkit

RootSync must not manage itsself in its repo

Open
#770 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
36
Forks
26
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
For those KCC solutions with RootSync resources included in the solution package, there is a conflict that the RootSync manages itself in the same repo after pushing to git repo and using RootSync to gitops the solution.

**To Reproduce**
Step1: Follow the below guide to deploy core landing zone v2.
https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/blob/main/docs/landing-zone-v2/README.md
Step2: Follow the below guide to deploy client setup solution.
https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/blob/main/solutions/client-setup/README.md
Step3: Validate the Root Syncs resource are located in the solution package at the git repo.
![image](https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/assets/95398233/feae4ed0-9cb8-48ce-a26b-139428c9be31)
Step4: Validate deployment by the below command.
```
nomos status --contexts gke_${PROJECT_ID}_northamerica-northeast1_krmapihost-${CLUSTER}
```
Step5: Found the error as shown below.
![image](https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/assets/95398233/8cd37b9d-09fa-40db-8f97-102231d92f0a)

**Expected behavior**
RootSyncs resources can be stored with the solution code at the same repo and different folder and Root Sync resources are deployed separately.

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.