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

The s2i build strategy is not assumed for Serverless Functions

XMLWordPrintable

    • Low
    • No
    • ODC Sprint 3257
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, s2i build strategy was not explicitly mentioned in the `func.yml`. Therefore you could not create {ServerlessProductName} functions with the repository. Additionally, error messages were not available if s2i is not mentioned or if `func.yml`. As a result, identifying the reason of failures was not apparent. With this update, if the s2i build strategy is not mentioned, users can still create a function. If it is not s2i, users cannot create a function. The error messages are now different for both the cases. (link:https://issues.redhat.com/browse/OCPBUGS-33733[*OCPBUGS-33733*])
      Show
      * Previously, s2i build strategy was not explicitly mentioned in the `func.yml`. Therefore you could not create {ServerlessProductName} functions with the repository. Additionally, error messages were not available if s2i is not mentioned or if `func.yml`. As a result, identifying the reason of failures was not apparent. With this update, if the s2i build strategy is not mentioned, users can still create a function. If it is not s2i, users cannot create a function. The error messages are now different for both the cases. (link: https://issues.redhat.com/browse/OCPBUGS-33733 [* OCPBUGS-33733 *])
    • Bug Fix
    • Done

      Description of problem:

          When creating a Serverless Function via Web Console from GIT repository the validation claims that builder strategy is not s2i. However if the build strategy is not set in func.yaml, then the s2i should be assumed implicitly. There should be no error.
      
      There should be error only if the strategy is explicitly set to something other than s2i in func.yaml.

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

          

      How reproducible:

          

      Steps to Reproduce:

          1. Try to create Serverless function from git repository where func.yaml does not explicitly specify builder.
          2. The Serverless Function cannot be created because of the validation.
       
          

      Actual results:

          The Function cannot be created.

      Expected results:

          The function can be created.

      Additional info:

          

       

            avik6028 Avik Kundu
            rhn-support-mvasek Matej Vasek
            Sanket Pathak Sanket Pathak
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: