swift-spring-8620
06/27/2024, 10:31 PMproviders:
- name: local-kubernetes
setupIngressController: false
imagePullSecrets:
- name: github-ocr-secret
namespace: default
When I go to deploy my helm chart that I have pushed my private registry (GitHub container registry), I receive the following error message:
Error: INSTALLATION FAILED: GET "https://ghcr.io/v2/<my-org>/charts/rust/tags/list": GET "https://ghcr.io/token?scope=repository%3A<my-org>%2Fcharts%2Frust%3Apull&service=ghcr.io": unexpected status code 401: unauthorized: authentication required
I have tried refreshing the provider status and reinstalling Garden, but so far none of these efforts have made any effect. I've provided the helm deployment and the output of the kubernetes secret with the registry configuration as reference as well below:
Kubernetes secret:
Name: github-ocr-secret
Namespace: default
Labels: <none>
Annotations: <none>
Type: kubernetes.io/dockerconfigjson
Data
====
.dockerconfigjson: {"auths":{"https://ghcr.io":{"username":"<MY_GITHUB_USERNAME>","password":"<MY_GITHUB_PAT>","email":"<MY_EMAIL>","auth":"<MY_AUTH>"}}}
And I generated this secret using the following kubectl command: kubectl create secret docker-registry mysecretname --docker-server=https://ghcr.io --docker-username=mygithubusername --docker-password=mygithubreadtoken --docker-email=mygithubemail
And here is the format of the helm deploy:
kind: Deploy
type: helm
name: test-deploy
spec:
chart:
url: oci://ghcr.io/<my-org>/charts/rust # Private chart
values:
containers:
replicas: 1
image:
repository: ghcr.io/<my-org>/rust # Private Image
tag: main
name: rust
Any help on this would be greatly appreciated, and thanks in advance for taking the time to read this over.
Regards,
Price
https://cdn.discordapp.com/attachments/1256013981756293121/1256013982221996056/message.txt?ex=667f39ac&is=667de82c&hm=bebf4a03f1aced7a205e8449bcbb1cf6d4bd29edb2659f651ba59c38098ae4da&
https://cdn.discordapp.com/attachments/1256013981756293121/1256013982544691310/message.txt?ex=667f39ad&is=667de82d&hm=2f1424d4478f3e285443ab27434073e5e382d11dffd21e0d082ee3686db6f2cf&
https://cdn.discordapp.com/attachments/1256013981756293121/1256013982951800893/message.txt?ex=667f39ad&is=667de82d&hm=196c5f13b8af7c0695ed3615fc86daa3fb6b1d2b47edc4b71013891a213a0a01&
https://cdn.discordapp.com/attachments/1256013981756293121/1256013983362715698/message.txt?ex=667f39ad&is=667de82d&hm=591571f705069f46dba966422790b20fbf383ad59b06435ba541721b6410e68e&