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
venconn: add support for VenafiConnection CRD with --venafi-connection=name
I've also added the flag --venafi-connection-namespace as well as the
flag --install-namespace that is only needed when running the agent
out-of-cluster (this is only useful for testing purposes).
Copy file name to clipboardExpand all lines: cmd/agent.go
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,24 @@ func init() {
138
138
os.Getenv("API_TOKEN"),
139
139
"Token used for authentication when API tokens are in use on the backend",
140
140
)
141
+
agentCmd.PersistentFlags().StringVar(
142
+
&agent.VenConnName,
143
+
"venafi-connection",
144
+
"",
145
+
"Name of the VenafiConnection to be used. Using this flag will enable the VenafiConnection mode.",
146
+
)
147
+
agentCmd.PersistentFlags().StringVar(
148
+
&agent.VenConnNS,
149
+
"venafi-connection-namespace",
150
+
"",
151
+
"Namespace of the VenafiConnection to be used. It is only useful when the VenafiConnection isn't in the same namespace as the agent. The field `allowReferencesFrom` must be present on the cross-namespace VenafiConnection for the agent to use it.",
152
+
)
153
+
agentCmd.PersistentFlags().StringVar(
154
+
&agent.InstallNS,
155
+
"install-namespace",
156
+
"",
157
+
"Namespace in which the agent is running. Only needed when running the agent outside of Kubernetes.",
0 commit comments