Skip to content

Commit fc4d3ae

Browse files
committed
help: flag --private-key-path is no longer set by default
Since --private-key-path isn't set by default, it is now necessary to pass it explicitely. Note that secretKey wasn't used before this commit; with this commit, secretKey becomes useful.
1 parent b829672 commit fc4d3ae

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

deploy/charts/venafi-kubernetes-agent/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ spec:
6565
{{- else }}
6666
- "--client-id"
6767
- {{ .Values.config.clientId | quote }}
68+
- "--private-key-path"
69+
- "/etc/venafi/agent/key/{{ .Values.authentication.secretKey }}"
6870
{{- end }}
6971
- "-p"
7072
- "0h1m0s"

pkg/agent/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ func InitAgentCmdFlags(c *cobra.Command, cfg *AgentCmdFlags) {
192192
false,
193193
fmt.Sprintf("Turns on the %s mode. The flag --credentials-file must also be passed.", JetstackSecureOAuth),
194194
)
195+
c.PersistentFlags().MarkHidden("venafi-cloud")
195196
c.PersistentFlags().StringVarP(
196197
&cfg.ClientID,
197198
"client-id",

0 commit comments

Comments
 (0)