Uploaded image for project: 'OpenShift Hive'
  1. OpenShift Hive
  2. HIVE-2604

Delete existing projected secret files on (restartPolicy: OnFailure) pods

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • openshift-4.18
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None
    • None
    • None

      For background, see here.

      If a container in a Pod fails, and the Pod is configured with a restartPolicy other than Never – which is the case for imageset and deprovision – then the container (not the pod) is restarted. This means that the file system configuration is preserved between runs. Since we project cred/cert Secrets onto directories as part of the provision/deprovision process, such a restart can result in a fast failure when we attempt to rewrite such a file when it already exists.

      So when we run that code that projects the Secret(s) to the directory, we should delete any pre-existing incarnations of the files we encounter.

              efried.openshift Eric Fried
              efried.openshift Eric Fried
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: