Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-1465

Deprecating HOME="/tekton/home" and workingDir="/workspace" in Steps

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Critical Critical
    • Pipelines 1.6
    • None
    • None
    • 3
    • False
    • False
    • Hide
      from 1.6 OpenShift Pipelines will no longer set the HOME env var of your Steps to be "/tekton/home" nor will it set Step's workingDir to "/workspace". Instead, HOME and workingDir will be whatever your Steps' containers define.
      You will still be able to override these values in your Steps' YAML

      to get older behavior user can change the fields in TektonConfig to `false` (Default :true)
      ```
      spec:
        pipeline:
          disable-working-directory-overwrite: false
          disable-home-env-overwrite: false
      ```

      we also need to mention that -> `feature flags are available temporarily and will be candidates for complete removal in a future minor release at least 9 months from today` (from upstream)
      Show
      from 1.6 OpenShift Pipelines will no longer set the HOME env var of your Steps to be "/tekton/home" nor will it set Step's workingDir to "/workspace". Instead, HOME and workingDir will be whatever your Steps' containers define. You will still be able to override these values in your Steps' YAML to get older behavior user can change the fields in TektonConfig to `false` (Default :true) ``` spec:   pipeline:     disable-working-directory-overwrite: false     disable-home-env-overwrite: false ``` we also need to mention that -> `feature flags are available temporarily and will be candidates for complete removal in a future minor release at least 9 months from today` (from upstream)
    • Pipelines Sprint 205, Pipelines Sprint 206

      Starting in 0.24 Pipelines will no longer set the HOME env var of your Steps to be "/tekton/home" nor will it set Step's workingDir to "/workspace". Instead, HOME and workingDir will be whatever your Steps' containers define. You will still be able to override these values in your Steps' YAML - it is only Pipelines' defaults that are being removed.

      See https://groups.google.com/g/tekton-dev/c/C-PL8VYN51E/m/el5Fca_PDAAJ for more details

      OpenShift Pipelines currently did not opt-in to no longer set the HOME env var nor the working directory. Thus we need to decide whether we want to opt-out to this or prepare a migration/documentation path for upgrades from 1.4 to 1.5.

      • Opt-out for 1.5 and mark it as deprecating for 1.6
      • Document how to prepare a smooth upgrade for 1.6 in 1.5 documentation (release notes and doc)
      • Use workingDir more often in current docs to set example

      cc ssadeghi shbose cboudjna@redhat.com

              smukhade Shivam Mukhade (Inactive)
              vdemeest Vincent Demeester
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: