-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Devfile Library should be updated to support Go 1.21 #1543
Comments
I did an investigation into this, it appears to be a k8s API change in v1.29 and is breaking pkg/devfile/generator/utils.go#L600 in devfile/library rather than it being the Go version: type PersistentVolumeClaimSpec struct {
...
// Resources represents the minimum resources required
// If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
// that are lower than previous value but must still be higher than capacity recorded in the
// status field of the claim.
// +optional
Resources ResourceRequirements
...
} type PersistentVolumeClaimSpec struct {
...
// Resources represents the minimum resources required
// If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
// that are lower than previous value but must still be higher than capacity recorded in the
// status field of the claim.
// +optional
Resources VolumeResourceRequirements
...
} For this issue we'll need to do two changes:
With that if a consumer wants to continue using our modules until this is done they should be advised not to upgrade past the v1.28 k8s APIs to avoid breaking changes. |
**Update** With that we'll need the the additional epic of updating to Go 1.21 before moving to Kubernetes 1.29, we could consider merging them into one epic as it could be one of the changes to a Go 1.21 update. These changes would be towards a new version of the devfile schema. cc @devfile/devfile-services-team |
Created epic issue #1555 to track all Go 1.21 and Kubernetes 1.29 upgrades. |
devfile/library#212 includes the changes required |
FYI. #1593 also need to be done after pulling in latest devfile/api |
I think here, after #1593, we should also create also a new release for library. Should it be |
/kind bug
/area library
Trying to consume the devfile library with Go 1.21 reports the following errors:
It seems that some of its dependencies need to be updated to a version that supports Go 1.21. We should also ensure that there's nothing else in the library that's blocking it from working on 1.21.
The text was updated successfully, but these errors were encountered: