Use kustomize to configure Config Sync to ignore Backstage manifests. Thanks @vedantthapa!
This is implemented in a few parts:
Add a step to download the root kustomization.yaml from the repo
Add a step to add the directory we create in the PR to the resources array in the root kustomization.yaml. It does not enter duplicates to support modifying existing projects.
Create a new kustomization.yaml in each template that tells Config Sync to only include claim.yaml
To summarize, these are the new changes for every PR:
DMIA-PHAC/
+ kustomization.yaml (Add "SciencePlatform/<project-id>/" to the `resources:`)
SciencePlatform/<project-id>/
catalog-info.yaml
claim.yaml
+ kustomization.yaml (new)
This PR will close #382.
Proposed Changes
Use
kustomize
to configure Config Sync to ignore Backstage manifests. Thanks @vedantthapa!This is implemented in a few parts:
resources
array in the root kustomization.yaml. It does not enter duplicates to support modifying existing projects.To summarize, these are the new changes for every PR:
Test Plan
This has been tested with PR https://github.com/PHACDataHub/sci-portal/pull/382.
Screenshots / Demo