`cache_repo` doesn't work

Hi, I trying to understand how cache_repo work. I already have dockerconfigjson secret in cluster and I'm very and you could assume that its data is correct because I'm using it in imagePullSecrets for Deployment when I create workspace, I got this error. Please help me, Thanks. Bellow is my template I used. values for cache_repo, is jfrog.jfrog.svc:8081/docker/cache_repo (jfrog service in jfrog namespace), insecure_cache_repo is true
6 Replies
Codercord
Codercord3w ago
<#1315715674760282172>
Category
Bug report
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Luna Lovegood
Luna LovegoodOP3w ago
I also got problem with base64 decode with ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64 but I'm not sure they are same issues
Phorcys
Phorcys3w ago
it has to be base64 encoded, I think it's spitting out that error because it's plaintext
Luna Lovegood
Luna LovegoodOP3w ago
Thank you, I think I figure it out, data.kubernetes_secret.cache_repo_dockerconfig_secret[0].data[".dockerconfigjson"] is base64 decoded value, I just have to encode it again
Phorcys
Phorcys3w ago
yes, that should do the trick!
Codercord
Codercord2w ago
@Phorcys closed the thread.

Did you find this page helpful?