NetApp / trident

Storage orchestrator for containers
Apache License 2.0
759 stars 221 forks source link

podsecuritypolicy on kubernetes 1.25 with helm deployment throwing error Error: UPGRADE FAILED: unable to build kubernetes objects #809

Closed rakkatta424 closed 2 days ago

rakkatta424 commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

Environment Provide accurate information about the environment to help us reproduce the issue.

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

rakkatta424 commented 1 year ago

we are trying to install trident 22.10.0 on anthos 1.14.1 -which is using kubernetes version 1.25 and facing below error fatal: [localhost]: FAILED! => changed=false attempts: 4 command: /usr/local/bin/helm --version=22.10.5 upgrade -i --reset-values --wait --create-namespace --values=/tmp/values.yaml trident-operator-release anthos-onPrem/trident-operator msg: |- Failure when executing Helm command. Exited 1. stdout: stderr: Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "tridentoperatorpods" namespace: "" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1" ensure CRDs are installed first stderr: |- Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "tridentoperatorpods" namespace: "" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1" ensure CRDs are installed first stderr_lines: stdout: ''

gnarl commented 1 year ago

Hi @rakkatta424,

We recommend that you open a NetApp support case to help you out with this upgrade issue.

If you want to try and solve this issue via this GitHub Issue then you'll need to fill out the information that we request in the GitHub Issue template. We need this information so that we can give you proper instructions.

sjpeeris commented 1 week ago

Hi @rakkatta424 This issue should have been addressed with Trident v23.04. Please let us know if this issue still exists after upgrading Trident. If not, please close the issue.

sjpeeris commented 2 days ago

Closing. Please re-open if you notice this issue with newer versions of Trident.