Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-13967

DO280: ch03s02 - --from-file requires full path if used without spaces - RHT2202471

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • DO280 - OCP4.14-en-2-20240725
    • DO280
    • False
    • Hide

      None

      Show
      None
    • False
    • 3
    • en-US (English)

      Please fill in the following information:


      URL: ch03s02
      Reporter RHNID: carias@redhat.com
      Section title: Guided Exercise: Configure Identity Providers
      Language: English

      Issue description

      This is a suggestion to include a note about a particular behaviour of the oc client when adding a file as a parameter. 

      [student@workstation ~]$ oc create secret generic test1
      --from-file=nisim=~/DO280/labs/auth-review/tmp_users
      error: error reading ~/DO280/labs/auth-review/tmp_users: no such file or
      directory

      [student@workstation ~]$ oc create secret generic test1 --from-file
      nisim=~/DO280/labs/auth-review/tmp_users
      secret/test1 created

      [student@workstation ~]$ oc create secret generic test2
      --from-file=nisim=/home/student/DO280/labs/auth-review/tmp_users
      secret/test2 created

       

      So if we use '--from-file=' - then we must use the full path and not the relative path with the  ~ symbol.

       

      Expected result:

      A NOTE describing this behavior could be useful to students.

              gls-curriculum-ocp-core@redhat.com PTL - OCP Platform Team
              carias@redhat.com Carlos Arias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: