[KNI-19] Apply_workloads after updating blueprint Created: 08/Jul/20 Updated: 07/Oct/20 |
|
| Status: | To Do |
| Project: | Kubernetes Native Infrastructure |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Medium |
| Reporter: | Ricardo Noriega | Assignee: | Jonathan Cope |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | KNICTL | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Apply_workloads command does not download the newest up to date blueprint once it has been executed once. |
| Comments |
| Comment by Jonathan Cope [ 07/Oct/20 ] |
|
I tried creating 3 distinct workloads at each layer. This was done by writing ngnix deployments, each unique, under 03_services dir for ./site/, ./profile/, and ./base, and appending them to their respective kustomize.yaml resource lists, and finally pushing them to the remote repo. Executing apply_workloads showed that only new deployments from base and profile were created, but site was not. The issue lies in the way DownloadRepos() and ApplyWorkloads manages relationships between the separate layers (base, profile, site). The process:
So the issue is that it downloads the remote files, but executes against a copy of the locally stored, stale site. The relative paths point the stale site to the new versions of the profile and base. Thus any changes in ~/.kni/blueprint/sites/$SITE (the remote version), are ignored. |
| Comment by Jonathan Cope [ 07/Oct/20 ] |
|
I've been unable to reproduce the behavior via: 1. Spin up a management cluster (https://github.com/copejon/blueprint-management-hub) |