Skip to content
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

Run conformance tests for Kubernetes 1.27 #3795

Merged
merged 1 commit into from
May 2, 2023
Merged

Conversation

stefanprodan
Copy link
Member

Update the e2e test matrix to the latest supported Kubernetes versions.

@stefanprodan stefanprodan added the area/ci CI related issues and pull requests label Apr 12, 2023
@stefanprodan
Copy link
Member Author

stefanprodan commented Apr 12, 2023

⚠️ We recommend Flux users to not upgrade to Kubernetes v1.27.0.

Tests are passing because Flux retires the apply, but Kubernetes 1.27.0 seems to have a bug where the server-side apply fails sometimes with a conversion error:

Kustomization/apps/podinfo dry-run failed,
error: failed to prune fields: failed add back owned items: failed to convert pruned object
at version kustomize.toolkit.fluxcd.io/v1: conversion for kustomize.toolkit.fluxcd.io/v1, Kind=Kustomization
returned invalid metadata in object at index 1: missing metadata in converted object

This is also the case with kubectl:

$ kubectl apply --server-side --dry-run=server -fclusters/my-clusters/image-repo.yaml --field-manager=kustomize-controller
imagerepository.image.toolkit.fluxcd.io/podinfo serverside-applied (server dry run)
imagerepository.image.toolkit.fluxcd.io/podinfo-acr serverside-applied (server dry run)
Error from server: failed to prune fields: failed add back owned items: failed to convert pruned object at version image.toolkit.fluxcd.io/v1beta2: conversion for image.toolkit.fluxcd.io/v1beta2, Kind=ImagePolicy returned invalid metadata in object at index 1: missing metadata in converted object
Error from server: failed to prune fields: failed add back owned items: failed to convert pruned object at version image.toolkit.fluxcd.io/v1beta2: conversion for image.toolkit.fluxcd.io/v1beta2, Kind=ImagePolicy returned invalid metadata in object at index 1: missing metadata in converted object

@stefanprodan stefanprodan added bug Something isn't working blocked/upstream Blocked by an upstream dependency or issue labels Apr 12, 2023
@stefanprodan
Copy link
Member Author

Upstream issue kubernetes/kubernetes#117260

@stefanprodan
Copy link
Member Author

The issue was fixed in Kubernetes 1.27.1, but currently there is no kind node image for it.

@stefanprodan stefanprodan added hold Issues and pull requests put on hold and removed bug Something isn't working labels Apr 16, 2023
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan removed hold Issues and pull requests put on hold blocked/upstream Blocked by an upstream dependency or issue labels May 2, 2023
@stefanprodan stefanprodan merged commit b30d7cb into main May 2, 2023
11 checks passed
@stefanprodan stefanprodan deleted the e2e-kube-1.27 branch May 2, 2023 12:02
@stefanprodan stefanprodan mentioned this pull request May 3, 2023
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci CI related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants