Add support for RHEL 9 base images#790
Add support for RHEL 9 base images#790openshift-merge-bot[bot] merged 9 commits intoopenshift-knative:mainfrom
Conversation
| } | ||
| } else { | ||
| // version before 1.37+ | ||
| if metadata.Project.Version == "1.36.1" || metadata.Project.Version == "1.35.1" { |
There was a problem hiding this comment.
Maybe we can use just the safer side if we do a patch release 1.36.2 or newer
minor, _ := strconv.Atoi(strings.Split(metadata.Project.Version, ".")[1]) if minor <= 36 { rhelVersion = "rhel-8" } else { rhelVersion = "rhel-9" }
| } | ||
|
|
||
| rhelVersion := "rhel-9" | ||
| if metadata.Project.Tag != "" { |
There was a problem hiding this comment.
Maybe we could also add the supposed RHEL version in the project.yaml file (maybe also easier for a potential RHEL 10 switch). In case the field would be empty (like in older SO versions), we could default to RHEL 8
There was a problem hiding this comment.
Could also be helpful on parts like
hack/pkg/dockerfilegen/generator.go
Lines 439 to 447 in 051ce1f
There was a problem hiding this comment.
Indeed, it seemed quicker to hard code a few hacks in the current generator. But for the future and maintainability we should revisit it.
|
@Kaustubh-pande @creydr I've added disk free up commands to template and CI action. It should be good for review now. |
6a3253f to
87a26e6
Compare
87a26e6 to
f416cd3
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, Kaustubh-pande The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3642031
into
openshift-knative:main
|
with this I get error I'm golang newbie but shouldn't rhel-9 templates be embedded in https://github.com/openshift-knative/hack/blob/main/pkg/dockerfilegen/templates.go ? |
/cc @Kaustubh-pande @rudyredhat1 @creydr