Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-1677

Latest traefik requires go 1.16 / use traefik from v2.3.2 tag (go 1.15 req) in CRW 2.8

XMLWordPrintable

    • False
    • False
    • Undefined

      Latest traefik builds based on UBI are failing with:

      21:13:32 # github.com/traefik/traefik/v2/pkg/plugins
      21:13:32 pkg/plugins/client.go:70:17: undefined: os.MkdirTemp
      21:13:32 pkg/plugins/client.go:199:13: undefined: io.ReadAll
      21:13:32 pkg/plugins/client.go:355:9: undefined: os.WriteFile
      21:13:32 note: module requires Go 1.16
      21:13:59 # github.com/traefik/traefik/v2/pkg/types
      21:13:59 pkg/types/tls.go:36:14: undefined: os.ReadFile
      21:13:59 note: module requires Go 1.16
      21:14:47 generate.go:5: running "go": exit status 2
      21:14:53 Error: error building at STEP "RUN ./script/make.sh generate binary": error while running runtime: exit status 1
      

      However, the latest UBI8 based golang builder image is:

      https://catalog.redhat.com/software/containers/rhel8/go-toolset/5b9c810add19c70b45cbd666

      which is 1.14.

      So... can we use older traefik 2.3.2 in CRW 2.8 (as we did for 2.7)?

      Or use master branch of traefik, but fetch latest golang via GOLANG_VERSION = 1.16 in

      String GOLANG_VERSION = "1.15.3"
      
      String SOURCE_BRANCH = "master" // upstream source repo branch, eg., crw-2.y-rhel-8 from fork
      

      Or a newer tag, like https://github.com/traefik/traefik/releases/tag/v2.4.7 ?

      What is upstream using for 7.28.x?

              aghatwal@redhat.com Amitkumar Ghatwal
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: