[
https://issues.apache.org/jira/browse/FLINK-29194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17600372#comment-17600372
]
Matyas Orhidi commented on FLINK-29194:
---------------------------------------
This is how the Log4jReporter works, but in this case it cannot be configured
and always runs. I can turn the class into a utility class if you think it
works better in this case.
> Add LoggingResourceListener
> ---------------------------
>
> Key: FLINK-29194
> URL: https://issues.apache.org/jira/browse/FLINK-29194
> Project: Flink
> Issue Type: New Feature
> Components: Deployment / Kubernetes
> Reporter: Matyas Orhidi
> Priority: Major
> Fix For: kubernetes-operator-1.2.0
>
>
> For auditing/debugging purposes the operator needs a way to report the
> emitted events / status updates in the logs:
> {{Event | Info | SpecChanged | UPGRADE change(s) detected
> (FlinkDeploymentSpec[image=flink:1.15,restartNonce=<null>] differs from
> FlinkDeploymentSpec[image=flink:1.15asdf,restartNonce=123]), starting
> reconciliation.}}
> {{Event | Info | Suspended | Suspending existing deployment.}}
> {{Status | Info | UPGRADING | The resource is being upgraded }}
> {{Status | Info | UPGRADING | The resource is being upgraded }}
> {{Event | Info | Submit | Starting deployment}}
> {{Status | Info | DEPLOYED | The resource is deployed/submitted to
> Kubernetes, but it’s not yet considered to be stable and might be rolled back
> in the future }}
> {{Status | Info | DEPLOYED | The resource is deployed/submitted to
> Kubernetes, but it’s not yet considered to be stable and might be rolled back
> in the future }}
> {{Event | Info | StatusChanged | Job status changed from RECONCILING to
> CREATED}}
> {{Status | Info | DEPLOYED | The resource is deployed/submitted to
> Kubernetes, but it’s not yet considered to be stable and might be rolled back
> in the future }}
> {{Event | Info | StatusChanged | Job status changed from CREATED to
> RUNNING}}
> {{Status | Info | STABLE | The resource deployment is considered
> to be stable and won’t be rolled back }}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)