-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable images #91
Conversation
cb7f68a
to
7a605c3
Compare
a25df8b
to
b3274d2
Compare
2532e03
to
2a8ddc6
Compare
cluster.yml
Outdated
@@ -49,6 +51,16 @@ services: | |||
kubeproxy: | |||
image: rancher/k8s:v1.8.3-rancher2 | |||
|
|||
|
|||
rke_images: |
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.
lets call it system_images
, rke is a bit redundant
addons/kubedns.go
Outdated
@@ -17,7 +17,7 @@ spec: | |||
spec: | |||
containers: | |||
- name: autoscaler | |||
image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.0.0 | |||
image: ` + kubeDNSConfig["autoscaler_image"] + ` |
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.
We should define images names as constants. To avoid repeating them in the code
cluster/cluster.go
Outdated
// don't break if the user didn't define rke_images | ||
c.RKEImages = make(map[string]string) | ||
} | ||
setDefaultIfEmptyMapValue(c.RKEImages, "alpine", DefaultAplineImage) |
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.
Consider doing it in some kind of a loop, there is a lot of repeatable stuff. When you read the config, you can put all images in a map, then iterate over this map
b14d732
to
27308dc
Compare
Refactor configuration defaults Add comments to config Add configurable utility images Add configurable network plugin images Add configurable kubedns images
27308dc
to
0ee002b
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, thanks
#84