Skip to content

Commit

Permalink
fix: secretの元をコミットする必要はなかった
Browse files Browse the repository at this point in the history
secretをコミットすると後から書き換えてもArgoCDが空の値で上書きしてしまう
  • Loading branch information
honahuku committed Dec 12, 2023
1 parent 5a2ad64 commit ec66a93
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
9 changes: 7 additions & 2 deletions connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
ただ 1password operetor が secret を注入するために 1password.com にアクセスする際の secret は最初に手動でデプロイする必要がある

```bash
kubectl create secret -n connect generic op-credentials --from-file=1password-credentials.json=./1password-credentials.json
kubectl create secret -n connect generic onepassword-token --from-literal=token="OP_CONNECT_TOKEN"
kubectl create secret generic op-credentials \
-n connect \
--from-file=1password-credentials.json=1password-credentials.json \
--dry-run=client -o yaml | kubectl apply -f -

kubectl create secret generic onepassword-token -n connect \
--from-literal=token="OP_CONNECT_TOKEN" | kubectl apply -f -
```

2 changes: 0 additions & 2 deletions connect/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ namespace: connect

resources:
- namespace.yaml
- onepassword-token.yaml
- op-credentials.yaml

helmCharts:
- name: connect
Expand Down
6 changes: 0 additions & 6 deletions connect/base/onepassword-token.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions connect/base/op-credentials.yaml

This file was deleted.

0 comments on commit ec66a93

Please sign in to comment.