Skip to content

Conversation

@invidian
Copy link
Member

Co-authored-by: Stefan Betermieux

Signed-off-by: Mateusz Gozdek <[email protected]>
Otherwise following error message shows up:

E0113 15:13:54.428981       1 event.go:319] Could not construct reference to: '&v1.ConfigMap{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"flatcar-linux-update-operator-lock", GenerateName:"", Namespace:"reboot-coordinator", SelfLink:"/api/v1/namespaces/reboot-coordinator/configmaps/flatcar-linux-update-operator-lock", UID:"b55a0fb9-03a9-4091-9a3c-bf84b8f8df6f", ResourceVersion:"2972", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63714524547, loc:(*time.Location)(0x1e1af00)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{"control-plane.alpha.kubernetes.io/leader":"{\"holderIdentity\":\"flatcar-linux-update-operator-85bd87b458-pfhhx\",\"leaseDurationSeconds\":90,\"acquireTime\":\"2020-01-13T15:13:54Z\",\"renewTime\":\"2020-01-13T15:13:54Z\",\"leaderTransitions\":1}"}, OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Data:map[string]string(nil), BinaryData:map[string][]uint8(nil)}' due to: 'no kind is registered for the type v1.ConfigMap in scheme "github.com/kinvolk/flatcar-linux-update-operator/pkg/operator/operator.go:161"'. Will not report event: 'Normal' 'LeaderElection' 'flatcar-linux-update-operator-85bd87b458-pfhhx became leader'

Signed-off-by: Mateusz Gozdek <[email protected]>
As binaries should not be committed into git.

Signed-off-by: Mateusz Gozdek <[email protected]>
If we don't use vendored dependencies, but use go modules, we run into
the issue, when glog is being initialized twice, which results flags
being re-defined, which makes the code panic.

Signed-off-by: Mateusz Gozdek <[email protected]>
@invidian invidian merged commit a81d7be into master Jan 14, 2020
@invidian invidian deleted the invidian/updates branch January 14, 2020 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants