Open jkandasa opened 5 years ago
But on the operator-log keep on throwing an exception.
What's the exception?
@jpkrohling Operator log is attached on the initial comment.
E0607 06:27:47.976474 1 reflector.go:125] pkg/mod/k8s.io/client-go@v0.0.0-20190507014756-65905f29c17c/tools/cache/reflector.go:93: Failed to list *v1.Jaeger: v1.JaegerList.Items: []v1.Jaeger: v1.Jaeger.Spec: v1.JaegerSpec.Storage: v1.JaegerStorageSpec.EsIndexCleaner: v1.JaegerEsIndexCleanerSpec.NumberOfDays: readUint64: unexpected character: �, error found in #10 byte of ...|rOfDays":"2","schedu|..., bigger context ...|,"esIndexCleaner":{"enabled":true,"numberOfDays":"2","schedule":"*/10 * * * *"},"type":"elasticsearc|...
Sorry, I missed that. Whenever possible, let's try to keep the error messages in the issue itself, so that people searching for the error message can find this bug report.
I changed the scope of this issue a bit, but the idea is the same: users creating a CR should be able to see the error messages that happened during the process. Storing the error in a status object allows it to be viewed via kubectl describe jaeger
I recommend a Validating Webhook rather than admitting the jaegertracing.io/v1 Jaeger and then setting its Status.
The only time it is reasonable to set the Status is if the status can't be checked at admission time. (For example, a Jaeger can have a priorityClassName: collector-high-priority
but at admission time the scheduling.k8s.io/v1 PriorityClass might not exist yet.). The only way to implement this is to watch for changes on the CR and every kind of object the CR might refer to, which is why this kind of checking is rarely implemented. (In Istio that kind of checking is opt-in because of performance problems.)
This issue somehow related to #466, however this may need a different fix
Invalid CR files error should be reported to the user console. And should not keep on trying to deploy the CR file.
I changed the boolean value to string (eg:
true >> "true"
) and integer to string (ex:10 >> "10"
) deployed the CR file. on the console, it looks all ok. But on the operator-log keep on throwing an exception.Expected behavior:
No exception on the console.
operator log file: jaeger-operator-545c69455d-4clq5.log
CR file: