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

Error w/ Helm Installation: Ensure CRDs are installed first #321

Open
earja opened this issue Jun 1, 2023 · 4 comments
Open

Error w/ Helm Installation: Ensure CRDs are installed first #321

earja opened this issue Jun 1, 2023 · 4 comments
Labels
bug Something isn't working
Projects

Comments

@earja
Copy link

earja commented Jun 1, 2023

Bug description

Error when trying to helm install Scaphandre on Linux Ubuntu 22.04 VM after pulling repository.
Kubectl version: 1.27.2 (latest)
Minikube version: 1.30.1 (latest)

Error obtained: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "scaphandre" namespace: "" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1" ensure CRDs are installed first.

Tried working with older versions of kubectl, with no success.

Screenshots

image

@earja earja added the bug Something isn't working label Jun 1, 2023
@airclovis
Copy link

I reproduced the issue.

After checking kubernetes documentation PodSecurityPolicy has been removed since Kubernetes v1.25.

I confirm that's working with previous kubernetes versions minikube start --kubernetes-version=v1.24.14

image

@mmadoo
Copy link
Contributor

mmadoo commented Jun 2, 2023

Could you try to install using helm chart on dev branch.
The PR #250 probably have already fix this issue on dev.

@earja
Copy link
Author

earja commented Jun 7, 2023

I am unable to clone the dev branch to try the installation @mmadoo

@bpetit bpetit added this to Triage in General Jun 8, 2023
@mmadoo
Copy link
Contributor

mmadoo commented Jun 9, 2023

I am unable to clone the dev branch to try the installation @mmadoo

you just need to do inside scaphandre repository and execute commands:

git fetch
git switch dev
helm install scaphandre helm/scaphandre

Note: with these commands, you will use the helm version of dev branch, but the docker image is still latest (i.e. version from main branch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Triage
General
Triage
Development

No branches or pull requests

3 participants