message: Add default log line wrap annotation ability for log viewer
diff: @@ -401,6 +401,19 @@ export const ResourceLog: React.FC<ResourceLogProps> = ({
  false,
  true,
  );
  + const hasWrapAnnotation =
  + resource?.metadata?.annotations?.['console.openshift.io/wrap-log-lines'] === 'true';
  +
  + const [wrapLinesCheckbox, setWrapLinesCheckbox] = React.useState(wrapLines || hasWrapAnnotation);
  + const firstRender = React.useRef(true);
  +
  + React.useEffect(() => {
  + if (firstRender.current) {
  + firstRender.current = false;
  + return;
  + }
  + setWrapLines(wrapLinesCheckbox);
  + }, [wrapLinesCheckbox, setWrapLines]);
  const timeoutIdRef = React.useRef(null);
  const countRef = React.useRef(0);
  @@ -589,8 +602,8 @@ export const ResourceLog: React.FC<ResourceLogProps> = ({
  containerName={containerName}
  podLogLinks={podLogLinks}
  namespaceUID={namespaceUID}
  - toggleWrapLines={setWrapLines}
  - isWrapLines={wrapLines}
  + toggleWrapLines={setWrapLinesCheckbox}
  + isWrapLines={wrapLinesCheckbox}
  hasPreviousLog={hasPreviousLogs}
  changeLogType={setLogType}
  logType={logType}
  @@ -662,7 +675,7 @@ export const ResourceLog: React.FC<ResourceLogProps> = ({
  data={content}
  ref={logViewerRef}
  height="100%"
  - isTextWrapped={wrapLines}
  + isTextWrapped={wrapLinesCheckbox}
  toolbar={logControls}
  footer={
  <FooterButton
  @@ -692,7 +705,7 @@ type LogControlsProps = {
  namespaceUID?: string;
  toggleStreaming?: () => void;
  toggleFullscreen: () => void;
  - toggleWrapLines: (wrapLines: boolean) => void;
  + toggleWrapLines: (wrapLinesCheckbox: boolean) => void;
  isWrapLines: boolean;
  changeLogType: (type: LogTypeStatus) => void;
  hasPreviousLog?: boolean;
  