Skip to content

Commit

Permalink
fix: task
Browse files Browse the repository at this point in the history
  • Loading branch information
joryirving committed Mar 1, 2024
1 parent ab6b634 commit 2088455
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .taskfiles/Bitwarden/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tasks:
- bws secret edit 7022c46d-537a-4c93-9366-b12601503c07 --value "$(cat {{.KUBERNETES_DIR}}/teyvat/bootstrap/talos/clusterconfig/talosconfig)"
preconditions:
- { msg: "Bitwarden Secret Manager CLI not found", sh: "test bws" }

push-pi:
desc: Push Pi kubeconfig to Secrets Manager
cmds:
Expand All @@ -30,14 +30,14 @@ tasks:

pull:
desc: Pull Kubeconfig from Secrets Manager
cmds:
cmds:
- mkdir -p ~/.kube
- mkdir -p ~/.talos
- bws secret get 700d272e-0e47-4ecb-853b-b101004459c8 | jq -r '.value' >> ~/.kube/config # Generic kubeconfig
- bws secret get a0934c41-ae5d-410d-9d9f-b12601502428 | jq -r '.value' >> {{.KUBERNETES_DIR}}/teyvat/kubeconfig # Teyvat kubeconfig
- bws secret get 7022c46d-537a-4c93-9366-b12601503c07 | jq -r '.value' >> {{.KUBERNETES_DIR}}/teyvat/bootstrap/talos/clusterconfig/talosconfig # Teyvat talosconfig
- bws secret get 7022c46d-537a-4c93-9366-b12601503c07 | jq -r '.value' >> ~/.talos/config # Teyvat talosconfig
- bws secret get bf0c9041-3997-42be-8c6a-b12601503135 | jq -r '.value' >> {{.KUBERNETES_DIR}}/pi/kubeconfig # Pi kubeconfig
- bws secret get 700d272e-0e47-4ecb-853b-b101004459c8 | jq -r '.value' > ~/.kube/config # Generic kubeconfig
- bws secret get a0934c41-ae5d-410d-9d9f-b12601502428 | jq -r '.value' > {{.KUBERNETES_DIR}}/teyvat/kubeconfig # Teyvat kubeconfig
- bws secret get 7022c46d-537a-4c93-9366-b12601503c07 | jq -r '.value' > {{.KUBERNETES_DIR}}/teyvat/bootstrap/talos/clusterconfig/talosconfig # Teyvat talosconfig
- bws secret get 7022c46d-537a-4c93-9366-b12601503c07 | jq -r '.value' > ~/.talos/config # Teyvat talosconfig
- bws secret get bf0c9041-3997-42be-8c6a-b12601503135 | jq -r '.value' > {{.KUBERNETES_DIR}}/pi/kubeconfig # Pi kubeconfig
preconditions:
- { msg: "Bitwarden Secret Manager CLI not found", sh: "test bws" }
- { msg: "JQ not found", sh: "test jq" }

0 comments on commit 2088455

Please sign in to comment.