-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix MasterPodMoveTimeout field that cannot be unmarshalled #816
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
Conversation
Good catch! I've checked, and looks like you're right. I'm afraid the same problem is with the configuration via configmap, although it's sort of deprecated by now. |
👍 |
1 similar comment
👍 |
FYI: this is not fixed. I just tried it ad the "... readUint64: unexpected character:" still happens with the postgresql-operator-default-configuration.yaml from a few minutes ago:
|
is there some quick fix for this? |
I just removed the value, but I don't know which value is used in that case ;) |
Strange, I'll check. @pcornelissen just to make sure, you build the operator from 00f00af or higher? |
I checked out the repo on the 12th and used the files in Master, so the commit should be included. |
I'm confused, do you use a prebuild image |
I checked out the master and used the config files from there, which use the container image above. I don't know when the code is built, so I assumed that when this is fixed, that the corresponding image would also be updated. |
@pcornelissen included within the new v1.4.0 release |
I tried using the default CRD-based operator configuration from here, but it failed:
From what I can tell, attempting to unmarshal the
MasterPodMoveTimeout
field from a CRD-based operator configuration fails because thetime.Duration
type is not unmarshallable.The solution to this seems to be to use the
Duration
type instead:postgres-operator/pkg/apis/acid.zalan.do/v1/operator_configuration_type.go
Lines 192 to 193 in 8794e4f
That type seems to be what's consistently used for other fields, and it is unmarshallable:
postgres-operator/pkg/apis/acid.zalan.do/v1/marshal.go
Lines 128 to 152 in 8794e4f
I've tested locally and with this change the error disappeared.