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

test: add a debug container so we can inspect #20

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rchincha
Copy link
Contributor

No description provided.

@Moosemorals
Copy link

Hiya!
Based on the changes, I edited the deployment (kubectl edit -n registry deployments.apps/zot) to include

      - name: busybox
        image: busybox:latest
        command: ["/bin/sh", "-c", "--"]
        args: ["while true; do sleep 30; done;"]
        volumeMounts:
          -  mountPath: "/secret"
             name: "zot-secret"

under spec.template.spec.containers.

I then ran kubectl.exe exec -n registry zot-66fc849cf6-wzdwb -itc busybox -- cat /secret/htpasswd as a proof of concept, and got

user:$2y$05$yE07lhelZYRVpv2OTieb1utN5zloGLgml7Y4gc5gOW.em2M35sVou
k8s:$2y$05$bQHc9W7ZvvJuAda2i24QVul8eeDNa67V.oPWVMTK898FZHL4CpMGW
admin:$2y$05$uMec3ips2C/GZqCSaF/gl.XgoK1.i2zeqGnxV6BvwBXRvy94FUYza

(which matches the heml values.yaml from the main thread).

I'm happy to run diagostics etc, what can I do to help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants