Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-56830

CronTab list page returns error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 4.18, 4.19, 4.20
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • Proposed
    • None
    • Hide
      Before this update, the CronTab list page returned an error when a CronTab resource was missing optional entries in its `spec` because the console did not validate them properly. This update adds the necessary validation. As a result, the CronTab list page loads correctly even when some `spec` fields are not defined. (link:https://issues.redhat.com/browse/OCPBUGS-56830[OCPBUGS-56830])
      Show
      Before this update, the CronTab list page returned an error when a CronTab resource was missing optional entries in its `spec` because the console did not validate them properly. This update adds the necessary validation. As a result, the CronTab list page loads correctly even when some `spec` fields are not defined. (link: https://issues.redhat.com/browse/OCPBUGS-56830 [ OCPBUGS-56830 ])
    • None
    • None
    • None
    • None

      Description of problem:

      CronTab list page returns error when any CronTab is missing spec fields    

      Version-Release number of selected component (if applicable):

      4.20.0-0.nightly-2025-05-27-133818    

      How reproducible:

      Always    

      Steps to Reproduce:

      1. Deploy console-crontab-plugin following https://github.com/openshift/console-crontab-plugin#installing-the-helm-chart 
      # helm upgrade -i console-crontab-plugin charts/console-crontab-plugin -n console-crontab-plugin-ns --create-namespace --set plugin.image=quay.io/yapei/console-crontab-plugin:latest
      2. Create a CronTab with following YAML
      apiVersion: stable.example.com/v1
      kind: CronTab
      metadata:
        name: my-new-cron-object
        namespace: default
      3. Visit CronTab list page /k8s/ns/default/stable.example.com~v1~CronTab     

      Actual results:

      3. We will see error Cannot read properties of undefined (reading 'cronSpec')    

      Expected results:

      3. We should either make `spec` as required fields or do not show error page when spec is missing if it's optional   

      Additional info:

          

              jhadvig@redhat.com Jakub Hadvig
              rhn-support-yapei YaDan Pei
              None
              None
              Yanping Zhang Yanping Zhang
              Jocelyn Sese Jocelyn Sese
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: