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

Application creation fail when manually entering input scaling value in local setup

XMLWordPrintable

    • No
    • ODC Sprint 3250
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

      In local setup this error appears when creating a deployment with scaling in the git form page locally: 
      `Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal string into Go struct field DeploymentSpec.spec.replicas of type int32`
          

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

      4.16.0-0.nightly-2024-01-05-154400
          

      How reproducible:

      Everytime
          

      Steps to Reproduce:

          1. In the local setup go to the git form page
          2. Enter a git repo and select deployment as the resource type
          3. In scaling enter the value as '5' and click on Create button
          

      Actual results:

      Got this error:
      "Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal string into Go struct field DeploymentSpec.spec.replicas of type int32"
          

      Expected results:

      Deployment should be created
      
          

      Additional info:

      Happening with Deployment-config creation as well
          

              rh-ee-lprabhu Lokananda Prabhu
              spathak Sanket Pathak
              Sanket Pathak Sanket Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: