-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add daemon mode flag Signed-off-by: Faisal Memon <[email protected]> * Rename example file Signed-off-by: Faisal Memon <[email protected]> * Change flag name, fix bug Signed-off-by: Faisal Memon <[email protected]> * Cleanup client setup Signed-off-by: Faisal Memon <[email protected]> * Skewer case Signed-off-by: Faisal Memon <[email protected]> * Update cmd/spiffe-helper/main.go Signed-off-by: Faisal Memon <[email protected]> Co-authored-by: Marcos Yacob <[email protected]> Signed-off-by: Faisal Memon <[email protected]> * Update cmd/spiffe-helper/main.go Co-authored-by: Marcos Yacob <[email protected]> Signed-off-by: Faisal Memon <[email protected]> * Update flag description Signed-off-by: Faisal Memon <[email protected]> * Address code review comments Signed-off-by: Faisal Memon <[email protected]> * add back comment Signed-off-by: Faisal Memon <[email protected]> * Update helper.conf Signed-off-by: Faisal Memon <[email protected]> * Make some function part of struct Signed-off-by: Faisal Memon <[email protected]> --------- Signed-off-by: Faisal Memon <[email protected]> Co-authored-by: Marcos Yacob <[email protected]>
- Loading branch information
1 parent
1c72433
commit 9dcaa32
Showing
10 changed files
with
402 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: spiffe-helper | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: spiffe-helper | ||
data: | ||
helper.conf: | | ||
cmd = "" | ||
cmd_args = "" | ||
cert_dir = "" | ||
renew_signal = "" | ||
svid_file_name = "tls.crt" | ||
svid_key_file_name = "tls.key" | ||
svid_bundle_file_name = "ca.pem" | ||
jwt_bundle_file_name = "cert.jwt" | ||
jwt_svids = [{jwt_audience="test", jwt_svid_file_name="jwt_svid.token"}] | ||
daemon_mode = false | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: spiffe-helper | ||
labels: | ||
app: spiffe-helper | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: spiffe-helper | ||
template: | ||
metadata: | ||
labels: | ||
app: spiffe-helper | ||
spec: | ||
serviceAccountName: spiffe-helper | ||
containers: | ||
- name: spiffe-helper | ||
image: ghcr.io/spiffe/spiffe-helper:devel | ||
args: ["-config", "config/helper.conf"] | ||
volumeMounts: | ||
- name: spire-agent-socket | ||
mountPath: /tmp/spire-agent/public/ | ||
readOnly: true | ||
- name: helper-config | ||
mountPath: /config | ||
volumes: | ||
- name: spire-agent-socket | ||
hostPath: | ||
path: /run/spire/agent-sockets | ||
type: Directory | ||
- name: helper-config | ||
configMap: | ||
name: spiffe-helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.