-
Notifications
You must be signed in to change notification settings - Fork 222
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
Chart breaks when upgrading from k8s 1.24 to 1.25 #794
Comments
yes, we've ran into the same problem. PSPs are deprecated long time now, trident should remove them completely from upstream manifests. |
Kube 1.25 doesn't accept PSP manifetsts any more. Removing manually until trident repo catches up: NetApp/trident#794
Kube 1.25 doesn't accept PSP manifetsts any more. Removing manually until trident repo catches up: NetApp/trident#794
something else to note that 1.25 needs the latest trident version 23.01. |
According to Helm upgrade error after Kubernetes Upgrade to 1.25 with Trident installed the upgrade to trident version 23.01 removes PodSecurityPolicies.
A few months ago I ran k8s 1.23 with trident 22.7.0 Now I'm trying to deploy trident 23.04.0 prior to k8s 1.27 but I'm still getting the same error as you 🤔
|
On the helm upgrade line for Trident, add the parameter: --set excludePodSecurityPolicy=true |
I'm afraid I already tried that, after checking the release notes:
Could it be because I installed Trident while on 1.23, so the PSP's were there at the time, and Helm is now still looking for them? |
I was able to fix it by editing the More specifically, I think I removed these parts from it:
as well as
Perhaps the latter one would have been enough. After replacing
|
Do we have any update on this? We are seeing the similar issue. I believe we have a bug ticket for this issue. #819 |
It would be nice to have any update or a bugfixrelease. Its nice that the operator will delete the psps during update, but unfortunately K8s distribution like OpenShift and RKE will not let you start an update to a version with K8s > 1.25 until there are no existing psps in the cluster. |
Hello all, Already tested: helm mapkubeapis --dry-run -n trident trident-operator-22-1680184337 Then upgrade to the same version but with: "exclude PodSecurityPolicy=true" or Regards, temirg. |
Trident is updating the documentation to use the "exclude PodSecurityPolicy=true" flag in Helm when upgrading. |
Describe the bug
Currently the chart doesnt survive an upgrade of k8s 1.24.x to 1.25 due to PodSecurityPolicies
Environment
Provide accurate information about the environment to help us reproduce the issue.
To Reproduce
Have the chart installed in an 1.24.x cluster
upgrade K8s
try to upgrade/change the chart
Expected behavior
Chart doesnt break
Additional context
The root cause is
trident/helm/trident-operator/templates/podsecuritypolicy.yaml
Line 1 in ee233f9
Basically helm keeps track of the PSP and wants to remove it after this evaluates to false. But K8s doesnt know anything about that resource, thus helm fails.
The only way to prevent this is to manually prevent PSPs from being created while being on 1.24 (which is bad and most people will forget) or to automatically drop PSPs in 1.24 unless manually enabled, making sure the resource is deleted when the api still knows it
The text was updated successfully, but these errors were encountered: