-
Notifications
You must be signed in to change notification settings - Fork 250
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
Update install script to allow conf name changes #392
Update install script to allow conf name changes #392
Conversation
k8s-install/scripts/install-cni.sh
Outdated
@@ -128,18 +128,23 @@ sed -i s~__ETCD_CA_CERT_FILE__~${CNI_CONF_ETCD_CA:-}~g $TMP_CONF | |||
sed -i s~__ETCD_ENDPOINTS__~${ETCD_ENDPOINTS:-}~g $TMP_CONF | |||
sed -i s~__LOG_LEVEL__~${LOG_LEVEL:-warn}~g $TMP_CONF | |||
|
|||
FILENAME=${CNI_CONF_NAME:-10-calico.conf} | |||
CNI_CONF_NAME=${CNI_CONF_NAME:-10-calico.conf} | |||
CNI_OLD_NAME=${CNI_OLD_NAME:-10-calico.conf} |
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.
One minor thing - I think it would be good to name the config option CNI_OLD_CONF_NAME
to make it more clear it's referring to the old CNI configuration file name, not something else.
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.
sure thing!
a461fbd
to
ec0e68c
Compare
Thanks! |
will a release be cut for this? I see that this has a v2.6.2 milestone label. |
@weikinhuang sorry for the long delay. This exists now in Calico v3.0.0-beta1. We also need to port this to v2.6.x, which is now looking like v2.6.4. |
Description
This will allow users to upgrade the calico cni config to a different name while at the same time will clean up the old config files. This change is useful in the case where we want to move to a
.conflist
extension to enable additional plugins such asportmap
during a upgrade.This mirrors changes in coreos/flannel-cni#5.
Todos
Release Note