Uploaded image for project: 'Network Edge'
  1. Network Edge
  2. NE-2468

openshift/router: Migrate away from deprecated ioutil package

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

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

      Migrate the openshift/router repository away from the deprecated ioutil package.

      ioutil has been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutil

      Changes include:

      • Replace ioutil.ReadFile/WriteFile with os.ReadFile/os.WriteFile
      • Replace ioutil.TempFile/TempDir with os.CreateTemp/os.MkdirTemp
      • Replace ioutil.NopCloser/Discard with io.NopCloser/io.Discard
      • Remove all ioutil imports

      PR: https://github.com/openshift/router/pull/693
      Tracking issue: https://github.com/redhat-best-practices-for-k8s/telco-bot/issues/52

              bpalm@redhat.com Brandon Palm
              bpalm@redhat.com Brandon Palm
              None
              Shudi Li Shudi Li
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: