-
Notifications
You must be signed in to change notification settings - Fork 669
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
introduce ct for local helm install test #911
introduce ct for local helm install test #911
Conversation
Hi @knelasevero. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
be0f4eb
to
ba85e79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
@knelasevero: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
pull-descheduler-helm-test is failing because it still exists in test-infra, we need to merge kubernetes/test-infra#26630 to get this PR green :) |
@@ -0,0 +1 @@ | |||
docker run -it --rm --network host --workdir=/data --volume ~/.kube/config:/root/.kube/config:ro --volume $(pwd):/data quay.io/helmpack/chart-testing:v3.7.0 /bin/bash -c "git config --global --add safe.directory /data; ct install --config=.github/ci/ct.yaml --helm-extra-set-args=\"--set=kind=Deployment --set=podSecurityPolicy.create=false\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessarily needed in this PR. Though, it would be great to introduce CONTAINER_ENGINE
var in the Makefile so we can use e.g. podman
instead of the docker
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ make ct-helm
./hack/verify-chart.sh
Trying to pull quay.io/helmpack/chart-testing:v3.7.0...
Getting image source signatures
Copying blob 530afca65e2e done
Copying blob 8fc6dd0270c7 done
Copying blob 11468c6e8c15 done
Copying blob 44f8ddf0f4fd done
Copying blob becf289968d8 done
Copying blob ef1d4f4b02fd done
Copying blob 1e4c4ffbf3ee done
Copying blob dff19b98de5f done
Copying blob d2ab7f174e47 done
Copying blob 4f4fb700ef54 done
Copying config 30a5ebe114 done
Writing manifest to image destination
Storing signatures
Installing charts...
Error: Error loading configuration: Error loading config file: open .github/ci/ct.yaml: permission denied
Error loading configuration: Error loading config file: open .github/ci/ct.yaml: permission denied
make: *** [Makefile:158: ct-helm] Error 1
Not sure whether this is related to running podman
instead of docker
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With podman I got this
./hack/verify-chart.sh
ERRO[0000] cannot find UID/GID for user lucas: open /etc/subuid: no such file or directory - check rootless mode in man pages.
WARN[0000] Using rootless single mapping into the namespace. This might break some images. Check /etc/subuid and /etc/subgid for adding sub*ids if not using a network user
Trying to pull quay.io/helmpack/chart-testing:v3.7.0...
Getting image source signatures
Copying blob 11468c6e8c15 done
Copying blob ef1d4f4b02fd done
Copying blob 44f8ddf0f4fd done
Copying blob 530afca65e2e done
Copying blob becf289968d8 done
Copying blob 8fc6dd0270c7 done
Copying blob 1e4c4ffbf3ee done
Copying blob d2ab7f174e47 done
Copying blob dff19b98de5f done
Copying blob 4f4fb700ef54 done
Error: writing blob: adding layer with blob "sha256:530afca65e2ea04227630ae746e0c85b2bd1a179379cbf2b6501b49c4cab2ccc": Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/shadow): Check /etc/subuid and /etc/subgid if configured locally and run podman-system-migrate: lchown /etc/shadow: invalid argument
make: *** [Makefile:158: ct-helm] Error 125
Have you tried this with docker? We can introduce that variable and also podman support in a followup PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, it was about running podman with sudo in my case, It just worked after adding sudo (or adding my user to the right group).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, that error of yours does not make much sense 🤔 that file is 644, so it is readable by all 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Selinux was the culprit :)
+1 for cleaning |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ingvagabund The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Updated docs and also removed old approach. To test it locally you can
make kind-multi-node
and thenmake ct-helm
For reference, a failing gh-actions step also prevents merges by prow/tide: #907 (comment)
Will need to merge: kubernetes/test-infra#26630
Then merge this PR itself
Following: #895 (comment)