-
Notifications
You must be signed in to change notification settings - Fork 163
Backward compatibility for container filters #171
Comments
Ping @calavera @thaJeztah creating issue here so that discussion is saved :) |
Thanks @nishanttotla! |
I guess we could try to version that func ToParamWithVersion(arg Args, version string) (string, error) {
if version < "1.21" {
// serialize old version
} else {
return ToParam(args)
}
} |
@calavera thanks! I was just working on a fix that does the exact same thing. I'll open a PR later today. |
One issue though, is that it's unclear where the daemon version will come from. Since Secondly in Swarm, an Engine in the cluster can go through a live update, in which case we'd need to update the version. Would it be possible to add an WDYT @calavera? |
Reference: https://github.com/docker/engine-api/blob/master/types/filters/parse.go
Currently, the
Args
struct looks like thisbut not too long ago, it looked like this
So basically I can’t use the newer client to work with older daemons, because I will get a json unmarshaling error. This is a problem for Swarm since we're moving to the
engine-api
and can't support older daemons on the cluster as a result.Current Swarm PR blocked due to this issue: docker-archive/classicswarm#1983
This issue is in the same category as #144.
The text was updated successfully, but these errors were encountered: