templates: Add a templates/common/, move pull secret there#627
templates: Add a templates/common/, move pull secret there#627openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Conversation
|
This was bugging me for a while...doesn't quite pass tests but let me know if you guys like the approach. |
|
@cgwalters is the idea to take the set of worker files that also exist (and are identical) in master dir and move to base? generally, (without looking at the code that much) i think i like the idea since it allows us to be explicit & consistent with the files that are exactly the same between the two. as a note: you do have some file name issues currently, a few end up being |
I like it |
05d6a80 to
0f7ba98
Compare
|
Rebased 🏄♂️ - this depends on #749 too now. Keeping as WIP for feedback. |
|
needs a rebase to pick up #749 |
0f7ba98 to
1cb30be
Compare
|
🏄♂️ rebased! |
|
@cgwalters if you don't mind adding my thought, i think (maybe is a preference thing) would be a bit cleaner if we had IMHO it much more natural thinking what it is w/o questioning the diff between |
A lot of templates are duplicated between master/worker. Create a `templates/common/` which will contain things shared between the two. Start by moving the pull secret there. If this PR is approved I'll do all of the common files.
1cb30be to
19c828b
Compare
|
Updated to use |
|
/retest |
|
thanks for updating @cgwalters !!! /LGTM |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, kikisdeliveryservice, LorbusChris The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Follow up to openshift#627 which only moved the pull secret to avoid conflicting with other PRs, but since that went well let's do the rest of the `_base/files` dir. Via this script: ``` set -euo pipefail master=templates/master/00-master worker=templates/worker/00-worker (cd ${master} && find _base/files -type f) | while read f; do if [ -f "${worker}/${f}" ] && cmp -s ${master}/${f} ${worker}/${f}; then git mv ${master}/$f templates/common/_base/files git rm ${worker}/$f fi done ```
A lot of templates are duplicated between master/worker. There's already
a
_basefor things not specific to a platform, so introduce_base/_basewhich is templates that are shared between master/worker.
Start by moving the pull secret there. If this PR is approved I'll
do all of the common files.