You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently switched my WSL install over to Archlinux from Ubuntu and I'm having a peculiar issue that I can't for the life of me figure out. I have commands set up to interact with my homelab k8s cluster which were working fine on Ubuntu, but now keep giving me an error when running on Arch (installed via AUR). When I run commands via go-task, they can't seem to find my kubeconfig (located at ~/.kube/config) when the Brew install had no trouble finding it.
Take this command here from my repo. Here's the output when I try to run it:
in ~/k8s-home-ops main
go-task fx:gr-sync cluster=main
task: [fx:gr-sync] kubectl get gitrepositories --context=main --all-namespaces --no-headers | awk '{print $1, $2}' \
| xargs --max-procs=4 -l bash -c \
'kubectl --context=main -n $0 annotate gitrepository/$1 reconcile.fluxcd.io/requestedAt=$(date +%s) --field-manager=flux-client-side-apply --overwrite'
Error in configuration: context was not found for specified context: main
error: arguments in resource/name form must have a single resource and name
task: Failed to run task "fx:gr-sync": exit status 123
However when I enter the command manually it works fine:
Which leads me to believe that it's something PATH related? Maybe under Arch because of it being installed differently it's using a different environment when run? I'm not really sure how to even look for that or test it. If anyone has any experience with go-task under Arch I could really use some guidance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I recently switched my WSL install over to Archlinux from Ubuntu and I'm having a peculiar issue that I can't for the life of me figure out. I have commands set up to interact with my homelab k8s cluster which were working fine on Ubuntu, but now keep giving me an error when running on Arch (installed via AUR). When I run commands via go-task, they can't seem to find my kubeconfig (located at ~/.kube/config) when the Brew install had no trouble finding it.
Take this command here from my repo. Here's the output when I try to run it:
However when I enter the command manually it works fine:
Which leads me to believe that it's something PATH related? Maybe under Arch because of it being installed differently it's using a different environment when run? I'm not really sure how to even look for that or test it. If anyone has any experience with go-task under Arch I could really use some guidance.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions