-
Notifications
You must be signed in to change notification settings - Fork 558
Conversation
3c95bf3
to
518a6cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
518a6cd
to
94fa73f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
A file named 'parts/k8s/addons/1.6/kubernetesmasteraddons-calico-daemonset1.5.yaml' was added,
This still looks a bit strange, do we consider dropping version suffixes for files under versioned dir? |
Another issue is 'filepath.Walk' makes it dependent on current file system. That is to say, loading versioned artifacts only works when we are on root path of the project. Using a standalone 'acs-engine' release no longer work, unless we copy 'parts/k8s/...' dir structs there. This seems go against previous behavior. e.g.
At project root dir
|
Yes, these version suffixes can definitely be dropped. I have not done that yet since I want this PR to show exactly how files are moved. I will do it in a later PR. |
Yes, I take the assumption that acs-engine executable is always run from root. I will look into this issue and have it updated in the next PR. |
What this PR does / why we need it: Centralize the addon related code, simplify the code change needed on dev side to add a new addon.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes # Part of #1869Special notes for your reviewer:
Centralize the addon related code in addons.go. To add a new addon:
Then code should pickup the addon and write proper statements into the kubernetesmastercustomerdata.yaml.
Also moved all 1.5 version addon yamls to k8s/addon/1.5 directory. The code will pick the proper versioned addon files based on the input OrchestratorVersion. No hard-coding of version number in the code.
manifests and artifacts can be treated the same way if needed.
Release note: